@OpenApiAll
public class DependencyMatrixConfigurator
extends java.lang.Object
Constructor and Description |
---|
DependencyMatrixConfigurator(java.lang.String diagramType)
create new instance of the configurator
|
Modifier and Type | Method and Description |
---|---|
void |
configureDependencyHandlers(java.util.Collection<DependencyExtractor> extractors,
java.util.Collection<DependencyEditor> editors)
Creates Matrix Dependency handlers, which are responsible for extracting and editing dependencies shown in the matrix
In order to add custom dependency extraction algorithms use
DependencyExtractor
In order to add custom dependency editors (add and remove dependency actions) use DependencyEditor |
javax.swing.table.TableCellRenderer |
createColumnCellRenderer()
Create renderer, which is responsible for displaying table header header row elements
Make sure that TableCellRenderer also implements com.nomagic.magicdraw.ui.zoom.Zoomable interface to properly display scaled (zoomed) matrix.
|
javax.swing.table.TableCellRenderer |
createRowCellRenderer()
Create renderer, which is responsible for displaying row header column elements
Make sure that provided TableCellRenderer also implements com.nomagic.magicdraw.ui.zoom.Zoomable interface to properly display scaled (zoomed) matrix.
|
javax.swing.table.TableCellRenderer |
createTableCellRenderer()
Create renderer, which is responsible for displaying cell elements
Make sure that TableCellRenderer also implements com.nomagic.magicdraw.ui.zoom.Zoomable interface to properly display scaled (zoomed) matrix.
|
static DependencyMatrixConfigurator |
getConfigurator(Diagram diagram)
Returns registered configurator for this diagram
|
static DependencyMatrixConfigurator |
getConfigurator(java.lang.String diagramType)
Returns registered configurator for this diagram
|
java.lang.String |
getDiagramType()
Diagram type of the current configurator
|
static java.util.Collection<java.lang.String> |
getRegisteredMatrixTypes()
Returns list of all dependency matrix types
|
static void |
registerConfiguration(DependencyMatrixConfigurator configurator)
Registers new configurator in the matrix configurator registry
|
public DependencyMatrixConfigurator(java.lang.String diagramType)
diagramType
- diagram type name@CheckForNull public static DependencyMatrixConfigurator getConfigurator(Diagram diagram)
diagram
- diagram instance@CheckForNull public static DependencyMatrixConfigurator getConfigurator(java.lang.String diagramType)
diagramType
- diagram type namepublic static void registerConfiguration(DependencyMatrixConfigurator configurator)
configurator
- new registered configuratorpublic java.lang.String getDiagramType()
public javax.swing.table.TableCellRenderer createTableCellRenderer()
public javax.swing.table.TableCellRenderer createColumnCellRenderer()
public javax.swing.table.TableCellRenderer createRowCellRenderer()
public void configureDependencyHandlers(java.util.Collection<DependencyExtractor> extractors, java.util.Collection<DependencyEditor> editors)
DependencyExtractor
In order to add custom dependency editors (add and remove dependency actions) use DependencyEditor
extractors
- dependency extractor instanceseditors
- Dependency editor instancespublic static java.util.Collection<java.lang.String> getRegisteredMatrixTypes()