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,- java.lang.Cloneable
 
 public class RMCrossTab extends RMShape This class represents a groupable data matrix (or crosstab).
- 
- 
Field SummaryFields Modifier and Type Field Description java.lang.String_dragKeystatic byteCOLUMNstatic byteOVERFLOW_FITstatic byteOVERFLOW_PAGINATEstatic byteREMOVEstatic byteROW- 
Fields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMCrossTab()Creates a plain crosstab.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsChildren()Editor method - specifies that crosstab can't accept children.booleanacceptsDragKeys()Editor method - specifies that crosstab accepts drag keys.voidaddGroupingForKey(java.lang.String aKey, int i)Adds a grouping for the given key at the given grouping index.voidaddGroupingForKey(java.lang.String aKey, int anIndex, int aType)Adds a grouping for the given key at the given grouping index.voidaddGroupingForKeyAtPoint(java.lang.String aKey, RMPoint aPoint)Adds a grouping for the given key at the given point.booleancanBeUngrouped()Editor method - specifies that crosstab can't be ungrouped.booleanchildrenSuperSelectImmediately()Editor method - specifies that crosstab's children super select immediately.voiddragExit()Drag and drop: tells crosstab that key exited crosstab.voiddragKeyAtPoint(java.lang.String aString, RMPoint aPoint)Drag and drop: tells crosstab that key is being dragged at point.voiddropKeyAtPoint(java.lang.String aString, RMPoint aPoint)Drag and drop: tells crosstab that key was dropped at point.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.intgetColumnGroupingIndex()Returns the grouping index that crosstab's columns start with.RMGroupergetGrouper()Returns the grouper associated with this crosstab.RMGroupinggetGrouping(int anIndex)Returns the crosstab grouping at the given index.intgetGroupingCount()Returns the number of groups associated with this crosstab.RMGroupinggetGroupingLast()Returns the last crosstab grouping.java.lang.StringgetListKey()Returns the list key associated with this crosstab.intgetOverflowBehavior()Returns the overflow behavior of the crosstab.intgetPageBreakGroupIndex()Returns the grouping index that crosstab page breaks on.RMGroupinggetSelectedGrouping()Returns the selected crosstab grouping (when editing).intgetSelectedGroupingIndex()Returns currently selected grouping index.RMSortgetSelectedSort()Returns the selected sort for the selected crosstab grouping.intgetSelectedSortIndex()Returns currently selected sort index.intgroupingButtonIndexAtPoint(RMPoint aPoint)Returns the grouping index for the button at the given point.RMRectgroupingButtonRect(int anIndex)Returns the bounds rect for the grouping button at the given index.java.lang.ObjectinitWithArchiver(RMArchiver anArchiver)Legacy unarchival.voidmoveGrouping(int si, int di)Moves a grouping from the first index to the second index.voidmoveGrouping(int sourceIndex, int destIndex, int destType)Moves a grouping from the first index to the second index.voidremoveGrouping(int anIndex)Removes the grouping at the given index.voidremoveGrouping(RMGrouping aGrouping)Removes the given grouping.RMShaperpgClone(ReportMill aReportMill)RPG clone method actually returns page index specified by aReportMill (generated in preprocess).voidrpgClonePreprocess(ReportMill reportMill)RPG clone actually happens in preprocess step, so we know how many pages it generates.voidsetColumnGroupingIndex(int anIndex)Sets the grouping index that crosstab's columns start with.voidsetListKey(java.lang.String aKeyPath)Sets the list key associated with this crosstab.voidsetOverflowBehavior(int aValue)Sets the overflow behavior of the crosstab.voidsetPageBreakGroupIndex(int anIndex)Sets the grouping index that crosstab page breaks on.voidsetSelectedGroupingIndex(int anIndex)Sets the currently selected grouping index.voidsetSelectedSortIndex(int anIndex)Sets the currently selected sort index.booleansuperSelectable()Editor method - specifies that crosstab is super-selectable.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.reportmill.shape.RMShapeacceptsFormat, 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.RMObjectdidUndo, getAnimAttribute, getClassNameShort
 
- 
 
- 
- 
- 
Field Detail- 
_dragKeypublic java.lang.String _dragKey 
 - 
OVERFLOW_PAGINATEpublic static final byte OVERFLOW_PAGINATE - See Also:
- Constant Field Values
 
 - 
OVERFLOW_FITpublic static final byte OVERFLOW_FIT - See Also:
- Constant Field Values
 
 - 
ROWpublic static final byte ROW - See Also:
- Constant Field Values
 
 - 
COLUMNpublic static final byte COLUMN - See Also:
- Constant Field Values
 
 - 
REMOVEpublic static final byte REMOVE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getListKeypublic java.lang.String getListKey() Returns the list key associated with this crosstab.- Overrides:
- getListKeyin class- RMShape
 
 - 
setListKeypublic void setListKey(java.lang.String aKeyPath) Sets the list key associated with this crosstab.- Overrides:
- setListKeyin class- RMShape
 
 - 
getGrouperpublic RMGrouper getGrouper() Returns the grouper associated with this crosstab.
 - 
getGroupingCountpublic int getGroupingCount() Returns the number of groups associated with this crosstab.
 - 
