public class GraphTool extends Tool
Modifier and Type | Class and Description |
---|---|
static class |
GraphTool.GraphContentTool
This class provides RMEditor inspector support for RMGraph.
|
Tool.RMShapeHandle
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
Constructor and Description |
---|
GraphTool() |
Modifier and Type | Method and Description |
---|---|
static void |
addGraph(RMEditor anEditor,
java.lang.String aKeyPath)
Adds a new graph instance to the given editor with the given list key.
|
static RMGraph |
createSampleGraph()
Creates a new sample graph instance.
|
RMScene3D |
getGraphScene()
pulls out the scene3d subclass if the selected graph has one.
|
RMGraph |
getSelectedGraph()
Returns the selected graph.
|
java.lang.Class |
getShapeClass()
Returns the class this tool edits.
|
RJPanel |
getUI()
Returns the JPanel inspector UI used for this tool.
|
java.lang.String |
getWindowTitle()
Returns the name of the graph inspector.
|
void |
moveSort(int index1,
int index2)
Sorting table popup menu method implementation.
|
void |
resetUI()
Reset Swing UI panel from currently selected graph.
|
void |
respondUI(java.lang.Object anObj)
Update currently selected graph from Swing UI panel.
|
activateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandleCount, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, willLoseSuperSelectionInEditor
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
public RMGraph getSelectedGraph()
public RMScene3D getGraphScene()
public RJPanel getUI()
public void resetUI()
public void respondUI(java.lang.Object anObj)
public java.lang.Class getShapeClass()
getShapeClass
in class Tool
public java.lang.String getWindowTitle()
getWindowTitle
in class Tool
public void moveSort(int index1, int index2)
public static void addGraph(RMEditor anEditor, java.lang.String aKeyPath)
public static RMGraph createSampleGraph()