Package com.reportmill.panels
Class CrossTabTool
- java.lang.Object
- 
- com.reportmill.base.RMObject
- 
- com.reportmill.panels.Tool
- 
- com.reportmill.panels.CrossTabTool
 
 
 
- 
- All Implemented Interfaces:
- RMArchiver.Archiving,- java.lang.Cloneable
 
 public class CrossTabTool extends Tool This class provides GUI editing for RMCrossTab.
- 
- 
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 CrossTabTool()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddCrossTab(RMEditor anEditor, java.lang.String aKeyPath)Adds a crosstab to the given editor with the given list key.voidaddGroupingKey(java.lang.String aKey)Adds a grouping key to the crosstab.voidaddSortingKey(java.lang.String aKey)Adds a sorting key to the crosstab.java.lang.ClassgetShapeClass()Returns the class edited by this tool.RJPanelgetUI()Returns the Swing UI for the crosstab tool.java.lang.StringgetWindowTitle()Returns the name of this tool.voidmouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)Event handler for crosstab editing.voidmousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)Event handler for crosstab editing.voidmoveGrouping(int sourceIndex, int destIndex)Moves a grouping from the first given index to the second given index.voidmoveSort(int sourceIndex, int destIndex)Moves a sort from the first given index to the second given index.voidprocessKeyEvent(RMShape aShape, java.awt.event.KeyEvent anEvent)Key event handler for crosstab editing.voidresetUI()Updates the Swing UI from the currently selected crosstab.voidrespondUI(java.lang.Object anObj)Responds to changes in the Swing UI controls.voidtakeValueFromDrop(java.lang.Object anObj, RJAction anAction)Responds to a drag and drop.- 
Methods inherited from class com.reportmill.panels.ToolactivateTool, deactivateTool, didBecomeSuperSelectedShapeInEditor, editor, flushChanges, getCoreTool, getCoreToolIndex, getHandleAtPoint, getHandleCount, getHandlePoint, getHandleRect, getImageIcon, getImageIcon, getSelectedShape, getSelectedShapes, getSelectTool, getShapeHandleAtPoint, getTool, getTool, isInstance, isSelected, isSuperSelected, mouseDragged, mouseMoved, mouseMoved, mousePressed, mousePressedSelection, mouseReleased, mouseReleased, moveShapeHandle, newInstance, paintSelectedShape, paintSuperSelectedShape, paintTool, reactivateTool, willLoseSuperSelectionInEditor
 - 
Methods inherited from class com.reportmill.base.RMObjectclone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
 
- 
 
- 
- 
- 
Method Detail- 
getUIpublic RJPanel getUI() Returns the Swing UI for the crosstab tool.
 - 
resetUIpublic void resetUI() Updates the Swing UI from the currently selected crosstab.
 - 
respondUIpublic void respondUI(java.lang.Object anObj) Responds to changes in the Swing UI controls.
 - 
getShapeClasspublic java.lang.Class getShapeClass() Returns the class edited by this tool.- Overrides:
- getShapeClassin class- Tool
 
 - 
getWindowTitlepublic java.lang.String getWindowTitle() Returns the name of this tool.- Overrides:
- getWindowTitlein class- Tool
 
 - 
takeValueFromDroppublic void takeValueFromDrop(java.lang.Object anObj, RJAction anAction)Responds to a drag and drop.
 - 
addCrossTabpublic static void addCrossTab(RMEditor anEditor, java.lang.String aKeyPath) Adds a crosstab to the given editor with the given list key.
 - 
addGroupingKeypublic void addGroupingKey(java.lang.String aKey) Adds a grouping key to the crosstab.
 - 
addSortingKeypublic void addSortingKey(java.lang.String aKey) Adds a sorting key to the crosstab.
 - 
moveGroupingpublic void moveGrouping(int sourceIndex, int destIndex)Moves a grouping from the first given index to the second given index.
 - 
moveSortpublic void moveSort(int sourceIndex, int destIndex)Moves a sort from the first given index to the second given index.
 - 
mousePressedpublic void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent) Event handler for crosstab editing.- Overrides:
- mousePressedin class- Tool
 
 - 
mouseDraggedpublic void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent) Event handler for crosstab editing.- Overrides:
- mouseDraggedin class- Tool
 
 - 
processKeyEventpublic void processKeyEvent(RMShape aShape, java.awt.event.KeyEvent anEvent) Key event handler for crosstab editing.- Overrides:
- processKeyEventin class- Tool
 
 
- 
 
-