getGroupingpublic RMGrouping getGrouping(int anIndex) Returns the crosstab grouping at the given index.
 - 
getGroupingLastpublic RMGrouping getGroupingLast() Returns the last crosstab grouping.
 - 
getSelectedGroupingpublic RMGrouping getSelectedGrouping() Returns the selected crosstab grouping (when editing).
 - 
getSelectedSortpublic RMSort getSelectedSort() Returns the selected sort for the selected crosstab grouping.
 - 
getColumnGroupingIndexpublic int getColumnGroupingIndex() Returns the grouping index that crosstab's columns start with.
 - 
setColumnGroupingIndexpublic void setColumnGroupingIndex(int anIndex) Sets the grouping index that crosstab's columns start with.
 - 
getPageBreakGroupIndexpublic int getPageBreakGroupIndex() Returns the grouping index that crosstab page breaks on.
 - 
setPageBreakGroupIndexpublic void setPageBreakGroupIndex(int anIndex) Sets the grouping index that crosstab page breaks on.
 - 
getOverflowBehaviorpublic int getOverflowBehavior() Returns the overflow behavior of the crosstab.
 - 
setOverflowBehaviorpublic void setOverflowBehavior(int aValue) Sets the overflow behavior of the crosstab.
 - 
getSelectedGroupingIndexpublic int getSelectedGroupingIndex() Returns currently selected grouping index.
 - 
setSelectedGroupingIndexpublic void setSelectedGroupingIndex(int anIndex) Sets the currently selected grouping index.
 - 
getSelectedSortIndexpublic int getSelectedSortIndex() Returns currently selected sort index.
 - 
setSelectedSortIndexpublic void setSelectedSortIndex(int anIndex) Sets the currently selected sort index.
 - 
groupingButtonRectpublic RMRect groupingButtonRect(int anIndex) Returns the bounds rect for the grouping button at the given index.
 - 
groupingButtonIndexAtPointpublic int groupingButtonIndexAtPoint(RMPoint aPoint) Returns the grouping index for the button at the given point.
 - 
addGroupingForKeypublic void addGroupingForKey(java.lang.String aKey, int i)Adds a grouping for the given key at the given grouping index.
 - 
addGroupingForKeypublic void addGroupingForKey(java.lang.String aKey, int anIndex, int aType)Adds a grouping for the given key at the given grouping index.
 - 
moveGroupingpublic void moveGrouping(int si, int di)Moves a grouping from the first index to the second index.
 - 
moveGroupingpublic void moveGrouping(int sourceIndex, int destIndex, int destType)Moves a grouping from the first index to the second index.
 - 
removeGroupingpublic void removeGrouping(RMGrouping aGrouping) Removes the given grouping.
 - 
removeGroupingpublic void removeGrouping(int anIndex) Removes the grouping at the given index.
 - 
dragKeyAtPointpublic void dragKeyAtPoint(java.lang.String aString, RMPoint aPoint)Drag and drop: tells crosstab that key is being dragged at point.- Overrides:
- dragKeyAtPointin class- RMShape
 
 - 
dropKeyAtPointpublic void dropKeyAtPoint(java.lang.String aString, RMPoint aPoint)Drag and drop: tells crosstab that key was dropped at point.- Overrides:
- dropKeyAtPointin class- RMShape
 
 - 
dragExitpublic void dragExit() Drag and drop: tells crosstab that key exited crosstab.
 - 
addGroupingForKeyAtPointpublic void addGroupingForKeyAtPoint(java.lang.String aKey, RMPoint aPoint)Adds a grouping for the given key at the given point.
 - 
rpgClonePreprocesspublic void rpgClonePreprocess(ReportMill reportMill) RPG clone actually happens in preprocess step, so we know how many pages it generates.- Overrides:
- rpgClonePreprocessin class- RMShape
 
 - 
rpgClonepublic RMShape rpgClone(ReportMill aReportMill) RPG clone method actually returns page index specified by aReportMill (generated in preprocess).
 - 
superSelectablepublic boolean superSelectable() Editor method - specifies that crosstab is super-selectable.- Overrides:
- superSelectablein class- RMShape
 
 - 
childrenSuperSelectImmediatelypublic boolean childrenSuperSelectImmediately() Editor method - specifies that crosstab's children super select immediately.- Overrides:
- childrenSuperSelectImmediatelyin class- RMShape
 
 - 
canBeUngroupedpublic boolean canBeUngrouped() Editor method - specifies that crosstab can't be ungrouped.- Overrides:
- canBeUngroupedin class- RMShape
 
 - 
acceptsChildrenpublic boolean acceptsChildren() Editor method - specifies that crosstab can't accept children.- Overrides:
- acceptsChildrenin class- RMShape
 
 - 
acceptsDragKeyspublic boolean acceptsDragKeys() Editor method - specifies that crosstab accepts drag keys.- Overrides:
- acceptsDragKeysin class- RMShape
 
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.
 - 
initWithArchiverpublic java.lang.Object initWithArchiver(RMArchiver anArchiver) Legacy unarchival.- Specified by:
- initWithArchiverin interface- RMArchiver.Archiving
- Overrides:
- initWithArchiverin class- RMShape
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 
- 
 
-