Package com.reportmill.panels
Class CellTool
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.panels.Tool
- 
- com.reportmill.panels.TextTool
- 
- com.reportmill.panels.CellTool
 
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class CellTool extends TextTool Provides Swing UI editing for RMCell shapes.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.reportmill.panels.ToolTool.RMShapeHandle
 
- 
 - 
Field Summary- 
Fields inherited from class com.reportmill.panels.ToolHandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
 
- 
 - 
Constructor SummaryConstructors Constructor Description CellTool()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHandleCount(RMShape aShape)Overrides tool method to indicate that cells have no handles.javax.swing.ImageIcongetImageIcon()Returns the image icon for bar labels (uses SwitchShapeTool icon).voidmouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.voidmousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.voidmouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent)Event handling - overrides text to in case cell tool needs to forward events to table tool.voidpaintTool(java.awt.Graphics2D g)Highlights the selected cells or dividers.- 
Methods inherited from class com.reportmill.panels.TextToolactivateTool, convertToText, didBecomeSuperSelectedShapeInEditor, flushChanges, getHandleRect, getShapeClass, getUI, getWindowTitle, isInstance, mouseDragged, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, paintSelectedShape, paintSuperSelectedShape, paintTextLinkIndicator, resetUI, respondUI, willLoseSuperSelectionInEditor
 - 
Methods inherited from class com.reportmill.panels.TooldeactivateTool, editor, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandlePoint, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isSelected, isSuperSelected, mouseMoved, moveShapeHandle, newInstance, processKeyEvent, reactivateTool
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Method Detail- 
mousePressedpublic void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent) Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
- mousePressedin class- TextTool
 
 - 
mouseDraggedpublic void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent) Event handling - overrides text tool to pass handling to table tool if user really wants to select cells.- Overrides:
- mouseDraggedin class- TextTool
 
 - 
mouseReleasedpublic void mouseReleased(RMShape aShape, java.awt.event.MouseEvent anEvent) Event handling - overrides text to in case cell tool needs to forward events to table tool.- Overrides:
- mouseReleasedin class- TextTool
 
 - 
getHandleCountpublic int getHandleCount(RMShape aShape) Overrides tool method to indicate that cells have no handles.- Overrides:
- getHandleCountin class- TextTool
 
 - 
paintToolpublic void paintTool(java.awt.Graphics2D g) Highlights the selected cells or dividers.
 - 
getImageIconpublic javax.swing.ImageIcon getImageIcon() Returns the image icon for bar labels (uses SwitchShapeTool icon).- Overrides:
- getImageIconin class- Tool
 
 
- 
 
-