@OpenApi
public class UMLGraph
extends y.layout.DefaultLayoutGraph
Constructor and Description |
---|
UMLGraph(DiagramPresentationElement diagramView,
boolean supportsSubgraph,
java.util.Set<PresentationElement> selected)
Deprecated.
supportsSubgraph has no effect
|
UMLGraph(DiagramPresentationElement diagramView,
boolean supportsSubgraph,
java.util.Set<PresentationElement> selected,
boolean resetLabelPositions)
Deprecated.
supportsSubgraph has no effect
|
UMLGraph(DiagramPresentationElement diagramView,
java.util.Set<PresentationElement> selected)
Construct UML Graph.
|
UMLGraph(DiagramPresentationElement diagramView,
java.util.Set<PresentationElement> selected,
boolean resetLabelPositions) |
Modifier and Type | Method and Description |
---|---|
DiagramPresentationElement |
getDiagram()
Get Presentation Diagram.
|
java.util.Set<PresentationElement> |
getSelected()
Get Set of the selected PresentationElement.
|
java.awt.Point |
getSphereCenterPoint() |
int |
getSphereRadius() |
java.lang.String |
getStyle()
Get String representation of Style.
|
void |
initializeData()
Collects all data provided by diagram to nodes and edges.
|
void |
setPathStyle(java.lang.String style)
Set path style
|
void |
setResetLabelsAtInit(boolean resetLabelsAtInit) |
void |
setSphereCenterPoint(java.awt.Point point)
Sets the center of the sphere that is used for node creation
|
void |
setSphereRadius(int radius)
Sets the sphere from the defined point.
|
boolean |
shouldResetLabelsAtInit() |
createEdgeLayout, createGraphCopyFactory, createLabelFactory, createNodeLayout, getFeature, getFeature, getLabelLayout, getLabelLayout, getLayout, getLayout, setLabelLayout, setLabelLayout, setLabelLayout, setLayout, setLayout
getBoundingBox, getCenter, getCenterX, getCenterY, getEdgeLabelLayout, getEdgeLayout, getEdgeList, getHeight, getLocation, getNodeLabelLayout, getNodeLayout, getPath, getPathList, getPointList, getPoints, getRectangle, getSize, getSourcePointAbs, getSourcePointRel, getTargetPointAbs, getTargetPointRel, getWidth, getX, getY, moveBy, setCenter, setCenter, setEndPointsAbs, setLocation, setLocation, setPath, setPath, setPoints, setPoints, setSize, setSize, setSourcePointAbs, setSourcePointRel, setTargetPointAbs, setTargetPointRel
addDataProvider, addGraphListener, changeEdge, changeEdge, changeEdge, clear, contains, contains, containsEdge, createCopy, createEdge, createEdge, createEdgeMap, createGraph, createNode, createNodeMap, disposeEdgeMap, disposeNodeMap, E, edgeCount, edgeObjects, edges, fireGraphEvent, firePostEvent, firePostEvent, firePreEvent, firePreEvent, firstEdge, firstNode, firstOutEdge, getDataProvider, getDataProviderKeys, getEdgeArray, getGraphCopyFactory, getGraphListeners, getNodeArray, getRegisteredEdgeMaps, getRegisteredNodeMaps, getSource, getTarget, hasListeners, hide, hide, isEmpty, lastEdge, lastNode, moveSubGraph, moveToFirst, moveToFirst, moveToLast, moveToLast, N, nodeCount, nodeObjects, nodes, printNodeSlotSize, reInsertEdge, reInsertNode, removeDataProvider, removeEdge, removeGraphListener, removeNode, reverseEdge, setGraphCopyFactory, sortEdges, sortEdges, sortNodes, toString, unhide, unhide
@OpenApi public UMLGraph(DiagramPresentationElement diagramView, java.util.Set<PresentationElement> selected)
diagramView
- diagram for which to construct graph.selected
- selected elements@Deprecated @OpenApi public UMLGraph(DiagramPresentationElement diagramView, boolean supportsSubgraph, java.util.Set<PresentationElement> selected)
@OpenApi public UMLGraph(DiagramPresentationElement diagramView, java.util.Set<PresentationElement> selected, boolean resetLabelPositions)
@Deprecated @OpenApi public UMLGraph(DiagramPresentationElement diagramView, boolean supportsSubgraph, java.util.Set<PresentationElement> selected, boolean resetLabelPositions)
@OpenApi public void initializeData()
@OpenApi public DiagramPresentationElement getDiagram()
@OpenApi public boolean shouldResetLabelsAtInit()
@OpenApi public final void setResetLabelsAtInit(boolean resetLabelsAtInit)
resetLabelsAtInit
- true for label reset when creating the graph, false otherwise. Use true for layouting, false when graph is used as a
reference for routing.@OpenApi public java.lang.String getStyle()
@OpenApi public void setPathStyle(java.lang.String style)
style
- path style to set@OpenApi public java.util.Set<PresentationElement> getSelected()
@OpenApi public void setSphereRadius(int radius)
radius
- the radius that shapes are collected@OpenApi public int getSphereRadius()
@OpenApi public void setSphereCenterPoint(@CheckForNull java.awt.Point point)
point
- new point of center, default is 0,0@CheckForNull @OpenApi public java.awt.Point getSphereCenterPoint()