Package com.reportmill.shape
Class RMCrossTab
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.shape.RMShape
com.reportmill.shape.RMCrossTab
- All Implemented Interfaces:
RMArchiver.Archiving
,Cloneable
This class represents a groupable data matrix (or crosstab).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Editor method - specifies that crosstab can't accept children.boolean
Editor method - specifies that crosstab accepts drag keys.void
addGroupingForKey
(String aKey, int i) Adds a grouping for the given key at the given grouping index.void
addGroupingForKey
(String aKey, int anIndex, int aType) Adds a grouping for the given key at the given grouping index.void
addGroupingForKeyAtPoint
(String aKey, RMPoint aPoint) Adds a grouping for the given key at the given point.boolean
Editor method - specifies that crosstab can't be ungrouped.boolean
Editor method - specifies that crosstab's children super select immediately.void
dragExit()
Drag and drop: tells crosstab that key exited crosstab.void
dragKeyAtPoint
(String aString, RMPoint aPoint) Drag and drop: tells crosstab that key is being dragged at point.void
dropKeyAtPoint
(String aString, RMPoint aPoint) Drag and drop: tells crosstab that key was dropped at point.boolean
Standard equals implementation.fromXML
(RXArchiver anArchiver, RXElement anElement) XML unarchival.int
Returns the grouping index that crosstab's columns start with.Returns the grouper associated with this crosstab.getGrouping
(int anIndex) Returns the crosstab grouping at the given index.int
Returns the number of groups associated with this crosstab.Returns the last crosstab grouping.Returns the list key associated with this crosstab.int
Returns the overflow behavior of the crosstab.int
Returns the grouping index that crosstab page breaks on.Returns the selected crosstab grouping (when editing).int
Returns currently selected grouping index.Returns the selected sort for the selected crosstab grouping.int
Returns currently selected sort index.int
groupingButtonIndexAtPoint
(RMPoint aPoint) Returns the grouping index for the button at the given point.groupingButtonRect
(int anIndex) Returns the bounds rect for the grouping button at the given index.initWithArchiver
(RMArchiver anArchiver) Legacy unarchival.void
moveGrouping
(int si, int di) Moves a grouping from the first index to the second index.void
moveGrouping
(int sourceIndex, int destIndex, int destType) Moves a grouping from the first index to the second index.void
removeGrouping
(int anIndex) Removes the grouping at the given index.void
removeGrouping
(RMGrouping aGrouping) Removes the given grouping.rpgClone
(ReportMill aReportMill) RPG clone method actually returns page index specified by aReportMill (generated in preprocess).void
rpgClonePreprocess
(ReportMill reportMill) RPG clone actually happens in preprocess step, so we know how many pages it generates.void
setColumnGroupingIndex
(int anIndex) Sets the grouping index that crosstab's columns start with.void
setListKey
(String aKeyPath) Sets the list key associated with this crosstab.void
setOverflowBehavior
(int aValue) Sets the overflow behavior of the crosstab.void
setPageBreakGroupIndex
(int anIndex) Sets the grouping index that crosstab page breaks on.void
setSelectedGroupingIndex
(int anIndex) Sets the currently selected grouping index.void
setSelectedSortIndex
(int anIndex) Sets the currently selected sort index.boolean
Editor method - specifies that crosstab is super-selectable.toXML
(RXArchiver anArchiver) XML archival.Methods inherited from class com.reportmill.shape.RMShape
acceptsFormat, acceptsMouse, addChild, addChild, addChildBelowLastChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, clone, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copy, copyShape, delete, didChange, divideShapeFromEdge, divideShapeFromTop, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBoundsInside, getBoundsMarked, getBoundsOfChildren, getBoundsOfChildren, getBoundsSuperSelected, getCausesWrap, getCausesWrapType, getChild, getChildAnimator, getChildAnimator, getChildContaining, getChildCount, getChildLast, getChildren, getChildrenIntersecting, getChildrenWhoCauseWrap, getChildrenWhoDraw, getChildrenWhoHitTest, getChildSortedByX, getChildWithClass, getChildWithName, getColor, getCommonAncestor, getDocument, getFill, getFill, getFill, getFillCount, getFills, getFont, getFormat, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getHeightToFit, getImageFill, getLineWidth, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOutline, getPageCount, getPageShape, getParent, getParentCount, getParents, getPath, getPathInBounds, getPropertyKey, getPropertyKeyCount, getPropertyKeyName, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getTextColor, getToolClassName, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getWidth, getWidthToFit, getX, getXY, getXYP, getY, groupShapes, hasPageBreaks, height, indexOf, indexOf, intersects, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageBreakMax, pageBreakPageMax, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, rpgCloneBase, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHeightDeep, setHeightDeep, setHeightToFit, setLineWidth, setLocked, setName, setNeedsRepaint, setNeedsRepaint, setOpacity, setOutline, setParent, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTextColor, setTime, setUnderlined, setUrl, setWidth, setWidthDeep, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, toString, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
Methods inherited from class com.reportmill.base.RMObject
didUndo, getAnimAttribute, getClassNameShort
-
Field Details
-
_dragKey
-
OVERFLOW_PAGINATE
public static final byte OVERFLOW_PAGINATE- See Also:
-
OVERFLOW_FIT
public static final byte OVERFLOW_FIT- See Also:
-
ROW
public static final byte ROW- See Also:
-
COLUMN
public static final byte COLUMN- See Also:
-
REMOVE
public static final byte REMOVE- See Also:
-
-
Constructor Details
-
RMCrossTab
public RMCrossTab()Creates a plain crosstab.
-
-
Method Details
-
getListKey
Returns the list key associated with this crosstab.- Overrides:
getListKey
in classRMShape
-
setListKey
Sets the list key associated with this crosstab.- Overrides:
setListKey
in classRMShape
-
getGrouper
Returns the grouper associated with this crosstab. -
getGroupingCount
public int getGroupingCount()Returns the number of groups associated with this crosstab. -
getGrouping
Returns the crosstab grouping at the given index. -
getGroupingLast
Returns the last crosstab grouping. -
getSelectedGrouping
Returns the selected crosstab grouping (when editing). -
getSelectedSort
Returns the selected sort for the selected crosstab grouping. -
getColumnGroupingIndex
public int getColumnGroupingIndex()Returns the grouping index that crosstab's columns start with. -
setColumnGroupingIndex
public void setColumnGroupingIndex(int anIndex) Sets the grouping index that crosstab's columns start with. -
getPageBreakGroupIndex
public int getPageBreakGroupIndex()Returns the grouping index that crosstab page breaks on. -
setPageBreakGroupIndex
public void setPageBreakGroupIndex(int anIndex) Sets the grouping index that crosstab page breaks on. -
getOverflowBehavior
public int getOverflowBehavior()Returns the overflow behavior of the crosstab. -
setOverflowBehavior
public void setOverflowBehavior(int aValue) Sets the overflow behavior of the crosstab. -
getSelectedGroupingIndex
public int getSelectedGroupingIndex()Returns currently selected grouping index. -
setSelectedGroupingIndex
public void setSelectedGroupingIndex(int anIndex) Sets the currently selected grouping index. -
getSelectedSortIndex
public int getSelectedSortIndex()Returns currently selected sort index. -
setSelectedSortIndex
public void setSelectedSortIndex(int anIndex) Sets the currently selected sort index. -
groupingButtonRect
Returns the bounds rect for the grouping button at the given index. -
groupingButtonIndexAtPoint
Returns the grouping index for the button at the given point. -
addGroupingForKey
Adds a grouping for the given key at the given grouping index. -
addGroupingForKey
Adds a grouping for the given key at the given grouping index. -
moveGrouping
public void moveGrouping(int si, int di) Moves a grouping from the first index to the second index. -
moveGrouping
public void moveGrouping(int sourceIndex, int destIndex, int destType) Moves a grouping from the first index to the second index. -
removeGrouping
Removes the given grouping. -
removeGrouping
public void removeGrouping(int anIndex) Removes the grouping at the given index. -
dragKeyAtPoint
Drag and drop: tells crosstab that key is being dragged at point.- Overrides:
dragKeyAtPoint
in classRMShape
-
dropKeyAtPoint
Drag and drop: tells crosstab that key was dropped at point.- Overrides:
dropKeyAtPoint
in classRMShape
-
dragExit
public void dragExit()Drag and drop: tells crosstab that key exited crosstab. -
addGroupingForKeyAtPoint
Adds a grouping for the given key at the given point. -
rpgClonePreprocess
RPG clone actually happens in preprocess step, so we know how many pages it generates.- Overrides:
rpgClonePreprocess
in classRMShape
-
rpgClone
RPG clone method actually returns page index specified by aReportMill (generated in preprocess). -
superSelectable
public boolean superSelectable()Editor method - specifies that crosstab is super-selectable.- Overrides:
superSelectable
in classRMShape
-
childrenSuperSelectImmediately
public boolean childrenSuperSelectImmediately()Editor method - specifies that crosstab's children super select immediately.- Overrides:
childrenSuperSelectImmediately
in classRMShape
-
canBeUngrouped
public boolean canBeUngrouped()Editor method - specifies that crosstab can't be ungrouped.- Overrides:
canBeUngrouped
in classRMShape
-
acceptsChildren
public boolean acceptsChildren()Editor method - specifies that crosstab can't accept children.- Overrides:
acceptsChildren
in classRMShape
-
acceptsDragKeys
public boolean acceptsDragKeys()Editor method - specifies that crosstab accepts drag keys.- Overrides:
acceptsDragKeys
in classRMShape
-
equals
Standard equals implementation. -
initWithArchiver
Legacy unarchival.- Specified by:
initWithArchiver
in interfaceRMArchiver.Archiving
- Overrides:
initWithArchiver
in classRMShape
-
toXML
XML archival. -
fromXML
XML unarchival.
-