Package com.reportmill.panels
Class LineSegmentTool
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.panels.Tool
com.reportmill.panels.LineSegmentTool
- All Implemented Interfaces:
RMArchiver.Archiving
,Cloneable
This class handles creation of lines.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.reportmill.panels.Tool
Tool.RMShapeHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
Fields inherited from class com.reportmill.panels.Tool
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getHandleCount
(RMShape aShape) Editor method (returns the number of handles).getHandlePoint
(RMShape aShape, int anIndex, boolean isSuperSelected) Editor method.Returns the shape class that this tool is responsible for.Returns the name of this tool to be displayed by inspector.void
mouseDragged
(MouseEvent anEvent) Handles mouse drag for line creation.void
mouseMoved
(MouseEvent anEvent) Event handling - overridden to install crosshair cursor.void
mousePressed
(MouseEvent anEvent) Handles mouse press for line creation.void
moveShapeHandle
(RMShape aShape, int aHandle, RMPoint aPoint) Editor method.Methods inherited from class com.reportmill.panels.Tool
activateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, getUI, isInstance, isSelected, isSuperSelected, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, processKeyEvent, reactivateTool, resetUI, respondUI, willLoseSuperSelectionInEditor
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Field Details
-
HandleStartPoint
public static final byte HandleStartPoint- See Also:
-
HandleEndPoint
public static final byte HandleEndPoint- See Also:
-
-
Constructor Details
-
LineSegmentTool
public LineSegmentTool()
-
-
Method Details
-
getShapeClass
Returns the shape class that this tool is responsible for.- Overrides:
getShapeClass
in classTool
-
getWindowTitle
Returns the name of this tool to be displayed by inspector.- Overrides:
getWindowTitle
in classTool
-
mouseMoved
Event handling - overridden to install crosshair cursor.- Overrides:
mouseMoved
in classTool
-
mousePressed
Handles mouse press for line creation.- Overrides:
mousePressed
in classTool
-
mouseDragged
Handles mouse drag for line creation.- Overrides:
mouseDragged
in classTool
-
getHandleCount
Editor method (returns the number of handles).- Overrides:
getHandleCount
in classTool
-
getHandlePoint
Editor method.- Overrides:
getHandlePoint
in classTool
-
moveShapeHandle
Editor method.- Overrides:
moveShapeHandle
in classTool
-