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.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 Constructor Description CrossTabTool()
-
Method Summary
All 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.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, willLoseSuperSelectionInEditor
-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Method Detail
-
getUI
public RJPanel getUI()
Returns the Swing UI for the crosstab tool.
-
resetUI
public void resetUI()
Updates the Swing UI from the currently selected crosstab.
-
respondUI
public void respondUI(java.lang.Object anObj)
Responds to changes in the Swing UI controls.
-
getShapeClass
public java.lang.Class getShapeClass()
Returns the class edited by this tool.- Overrides:
getShapeClassin classTool
-
getWindowTitle
public java.lang.String getWindowTitle()
Returns the name of this tool.- Overrides:
getWindowTitlein classTool
-
takeValueFromDrop
public void takeValueFromDrop(java.lang.Object anObj, RJAction anAction)Responds to a drag and drop.
-
addCrossTab
public static void addCrossTab(RMEditor anEditor, java.lang.String aKeyPath)
Adds a crosstab to the given editor with the given list key.
-
addGroupingKey
public void addGroupingKey(java.lang.String aKey)
Adds a grouping key to the crosstab.
-
addSortingKey
public void addSortingKey(java.lang.String aKey)
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
public void mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for crosstab editing.- Overrides:
mousePressedin classTool
-
mouseDragged
public void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for crosstab editing.- Overrides:
mouseDraggedin classTool
-
processKeyEvent
public void processKeyEvent(RMShape aShape, java.awt.event.KeyEvent anEvent)
Key event handler for crosstab editing.- Overrides:
processKeyEventin classTool
-
-