Class UMLGraph

  • All Implemented Interfaces:
    y.base.GraphInterface, y.layout.GraphLayout

    @OpenApi
    public class UMLGraph
    extends y.layout.DefaultLayoutGraph
    UML graph data.
    • Field Summary

      • Fields inherited from class y.layout.DefaultLayoutGraph

        edgeLabelFeatureMap, edgeLabelMap, nodeLabelFeatureMap, nodeLabelMap
      • Fields inherited from class y.layout.LayoutGraph

        z
      • Fields inherited from class y.base.Graph

        AFTER, BEFORE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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()  
      • Methods inherited from class y.layout.DefaultLayoutGraph

        createEdgeLayout, createGraphCopyFactory, createLabelFactory, createNodeLayout, getFeature, getFeature, getLabelLayout, getLabelLayout, getLayout, getLayout, setLabelLayout, setLabelLayout, setLabelLayout, setLayout, setLayout
      • Methods 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, setTargetPointRel
      • Methods 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • initializeData

        @OpenApi
        public void initializeData()
        Collects all data provided by diagram to nodes and edges.
      • shouldResetLabelsAtInit

        @OpenApi
        public boolean shouldResetLabelsAtInit()
        Returns:
        if label positions should be reset before creating the graph
      • setResetLabelsAtInit

        @OpenApi
        public final void setResetLabelsAtInit​(boolean resetLabelsAtInit)
        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.
      • getStyle

        @OpenApi
        public java.lang.String getStyle()
        Get String representation of Style.
        Returns:
        String.
      • setPathStyle

        @OpenApi
        public void setPathStyle​(java.lang.String style)
        Set path style
        Parameters:
        style - path style to set
      • getSelected

        @OpenApi
        public java.util.Set<PresentationElement> getSelected()
        Get Set of the selected PresentationElement.
        Returns:
        Set set of selected presentation elements
      • setSphereRadius

        @OpenApi
        public void setSphereRadius​(int radius)
        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

        @OpenApi
        public int getSphereRadius()
        Returns:
        the sphere size for data initialization
      • setSphereCenterPoint

        @OpenApi
        public void setSphereCenterPoint​(@CheckForNull
                                         java.awt.Point point)
        Sets the center of the sphere that is used for node creation
        Parameters:
        point - new point of center, default is 0,0
      • getSphereCenterPoint

        @CheckForNull
        @OpenApi
        public java.awt.Point getSphereCenterPoint()
        Returns:
        the center of the sphere for node creation