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,Cloneable
This class provides GUI editing for RMCrossTab.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.reportmill.panels.Tool
Tool.RMShapeHandle -
Field Summary
Fields inherited from class com.reportmill.panels.Tool
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddCrossTab(RMEditor anEditor, String aKeyPath) Adds a crosstab to the given editor with the given list key.voidaddGroupingKey(String aKey) Adds a grouping key to the crosstab.voidaddSortingKey(String aKey) Adds a sorting key to the crosstab.Returns the class edited by this tool.getUI()Returns the Swing UI for the crosstab tool.Returns the name of this tool.voidmouseDragged(RMShape aShape, MouseEvent anEvent) Event handler for crosstab editing.voidmousePressed(RMShape aShape, 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, KeyEvent anEvent) Key event handler for crosstab editing.voidresetUI()Updates the Swing UI from the currently selected crosstab.voidResponds to changes in the Swing UI controls.voidtakeValueFromDrop(Object anObj, RJAction anAction) Responds to a drag and drop.Methods inherited from class com.reportmill.panels.Tool
activateTool, 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, willLoseSuperSelectionInEditorMethods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
Constructor Details
-
CrossTabTool
public CrossTabTool()
-
-
Method Details
-
getUI
Returns the Swing UI for the crosstab tool. -
resetUI
public void resetUI()Updates the Swing UI from the currently selected crosstab. -
respondUI
Responds to changes in the Swing UI controls. -
getShapeClass
Returns the class edited by this tool.- Overrides:
getShapeClassin classTool
-
getWindowTitle
Returns the name of this tool.- Overrides:
getWindowTitlein classTool
-
takeValueFromDrop
Responds to a drag and drop. -
addCrossTab
Adds a crosstab to the given editor with the given list key. -
addGroupingKey
Adds a grouping key to the crosstab. -
addSortingKey
Adds a sorting key to the crosstab. -
moveGrouping
public void moveGrouping(int sourceIndex, int destIndex) Moves a grouping from the first given index to the second given index. -
moveSort
public void moveSort(int sourceIndex, int destIndex) Moves a sort from the first given index to the second given index. -
mousePressed
Event handler for crosstab editing.- Overrides:
mousePressedin classTool
-
mouseDragged
Event handler for crosstab editing.- Overrides:
mouseDraggedin classTool
-
processKeyEvent
Key event handler for crosstab editing.- Overrides:
processKeyEventin classTool
-