Package com.reportmill.panels
Class GraphTool
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.panels.Tool
-
- com.reportmill.panels.GraphTool
-
- All Implemented Interfaces:
RMArchiver.Archiving,java.lang.Cloneable
public class GraphTool extends Tool
This class provides RMEditor inspector support for RMGraph.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphTool.GraphContentToolThis class provides RMEditor inspector support for RMGraph.-
Nested classes/interfaces inherited from class com.reportmill.panels.Tool
Tool.RMShapeHandle
-
-
Field Summary
-
Fields inherited from class com.reportmill.panels.Tool
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
-
-
Constructor Summary
Constructors Constructor Description GraphTool()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddGraph(RMEditor anEditor, java.lang.String aKeyPath)Adds a new graph instance to the given editor with the given list key.static RMGraphcreateSampleGraph()Creates a new sample graph instance.RMScene3DgetGraphScene()pulls out the scene3d subclass if the selected graph has one.RMGraphgetSelectedGraph()Returns the selected graph.java.lang.ClassgetShapeClass()Returns the class this tool edits.RJPanelgetUI()Returns the JPanel inspector UI used for this tool.java.lang.StringgetWindowTitle()Returns the name of the graph inspector.voidmoveSort(int index1, int index2)Sorting table popup menu method implementation.voidresetUI()Reset Swing UI panel from currently selected graph.voidrespondUI(java.lang.Object anObj)Update currently selected graph from Swing UI panel.-
Methods inherited from class com.reportmill.panels.Tool
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
-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
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.
-
resetUI
public void resetUI()
Reset Swing UI panel from currently selected graph.
-
respondUI
public void respondUI(java.lang.Object anObj)
Update currently selected graph from Swing UI panel.
-
getShapeClass
public java.lang.Class getShapeClass()
Returns the class this tool edits.- Overrides:
getShapeClassin classTool
-
getWindowTitle
public java.lang.String getWindowTitle()
Returns the name of the graph inspector.- Overrides:
getWindowTitlein classTool
-
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.
-
-