Class GraphTool

  • All Implemented Interfaces:
    RMArchiver.Archiving, java.lang.Cloneable

    public class GraphTool
    extends Tool
    This class provides RMEditor inspector support for RMGraph.
    • Constructor Detail

      • GraphTool

        public GraphTool()
    • Method Detail

      • getSelectedGraph

        public RMGraph getSelectedGraph()
        Returns the selected graph.
      • getGraphScene

        public RMScene3D getGraphScene()
        pulls out the scene3d subclass if the selected graph has one.
      • getUI

        public RJPanel getUI()
        Returns the JPanel inspector UI used for this tool.
        Overrides:
        getUI in class Tool
      • resetUI

        public void resetUI()
        Reset Swing UI panel from currently selected graph.
        Overrides:
        resetUI in class Tool
      • respondUI

        public void respondUI​(java.lang.Object anObj)
        Update currently selected graph from Swing UI panel.
        Overrides:
        respondUI in class Tool
      • getShapeClass

        public java.lang.Class getShapeClass()
        Returns the class this tool edits.
        Overrides:
        getShapeClass in class Tool
      • getWindowTitle

        public java.lang.String getWindowTitle()
        Returns the name of the graph inspector.
        Overrides:
        getWindowTitle in class Tool
      • moveSort

        public void moveSort​(int index1,
                             int index2)
        Sorting table popup menu method implementation.
      • addGraph

        public static void addGraph​(RMEditor anEditor,
                                    java.lang.String aKeyPath)
        Adds a new graph instance to the given editor with the given list key.
      • createSampleGraph

        public static RMGraph createSampleGraph()
        Creates a new sample graph instance.