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 void
addCrossTab(RMEditor anEditor, java.lang.String aKeyPath)
Adds a crosstab to the given editor with the given list key.void
addGroupingKey(java.lang.String aKey)
Adds a grouping key to the crosstab.void
addSortingKey(java.lang.String aKey)
Adds a sorting key to the crosstab.java.lang.Class
getShapeClass()
Returns the class edited by this tool.RJPanel
getUI()
Returns the Swing UI for the crosstab tool.java.lang.String
getWindowTitle()
Returns the name of this tool.void
mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for crosstab editing.void
mousePressed(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for crosstab editing.void
moveGrouping(int sourceIndex, int destIndex)
Moves a grouping from the first given index to the second given index.void
moveSort(int sourceIndex, int destIndex)
Moves a sort from the first given index to the second given index.void
processKeyEvent(RMShape aShape, java.awt.event.KeyEvent anEvent)
Key event handler for crosstab editing.void
resetUI()
Updates the Swing UI from the currently selected crosstab.void
respondUI(java.lang.Object anObj)
Responds to changes in the Swing UI controls.void
takeValueFromDrop(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:
getShapeClass
in classTool
-
getWindowTitle
public java.lang.String getWindowTitle()
Returns the name of this tool.- Overrides:
getWindowTitle
in 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:
mousePressed
in classTool
-
mouseDragged
public void mouseDragged(RMShape aShape, java.awt.event.MouseEvent anEvent)
Event handler for crosstab editing.- Overrides:
mouseDragged
in classTool
-
processKeyEvent
public void processKeyEvent(RMShape aShape, java.awt.event.KeyEvent anEvent)
Key event handler for crosstab editing.- Overrides:
processKeyEvent
in classTool
-
-