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 SummaryNested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final bytestatic final byteFields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintgetHandleCount(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.voidmouseDragged(MouseEvent anEvent) Handles mouse drag for line creation.voidmouseMoved(MouseEvent anEvent) Event handling - overridden to install crosshair cursor.voidmousePressed(MouseEvent anEvent) Handles mouse press for line creation.voidmoveShapeHandle(RMShape aShape, int aHandle, RMPoint aPoint) Editor method.Methods inherited from class com.reportmill.panels.ToolactivateTool, 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, willLoseSuperSelectionInEditorMethods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
- 
Field Details- 
HandleStartPointpublic static final byte HandleStartPoint- See Also:
 
- 
HandleEndPointpublic static final byte HandleEndPoint- See Also:
 
 
- 
- 
Constructor Details- 
LineSegmentToolpublic LineSegmentTool()
 
- 
- 
Method Details- 
getShapeClassReturns the shape class that this tool is responsible for.- Overrides:
- getShapeClassin class- Tool
 
- 
getWindowTitleReturns the name of this tool to be displayed by inspector.- Overrides:
- getWindowTitlein class- Tool
 
- 
mouseMovedEvent handling - overridden to install crosshair cursor.- Overrides:
- mouseMovedin class- Tool
 
- 
mousePressedHandles mouse press for line creation.- Overrides:
- mousePressedin class- Tool
 
- 
mouseDraggedHandles mouse drag for line creation.- Overrides:
- mouseDraggedin class- Tool
 
- 
getHandleCountEditor method (returns the number of handles).- Overrides:
- getHandleCountin class- Tool
 
- 
getHandlePointEditor method.- Overrides:
- getHandlePointin class- Tool
 
- 
moveShapeHandleEditor method.- Overrides:
- moveShapeHandlein class- Tool
 
 
-