public class GraphTool extends Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphTool.GraphContentTool
This class provides RMEditor inspector support for RMGraph.
|
Tool.RMShapeHandleHandleMaxXMaxY, 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, willLoseSuperSelectionInEditorclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEqualspublic 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 Toolpublic java.lang.String getWindowTitle()
getWindowTitle in class Toolpublic void moveSort(int index1,
int index2)
public static void addGraph(RMEditor anEditor, java.lang.String aKeyPath)
public static RMGraph createSampleGraph()