Package com.reportmill.panels
Class GraphBarLabelTool
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.panels.Tool
-
- com.reportmill.panels.GraphBarLabelTool
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.Cloneable
public class GraphBarLabelTool extends Tool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
GraphBarLabelTool.SwitchVersionCellRenderer
An inner class to draw versions list.protected class
GraphBarLabelTool.SwitchVersionListModel
An inner class to manage versions list.-
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 GraphBarLabelTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.ImageIcon
getImageIcon()
Returns the image icon for bar labels (uses SwitchShapeTool icon).java.lang.Class
getShapeClass()
Returns the shape class for this tool (RMGraph.BarLabel).RJPanel
getUI()
Returns the Swing UI panel.java.lang.String
getWindowTitle()
Returns the display name for this tool's inspector.void
mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for shape editing (BarLabels).void
mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for shape editing (BarLabels).void
mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for shape editing (BarLabels).void
resetUI()
Resets the Swing UI panel from currently selected bar label.void
respondUI(java.lang.Object anObj)
Resets currently selected bar label from Swing UI panel controls.-
Methods inherited from class com.reportmill.panels.Tool
activateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandleCount, getHandlePoint, getHandleRect, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressedSelection, 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
-
resetUI
public void resetUI()
Resets the Swing UI panel from currently selected bar label.
-
respondUI
public void respondUI(java.lang.Object anObj)
Resets currently selected bar label from Swing UI panel controls.
-
getShapeClass
public java.lang.Class getShapeClass()
Returns the shape class for this tool (RMGraph.BarLabel).- Overrides:
getShapeClass
in classTool
-
getWindowTitle
public java.lang.String getWindowTitle()
Returns the display name for this tool's inspector.- Overrides:
getWindowTitle
in classTool
-
getImageIcon
public javax.swing.ImageIcon getImageIcon()
Returns the image icon for bar labels (uses SwitchShapeTool icon).- Overrides:
getImageIcon
in classTool
-
mousePressed
public void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for shape editing (BarLabels).- Overrides:
mousePressed
in classTool
-
mouseDragged
public void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for shape editing (BarLabels).- Overrides:
mouseDragged
in classTool
-
mouseReleased
public void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for shape editing (BarLabels).- Overrides:
mouseReleased
in classTool
-
-