@OpenApi public abstract class AbstractDiagramLayouter extends java.lang.Object implements DiagramLayouter
Modifier | Constructor and Description |
---|---|
protected |
AbstractDiagramLayouter(java.lang.String optionId)
Constructor
|
protected |
AbstractDiagramLayouter(java.lang.String optionId,
boolean supportsSubgraph)
Constructor
|
protected |
AbstractDiagramLayouter(java.lang.String optionId,
boolean nodes,
boolean paths,
boolean supportsSubgraph)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected UMLGraph |
createGraph(DiagramPresentationElement dpe,
AbstractDiagramLayouterOptionsGroup optionsGroup)
Constructs a graph for layout
|
protected UMLGraph |
createGraph(DiagramPresentationElement dpe,
boolean useIntegratedLabels)
|
protected java.util.Set<PresentationElement> |
getSelected(DiagramPresentationElement diagramView)
Collects a set of selected presentation elements in a diagram
|
boolean |
isSubgraphLayout()
Test is graph layout.
|
boolean |
isTypeSupported(DiagramType type)
Test the given type is supported.
|
protected abstract boolean |
layout(AbstractDiagramLayouterOptionsGroup opt,
DiagramPresentationElement dpe,
UMLGraph graph)
Layouts a diagram
|
void |
setSubgraphLayout(boolean subgraphLayout)
Set sub graph layout.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canLayout, drawLayoutResults, getOptionsID
@OpenApi protected AbstractDiagramLayouter(java.lang.String optionId, boolean nodes, boolean paths, boolean supportsSubgraph)
optionId
- layouter options idnodes
- true if should layout nodespaths
- true if should layout edgessupportsSubgraph
- determines if supports subgraph layout@OpenApi protected AbstractDiagramLayouter(java.lang.String optionId, boolean supportsSubgraph)
optionId
- layouter options idsupportsSubgraph
- determines if supports subgraph layout@OpenApi protected AbstractDiagramLayouter(java.lang.String optionId)
optionId
- layouter options id@OpenApi @Deprecated protected UMLGraph createGraph(DiagramPresentationElement dpe, boolean useIntegratedLabels)
dpe
- shapes and edges are taken from this diagram@OpenApi protected UMLGraph createGraph(DiagramPresentationElement dpe, AbstractDiagramLayouterOptionsGroup optionsGroup)
dpe
- shapes and edges are taken from this diagramoptionsGroup
- layouter options@OpenApi protected java.util.Set<PresentationElement> getSelected(DiagramPresentationElement diagramView)
diagramView
- the diagram that elements were selected in@OpenApi protected abstract boolean layout(AbstractDiagramLayouterOptionsGroup opt, DiagramPresentationElement dpe, UMLGraph graph)
opt
- layouter optionsdpe
- diagram to layoutgraph
- a constructed graph from the diagram@OpenApi public boolean isTypeSupported(DiagramType type)
type
- The given type.@OpenApi public boolean isSubgraphLayout()
@OpenApi public void setSubgraphLayout(boolean subgraphLayout)
subgraphLayout
- is sub-graph