Class BaseGraph
java.lang.Object
y.base.Graph
y.layout.LayoutGraph
y.layout.DefaultLayoutGraph
com.nomagic.magicdraw.uml.symbols.layout.BaseGraph
- All Implemented Interfaces:
y.base.GraphInterface,y.layout.GraphLayout
- Direct Known Subclasses:
UMLGraph
@OpenApi
@Deprecated(since="2024x Refresh3")
public class BaseGraph
extends y.layout.DefaultLayoutGraph
Deprecated.
UML graph data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectDeprecated.protected ObjectDeprecated.protected final Set<PathElement>Deprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.Deprecated.protected com.dassault_systemes.modeler.magic.diagram.ylayout.labels.EdgeLabelFactoryDeprecated.protected y.layout.grid.PartitionGridDeprecated.static final StringDeprecated.protected Map<PresentationElement,Object> Deprecated.PresentationElement (path or shape) bind to yFiles edge or node.protected AbstractDiagramPresentationElementDeprecated.protected y.base.EdgeMapDeprecated.protected final Map<PresentationElement,y.base.Edge> Deprecated.protected y.base.NodeMapDeprecated.protected y.base.NodeMapDeprecated.protected y.base.NodeMapDeprecated.protected final Set<PresentationElement>Deprecated.protected Set<PresentationElement>Deprecated.protected Set<PresentationElement>Deprecated.protected com.dassault_systemes.modeler.magic.diagram.ylayout.labels.NodeLabelFactoryDeprecated.protected final Map<y.base.Node,com.dassault_systemes.modeler.magic.diagram.ylayout.partition.TableShapeAndCellStructure> Deprecated.protected ObjectDeprecated.static final StringDeprecated.protected Set<com.nomagic.magicdraw.uml.symbols.shapes.TableShapeView>Deprecated.The table shape views that were visited and should be considered one way or another.Fields inherited from class y.layout.DefaultLayoutGraph
edgeLabelFeatureMap, edgeLabelMap, nodeLabelFeatureMap, nodeLabelMapFields inherited from class y.layout.LayoutGraph
zFields inherited from class y.base.Graph
AFTER, BEFORE -
Constructor Summary
ConstructorsConstructorDescriptionBaseGraph(AbstractDiagramPresentationElement diagramView, boolean supportsSubgraph, Set<PresentationElement> selected) Deprecated, for removal: This API element is subject to removal in a future version.supportsSubgraph has no effectBaseGraph(AbstractDiagramPresentationElement diagramView, boolean supportsSubgraph, Set<PresentationElement> selected, boolean resetLabelPositions) Deprecated, for removal: This API element is subject to removal in a future version.supportsSubgraph has no effectBaseGraph(AbstractDiagramPresentationElement diagramView, Set<PresentationElement> selected) Deprecated.BaseGraph(AbstractDiagramPresentationElement diagramView, Set<PresentationElement> selected, boolean resetLabelPositions) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiony.base.EdgeMapaddEdgeSelectionProvider(Object provider, Collection<y.base.Edge> c) Deprecated.Add Edge Selection Provider.y.base.EdgeMapaddEdgeSelectionProvider(Object provider, y.base.Edge edge) Deprecated.Add Edge Selection Provider.voidDeprecated.Add Group node inset provider.protected voidDeprecated.protected voidaddToPathList(PathElement path) Deprecated.protected voidaddToPathList(Iterable<PathElement> paths) Deprecated.voidaddToReversedList(y.base.Edge edge) Deprecated.protected voidDeprecated.booleanareParentToChildConnected(Iterable<PathElement> connectedPathElements) Deprecated.booleanbelongsToHierarchy(y.base.Edge edge) Deprecated.Check The given Edge belongs to hierarchy.booleanbelongsToHierarchy(y.base.Node node) Deprecated.Checks the given node belongs to Hierarchy.protected voidcollectPathsRecursively(ShapeElement element, y.base.Node node) Deprecated.booleanDeprecated.Check If contains hierarchy.protected voidcreateAllNodeLabels(ShapeElement shape, y.base.Node node) Deprecated.protected voidcreateAllPathLabels(com.dassault_systemes.modeler.magic.diagram.ylayout.labels.EdgeLabelFactory factory, y.base.Edge edge, PathElement pathElement) Deprecated.voidcreateCommands(com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Create command with given parameter.voidcreateEdge(PathElement path) Deprecated.Creates an edge in a graph by provided path element.protected voidcreateEdgesToNotLayoutableOnEdge(y.base.Node node, Collection<PresentationElement> manipulatedElements) Deprecated.y.layout.grouping.GroupBoundsCalculatorDeprecated.Creates bounds calculator for group nodesvoidcreateHierarchicInfo(Collection<Class<?>> classTypes) Deprecated.Create Hierarchy Information of path element.protected y.base.NodecreateNode(ShapeElement shape) Deprecated.y.base.NodecreateNode(Object id) Deprecated.Create new Node and set the given id to it.protected voidcreateNodeData(Object parentId, PresentationElement view) Deprecated.protected voidcreateNodesData(Object parentId, Collection<PresentationElement> presentationElements) Deprecated.voiddispose()Deprecated.Dispose the graph and graph related data.protected booleanDeprecated.voidDeprecated.Draw a result.Deprecated.Deprecated.intDeprecated.Deprecated.Deprecated.Get Presentation Diagram.Deprecated.y.base.EdgegetEdge(PathElement path) Deprecated.Get Edge of given path element.getEdgeLabelBoundingBox(y.base.Edge e, y.layout.EdgeLabelLayout ell) Deprecated.Get bounding box of the given edge label.Deprecated.y.base.EdgeMapDeprecated.y.layout.NodeHalogetEnclosingShapeHalo(y.base.Node forNode) Deprecated.Map<PresentationElement,y.base.Edge> Deprecated.getID(y.base.Node node) Deprecated.Get The given node ID.y.base.NodeMapDeprecated.protected y.geom.YInsetsgetInsets(ShapeElement shape) Deprecated.protected y.geom.YInsetsgetInsets(ShapeElement shape, Insets addAdditional) Deprecated.protected Map<y.base.Edge,List<com.dassault_systemes.modeler.magic.diagram.ylayout.labels.AbstractCompositeEdgeLabelDescriptor>> getLabelByCondition(Predicate<y.layout.EdgeLabelLayout> condition) Deprecated.Map<y.base.Edge,List<com.dassault_systemes.modeler.magic.diagram.ylayout.labels.AbstractCompositeEdgeLabelDescriptor>> Deprecated.Deprecated.y.base.NodeDeprecated.Get Node from the Presentation element recursively.y.base.NodeDeprecated.y.geom.YPointgetNodeHaloAdjustedSourcePointAbs(y.base.Edge edge) Deprecated.Get absolute location of edge source point on halo, not on the source node itself.y.geom.YPointgetNodeHaloAdjustedTargetPointAbs(y.base.Edge edge) Deprecated.Get absolute location of edge target point on halo, not on the target node itself.Deprecated.y.base.NodeMapDeprecated.Map<y.base.Node,com.dassault_systemes.modeler.magic.diagram.ylayout.partition.TableShapeAndCellStructure> Deprecated.Deprecated.Deprecated.getParentId(y.base.Node node) Deprecated.Get Node 's parent id.y.layout.grid.PartitionGridDeprecated.Deprecated.getPathElement(y.base.Edge edge) Deprecated.Get Path Element of the given edge.intDeprecated.getPointsFromEdge(y.base.Edge edge) Deprecated.Returns the points from an edgeSet<y.base.Edge>Deprecated.Deprecated.Get Set of the selected PresentationElement.getShapeElement(y.base.Node node) Deprecated.Get The given node 's Shape Element.protected Collection<PresentationElement>Deprecated.Deprecated.intDeprecated.getStyle()Deprecated.Get String representation of Style.Set<com.nomagic.magicdraw.uml.symbols.shapes.TableShapeView>Deprecated.The tableShapeViews that are considered in this graph.protected voidDeprecated.Ignores centerlines on shape bound changes for centerlineable shape.voidDeprecated.booleanisConsideredAsOuterBoundary(PresentationElement presentationElement) Deprecated.protected booleanDeprecated.booleanisGroupNode(y.base.Node node) Deprecated.Checks if a given node is a group node or not.protected booleanisInSphereRadius(ShapeElement element) Deprecated.static booleanDeprecated.Checks if symbol is layoutable by providers.booleanisLayoutAnchoredShapeOwnerAsLabel(com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner view) Deprecated.protected booleanDeprecated.static booleanisTreeOverlapping(com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape tree, int y, Iterable<com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape> trees) Deprecated.Check Is tree overlapping.voidmakeSubTree(y.base.Node node, Class<?> classType, com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Make subtree.voidmakeSubTrees(com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Make sub trees with the given Macrocommand.protected booleanDeprecated.protected voidplaceLayoutedPathLabel(PresentationElement pe, y.base.Edge edge, com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.protected voidplacePath(com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc, PathElement path, y.base.Edge edge) Deprecated.protected voidplacePaths(com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc, boolean bpaths, com.dassault_systemes.modeler.magic.diagram.command.MoveManager moveManager) Deprecated.voidDeprecated.Remove The group node in sets of provider.static voidremoveSubTrees(com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc, AbstractDiagramPresentationElement dpe, Set<PresentationElement> selection) Deprecated.Remove Sub Trees from the given presentation element.voidDeprecated.Resets label to their default position.protected voidresetUnhandledPath(com.dassault_systemes.modeler.magic.diagram.command.MoveManager moveManager, PresentationElement prEl) Deprecated.voidreverseAndAddToNoReverseList(y.base.Edge edg) Deprecated.Reverses an edge in graph, does not reverse if path is already reversed.voidreverseEdge(y.base.Edge edge) Deprecated.Reverses an edge.voidreverseEdgeAndLabels(y.base.Edge edg) Deprecated.Reverses the edge along with labels, but does not add them to no reverse list.voidsetAnchoredShape(PresentationElement anchoredShape) Deprecated.voidsetCreateEdgeLabels(int createEdgeLabels) Deprecated.voidsetCreateNodeLabels(boolean shouldCreateNodeLabels) Deprecated.voidsetEdgeLabelFactory(com.dassault_systemes.modeler.magic.diagram.ylayout.labels.EdgeLabelFactory edgeLabelFactory) Deprecated.voidsetGroupNode(y.base.Node node, boolean isGroup) Deprecated.voidsetLayouterParameters(Map<String, Object> layouterParameters) Deprecated.voidsetMinimalGroupNodeSize(y.base.Node node, y.geom.YDimension dim) Deprecated.Sets the minimal group node size that is obeyed by layouter.protected voidsetNodeSizeEnsureNotZero(Rectangle bounds, y.base.Node node) Deprecated.Sets graph node size, ensures the node height or width is not 0voidsetOuterBoundaryShape(PresentationElement outerBoundaryShape) Deprecated.voidDeprecated.Set node 's parent.voidsetPartitionGrid(y.layout.grid.PartitionGrid partitionGrid) Deprecated.voidsetPartitionInfo(Object info) Deprecated.protected voidsetPathBreakPoints(PathElement path, List<Point> points, Point client, Point supplier, com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Set Path break point.voidsetPathStyle(String style) Deprecated.Set path stylevoidsetPlaceEdgeLabelsTo(int placeEdgeLabelsTo) Deprecated.voidsetPlaceNodeLabels(boolean shouldPlaceNodeLabelsToCalculatedPositions) Deprecated.final voidsetResetLabelsAtInit(boolean resetLabelsAtInit) Deprecated.voidsetSphereCenterPoint(Point point) Deprecated.Sets the center of the sphere that is used for node creationvoidsetSphereRadius(int radius) Deprecated.Sets the sphere from the defined point.booleanDeprecated.booleanDeprecated.booleanDeprecated.Methods inherited from class y.layout.DefaultLayoutGraph
createEdgeLayout, createGraphCopyFactory, createLabelFactory, createNodeLayout, getFeature, getFeature, getLabelLayout, getLabelLayout, getLayout, getLayout, setLabelLayout, setLabelLayout, setLabelLayout, setLayout, setLayoutMethods inherited from class y.layout.LayoutGraph
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, setTargetPointRelMethods inherited from class y.base.Graph
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, setGraphCopyFactory, sortEdges, sortEdges, sortNodes, toString, unhide, unhide
-
Field Details
-
LAYOUTABLE_NODE_FEATURE_ID
Deprecated.- See Also:
-
SHRINKABLE_SHAPE_INSET_DP
Deprecated.- See Also:
-
EDGE_LABEL_NONE
public static final int EDGE_LABEL_NONEDeprecated.- See Also:
-
EDGE_LABEL_AT_ENDS
public static final int EDGE_LABEL_AT_ENDSDeprecated.- See Also:
-
EDGE_LABEL_NON_ENDS
public static final int EDGE_LABEL_NON_ENDSDeprecated.- See Also:
-
EDGE_LABEL_ALL
public static final int EDGE_LABEL_ALLDeprecated.- See Also:
-
mFakeElementsMap
Deprecated. -
doNotRepaint
Deprecated. -
mNotSupported
Deprecated. -
mDataMap
Deprecated.PresentationElement (path or shape) bind to yFiles edge or node. -
mNodeMap
protected y.base.NodeMap mNodeMapDeprecated. -
mEdgeMap
protected y.base.EdgeMap mEdgeMapDeprecated. -
mNodeId
protected y.base.NodeMap mNodeIdDeprecated. -
mGroupKey
protected y.base.NodeMap mGroupKeyDeprecated. -
mPaths
Deprecated. -
mDiagramView
Deprecated. -
mSelected
Deprecated. -
edgeLabelDataMap
Deprecated. -
partitionInfo
Deprecated. -
nodeToTableShapeViewPlacement
protected final Map<y.base.Node,com.dassault_systemes.modeler.magic.diagram.ylayout.partition.TableShapeAndCellStructure> nodeToTableShapeViewPlacementDeprecated. -
tableShapeViews
Deprecated.The table shape views that were visited and should be considered one way or another. -
currentTableShapeView
Deprecated. -
currentTableCellView
Deprecated. -
grid
protected y.layout.grid.PartitionGrid gridDeprecated. -
edgeLabelFactory
@CheckForNull protected com.dassault_systemes.modeler.magic.diagram.ylayout.labels.EdgeLabelFactory edgeLabelFactoryDeprecated. -
nodeLabelFactory
@CheckForNull protected com.dassault_systemes.modeler.magic.diagram.ylayout.labels.NodeLabelFactory nodeLabelFactoryDeprecated.
-
-
Constructor Details
-
BaseGraph
@OpenApi @Deprecated(since="2024x Refresh3") public BaseGraph(AbstractDiagramPresentationElement diagramView, Set<PresentationElement> selected) Deprecated.Construct a graph with given parameter- Parameters:
diagramView- diagram for which to construct graph.selected- selected elements
-
BaseGraph
@OpenApi @Deprecated(since="2024x Refresh3", forRemoval=true) public BaseGraph(AbstractDiagramPresentationElement diagramView, boolean supportsSubgraph, Set<PresentationElement> selected) Deprecated, for removal: This API element is subject to removal in a future version.supportsSubgraph has no effect -
BaseGraph
@OpenApi @Deprecated(since="2024x Refresh3") public BaseGraph(AbstractDiagramPresentationElement diagramView, Set<PresentationElement> selected, boolean resetLabelPositions) Deprecated. -
BaseGraph
@OpenApi @Deprecated(since="2024x Refresh3", forRemoval=true) public BaseGraph(AbstractDiagramPresentationElement diagramView, boolean supportsSubgraph, Set<PresentationElement> selected, boolean resetLabelPositions) Deprecated, for removal: This API element is subject to removal in a future version.supportsSubgraph has no effect
-
-
Method Details
-
initializeData
Deprecated.Collects all data provided by diagram to nodes and edges. -
getInsets
Deprecated. -
getInsets
Deprecated. -
createNode
Deprecated. -
setNodeSizeEnsureNotZero
Deprecated.Sets graph node size, ensures the node height or width is not 0- Parameters:
bounds- the bounds to setnode- the node that should have the minimal size
-
createAllNodeLabels
Deprecated. -
getBoundingBox
Deprecated.- Specified by:
getBoundingBoxin interfacey.layout.GraphLayout- Overrides:
getBoundingBoxin classy.layout.LayoutGraph
-
createNode
Deprecated.Create new Node and set the given id to it.- Parameters:
id- The given id.- Returns:
- Create node.
-
getID
Deprecated.Get The given node ID.- Parameters:
node- The given node.- Returns:
- Object.
-
createEdge
Deprecated.Creates an edge in a graph by provided path element.- Parameters:
path- the path that will correspond an edge
-
createAllPathLabels
protected void createAllPathLabels(com.dassault_systemes.modeler.magic.diagram.ylayout.labels.EdgeLabelFactory factory, y.base.Edge edge, PathElement pathElement) Deprecated. -
getPathElement
Deprecated.Get Path Element of the given edge.- Parameters:
edge- The given edge.- Returns:
- PathElement.
-
getShapeElement
Deprecated.Get The given node 's Shape Element.- Parameters:
node- The given node.- Returns:
- ShapeElement.
-
setParent
Deprecated.Set node 's parent.- Parameters:
node- The given node.parentId- The parent 's id.
-
getParentId
Deprecated.Get Node 's parent id.- Parameters:
node- The given node.- Returns:
- Object
-
getDiagram
Deprecated.Get Presentation Diagram.- Returns:
- Presentation Diagram.
-
needToCreate
Deprecated. -
createNodesData
protected void createNodesData(@CheckForNull Object parentId, Collection<PresentationElement> presentationElements) Deprecated. -
isLayoutAnchoredShapeOwnerAsLabel
public boolean isLayoutAnchoredShapeOwnerAsLabel(com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner view) Deprecated. -
createNodeData
Deprecated. -
createEdgesToNotLayoutableOnEdge
protected void createEdgesToNotLayoutableOnEdge(y.base.Node node, Collection<PresentationElement> manipulatedElements) Deprecated. -
getSpecialInnerManipulatedPresentationElements
protected Collection<PresentationElement> getSpecialInnerManipulatedPresentationElements(PresentationElement view) Deprecated. -
isCreatableNode
Deprecated. -
adjustFakeAtEndShapeLabelOrientation
Deprecated. -
addToPathList
Deprecated. -
addToPathList
Deprecated. -
doesNotHaveConnectedLayoutableEdges
Deprecated. -
areParentToChildConnected
Deprecated. -
collectPathsRecursively
Deprecated. -
addPaths
Deprecated. -
getNode
Deprecated.Get Node from the Presentation element recursively.- Parameters:
se- PresentationElement.- Returns:
- a node for presentation element, or null if not found
-
getNodeDirectly
Deprecated. -
getEdge
Deprecated.Get Edge of given path element.- Parameters:
path- The given path element.- Returns:
- Edge.
-
isNotLayoutedChild
Deprecated. -
isLayoutableByProviders
Deprecated.Checks if symbol is layoutable by providers.- Parameters:
el- checked element- Returns:
- true if all providers say that the symbol is layoutable, false if at least one says it is not layoutable
-
createCommands
public void createCommands(@CheckForNull com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Create command with given parameter.- Parameters:
mc- MacroCommand.
-
getEnclosingShapeHalo
@CheckForNull public y.layout.NodeHalo getEnclosingShapeHalo(@CheckForNull y.base.Node forNode) Deprecated. -
ignoreCenterlines
Deprecated.Ignores centerlines on shape bound changes for centerlineable shape.- Parameters:
shape- the shape to ignore centerlines on shape bound changes
-
placePaths
protected void placePaths(@CheckForNull com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc, boolean bpaths, com.dassault_systemes.modeler.magic.diagram.command.MoveManager moveManager) Deprecated. -
placePath
protected void placePath(@CheckForNull com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc, PathElement path, y.base.Edge edge) Deprecated. -
resetUnhandledPath
protected void resetUnhandledPath(com.dassault_systemes.modeler.magic.diagram.command.MoveManager moveManager, PresentationElement prEl) Deprecated. -
getPointsFromEdge
Deprecated.Returns the points from an edge- Parameters:
edge- edge's point to return- Returns:
- edge points excluding source and target
-
setPathBreakPoints
protected void setPathBreakPoints(PathElement path, List<Point> points, Point client, Point supplier, @CheckForNull com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Set Path break point.- Parameters:
path- Path Element.points- List of break point.client- Client point.supplier- Supplier point.mc- Macro command.
-
placeLayoutedPathLabel
protected void placeLayoutedPathLabel(PresentationElement pe, y.base.Edge edge, @CheckForNull com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated. -
getLabelDescriptorsNotAtEnd
public Map<y.base.Edge,List<com.dassault_systemes.modeler.magic.diagram.ylayout.labels.AbstractCompositeEdgeLabelDescriptor>> getLabelDescriptorsNotAtEnd()Deprecated. -
getLabelByCondition
protected Map<y.base.Edge,List<com.dassault_systemes.modeler.magic.diagram.ylayout.labels.AbstractCompositeEdgeLabelDescriptor>> getLabelByCondition(Predicate<y.layout.EdgeLabelLayout> condition) Deprecated. -
resetLabel
Deprecated.Resets label to their default position. This is done when collecting labels while creating graph.- Parameters:
pe- the element that labels will be reset
-
shouldResetLabelsAtInit
public boolean shouldResetLabelsAtInit()Deprecated.- Returns:
- if label positions should be reset before creating the graph
-
setResetLabelsAtInit
public final void setResetLabelsAtInit(boolean resetLabelsAtInit) Deprecated.- Parameters:
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.
-
getEdgeLabelBoundingBox
Deprecated.Get bounding box of the given edge label.- Parameters:
e- Edgeell- Edge Label Layout.- Returns:
- the bounding box rectangle
-
dispose
public void dispose()Deprecated.Dispose the graph and graph related data. -
setMinimalGroupNodeSize
public void setMinimalGroupNodeSize(y.base.Node node, y.geom.YDimension dim) Deprecated.Sets the minimal group node size that is obeyed by layouter.- Parameters:
node- the node that should have the minimal sizedim- the size of node
-
isGroupNode
public boolean isGroupNode(y.base.Node node) Deprecated.Checks if a given node is a group node or not.- Parameters:
node- the node to check- Returns:
- true if node is a group node, false otherwise.
-
setGroupNode
public void setGroupNode(y.base.Node node, boolean isGroup) Deprecated. -
getStyle
Deprecated.Get String representation of Style.- Returns:
- String.
-
setPathStyle
Deprecated.Set path style- Parameters:
style- path style to set
-
makeSubTrees
public void makeSubTrees(com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Make sub trees with the given Macrocommand.- Parameters:
mc- macro
-
makeSubTree
public void makeSubTree(y.base.Node node, Class<?> classType, com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc) Deprecated.Make subtree.- Parameters:
node- The given node.classType- The given class type.mc- Macro Command.
-
isTreeOverlapping
public static boolean isTreeOverlapping(com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape tree, int y, Iterable<com.nomagic.magicdraw.uml.symbols.shapes.BaseTreeShape> trees) Deprecated.Check Is tree overlapping.- Parameters:
tree- The given tree view.y- y coordinate of the horizontal bar of the tree view.trees- Collection of trees.- Returns:
- boolean.
-
removeSubTrees
public static void removeSubTrees(@CheckForNull com.dassault_systemes.modeler.foundation.editing.CompositeCommand mc, AbstractDiagramPresentationElement dpe, Set<PresentationElement> selection) Deprecated.Remove Sub Trees from the given presentation element.- Parameters:
mc- MacroCommanddpe- DiagramPresentation.selection- if not null or empty removes only trees that groups all selected paths or all path connectors.
-
belongsToHierarchy
public boolean belongsToHierarchy(y.base.Node node) Deprecated.Checks the given node belongs to Hierarchy.- Parameters:
node- The given node.- Returns:
- true, if the node belongs to some hierarchy
-
belongsToHierarchy
public boolean belongsToHierarchy(y.base.Edge edge) Deprecated.Check The given Edge belongs to hierarchy.- Parameters:
edge- The given edge.- Returns:
- boolean
-
containsHierarchy
public boolean containsHierarchy()Deprecated.Check If contains hierarchy.- Returns:
- boolean
-
createHierarchicInfo
Deprecated.Create Hierarchy Information of path element.- Parameters:
classTypes- List of class type.
-
drawResults
public void drawResults()Deprecated.Draw a result. You need to comment the graph.dispose() call in AbstractDiagramLayouter in order to see the results. -
getSelected
Deprecated.Get Set of the selected PresentationElement.- Returns:
- Set of selected presentation elements
-
addEdgeSelectionProvider
Deprecated.Add Edge Selection Provider.- Parameters:
provider- The given provider.c- Collection of Edge.- Returns:
- EdgeMap.
-
addEdgeSelectionProvider
Deprecated.Add Edge Selection Provider.- Parameters:
provider- The given provider.edge- single edge- Returns:
- EdgeMap.
-
addGroupNodeInsetsProvider
public void addGroupNodeInsetsProvider()Deprecated.Add Group node inset provider. -
removeGroupNodeInsetsProvider
public void removeGroupNodeInsetsProvider()Deprecated.Remove The group node in sets of provider. -
createGroupBoundsCalculator
public y.layout.grouping.GroupBoundsCalculator createGroupBoundsCalculator()Deprecated.Creates bounds calculator for group nodes- Returns:
- calculator
-
getNodeMap
public y.base.NodeMap getNodeMap()Deprecated.- Returns:
- a node map associated with a data provider
-
getEdgeMap
public y.base.EdgeMap getEdgeMap()Deprecated.- Returns:
- an edge map associated with a data provider
-
getDataMap
Deprecated.- Returns:
- an edge map associated with a data provider
-
reverseAndAddToNoReverseList
public void reverseAndAddToNoReverseList(y.base.Edge edg) Deprecated.Reverses an edge in graph, does not reverse if path is already reversed. This method handles label sides also, but only if they are described by PreferredPlacementDescriptor. PreferredPlacementDescriptor.PLACE_AT_TARGET is changed to PreferredPlacementDescriptor.PLACE_AT_SOURCE- Parameters:
edg- the edge to reverse
-
reverseEdgeAndLabels
public void reverseEdgeAndLabels(y.base.Edge edg) Deprecated.Reverses the edge along with labels, but does not add them to no reverse list.- Parameters:
edg- edge to reverse
-
reverseEdge
public void reverseEdge(y.base.Edge edge) Deprecated.Reverses an edge. Note: does not reverse the labels if they are placed on edge ends. Check thereverseAndAddToNoReverseListmethod.- Overrides:
reverseEdgein classy.base.Graph- Parameters:
edge- edge to reverse
-
addToReversedList
public void addToReversedList(y.base.Edge edge) Deprecated.- Parameters:
edge- edge to add
-
getReversedList
Deprecated.- Returns:
- a set of reversed edges
-
setPlaceEdgeLabelsTo
@OpenApi @Deprecated(since="2024x Refresh3") public void setPlaceEdgeLabelsTo(int placeEdgeLabelsTo) Deprecated.Sets the calculated label placement for labels. Labels can be created for consideration only, but not placed at the calculated location. One of EDGE_LABEL_NONE, EDGE_LABEL_AT_ENDS, EDGE_LABEL_NON_ENDS , EDGE_LABEL_ALL. EDGE_LABEL_ALL by default.- Parameters:
placeEdgeLabelsTo- the edge placement mode
-
getPlaceEdgeLabelsPositions
Deprecated.- Returns:
- the edge placement mode
-
setCreateEdgeLabels
Deprecated.Sets the label creation mode. One of EDGE_LABEL_NONE, EDGE_LABEL_AT_ENDS, EDGE_LABEL_NON_ENDS , EDGE_LABEL_ALL. EDGE_LABEL_ALL by default.- Parameters:
createEdgeLabels- edge placement mode
-
getCreateEdgeLabels
Deprecated.- Returns:
- the edge creation mode
-
setPlaceNodeLabels
@OpenApi @Deprecated(since="2024x Refresh3") public void setPlaceNodeLabels(boolean shouldPlaceNodeLabelsToCalculatedPositions) Deprecated.- Parameters:
shouldPlaceNodeLabelsToCalculatedPositions- determines if node labels should be placed at the calculated graph position
-
shouldPlaceNodeLabels
Deprecated.- Returns:
- true if node labels should be set at the calculated position, false for the default position
-
setCreateNodeLabels
@OpenApi @Deprecated(since="2024x Refresh3") public void setCreateNodeLabels(boolean shouldCreateNodeLabels) Deprecated.- Parameters:
shouldCreateNodeLabels- determines if node labels should be created and considered by the graph
-
shouldCreateNodeLabels
Deprecated.- Returns:
- the node label creation mode
-
getPartitionGrid
public y.layout.grid.PartitionGrid getPartitionGrid()Deprecated.- Returns:
- instance of partition grid
-
setPartitionGrid
public void setPartitionGrid(y.layout.grid.PartitionGrid partitionGrid) Deprecated.- Parameters:
partitionGrid- sets to use this partition grid as grid
-
getNodeToTableShapeAndCellStructure
public Map<y.base.Node,com.dassault_systemes.modeler.magic.diagram.ylayout.partition.TableShapeAndCellStructure> getNodeToTableShapeAndCellStructure()Deprecated.- Returns:
- the node belonging to a tableShape structure
-
getPartitionInfo
Deprecated.- Returns:
- the constructed partition info.
-
setPartitionInfo
Deprecated.- Parameters:
info- the information of partitions
-
setSphereRadius
public void setSphereRadius(int radius) Deprecated.Sets the sphere from the defined point. All element within this sphere will be collected and initiated. Shapes outside the sphere will be ignored.- Parameters:
radius- the radius that shapes are collected
-
getSphereRadius
public int getSphereRadius()Deprecated.- Returns:
- the sphere size for data initialization
-
setSphereCenterPoint
Deprecated.Sets the center of the sphere that is used for node creation- Parameters:
point- new point of center, default is 0,0
-
getSphereCenterPoint
Deprecated.- Returns:
- the center of the sphere for node creation
-
isInSphereRadius
Deprecated.- Returns:
- true, if shape is in sphere radius, or sphere radius is the default, false otherwise.
-
getNodeHaloAdjustedSourcePointAbs
public y.geom.YPoint getNodeHaloAdjustedSourcePointAbs(y.base.Edge edge) Deprecated.Get absolute location of edge source point on halo, not on the source node itself. As symbols themselves are adjusted by the halos, this is necessary for on edge shape placement to calculate a correct position. Currently only UMLGraphKeys.ENCLOSING_SHAPE_HALO_DP_KEY is considered.- Parameters:
edge- edge- Returns:
- the source point on halo, rather than node
-
getNodeHaloAdjustedTargetPointAbs
public y.geom.YPoint getNodeHaloAdjustedTargetPointAbs(y.base.Edge edge) Deprecated.Get absolute location of edge target point on halo, not on the target node itself. As symbols themselves are adjusted by the halos, this is necessary for on edge shape placement to calculate a correct position. Currently only UMLGraphKeys.ENCLOSING_SHAPE_HALO_DP_KEY is considered.- Parameters:
edge- edge- Returns:
- the target point on halo, rather than node
-
setEdgeLabelFactory
public void setEdgeLabelFactory(@CheckForNull com.dassault_systemes.modeler.magic.diagram.ylayout.labels.EdgeLabelFactory edgeLabelFactory) Deprecated. -
getNonSupportedSymbols
Deprecated.- Returns:
- set of symbols(shapes or paths) that are not supported by the graph and will not be included into layout and/or will be treated not as a part of the graph
-
getDoNotRepaintPaths
Deprecated.- Returns:
- set of collected paths that are included in the layout, but not repainted according to the graph result
-
getFakeElementsMap
Deprecated. -
getInsetMap
public y.base.NodeMap getInsetMap()Deprecated. -
getEdgeLabelDataMap
Deprecated. -
getNodeLabelDataMap
Deprecated. -
getAnchoredShape
Deprecated. -
setAnchoredShape
Deprecated. -
getLayouterParameters
Deprecated. -
setLayouterParameters
Deprecated. -
isConsideredAsOuterBoundary
Deprecated. -
getOuterBoundaryShape
Deprecated. -
setOuterBoundaryShape
Deprecated. -
getTableShapeViews
Deprecated.The tableShapeViews that are considered in this graph.
-