Class GraphTool

All Implemented Interfaces:
RMArchiver.Archiving, Cloneable

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

    • GraphTool

      public GraphTool()
  • Method Details

    • 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(Object anObj)
      Update currently selected graph from Swing UI panel.
      Overrides:
      respondUI in class Tool
    • getShapeClass

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

      public 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, 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.