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,- java.lang.Cloneable
 
 public class LineSegmentTool extends Tool This class handles creation of lines.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static byteHandleEndPointstatic byteHandleStartPoint- 
Fields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
 
- 
 - 
Constructor SummaryConstructors Constructor Description LineSegmentTool()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHandleCount(RMShape aShape)Editor method (returns the number of handles).RMPointgetHandlePoint(RMShape aShape, int anIndex, boolean isSuperSelected)Editor method.java.lang.ClassgetShapeClass()Returns the shape class that this tool is responsible for.java.lang.StringgetWindowTitle()Returns the name of this tool to be displayed by inspector.voidmouseDragged(java.awt.event.MouseEvent anEvent)Handles mouse drag for line creation.voidmouseMoved(java.awt.event.MouseEvent anEvent)Event handling - overridden to install crosshair cursor.voidmousePressed(java.awt.event.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, willLoseSuperSelectionInEditor
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Field Detail- 
HandleStartPointpublic static final byte HandleStartPoint - See Also:
- Constant Field Values
 
 - 
HandleEndPointpublic static final byte HandleEndPoint - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getShapeClasspublic java.lang.Class getShapeClass() Returns the shape class that this tool is responsible for.- Overrides:
- getShapeClassin class- Tool
 
 - 
getWindowTitlepublic java.lang.String getWindowTitle() Returns the name of this tool to be displayed by inspector.- Overrides:
- getWindowTitlein class- Tool
 
 - 
mouseMovedpublic void mouseMoved(java.awt.event.MouseEvent anEvent) Event handling - overridden to install crosshair cursor.- Overrides:
- mouseMovedin class- Tool
 
 - 
mousePressedpublic void mousePressed(java.awt.event.MouseEvent anEvent) Handles mouse press for line creation.- Overrides:
- mousePressedin class- Tool
 
 - 
mouseDraggedpublic void mouseDragged(java.awt.event.MouseEvent anEvent) Handles mouse drag for line creation.- Overrides:
- mouseDraggedin class- Tool
 
 - 
getHandleCountpublic int getHandleCount(RMShape aShape) Editor method (returns the number of handles).- Overrides:
- getHandleCountin class- Tool
 
 - 
getHandlePointpublic RMPoint getHandlePoint(RMShape aShape, int anIndex, boolean isSuperSelected) Editor method.- Overrides:
- getHandlePointin class- Tool
 
 - 
moveShapeHandlepublic void moveShapeHandle(RMShape aShape, int aHandle, RMPoint aPoint) Editor method.- Overrides:
- moveShapeHandlein class- Tool
 
 
- 
 
-