Package com.reportmill.shape
Class RMTableRPG
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.shape.RMShape
com.reportmill.shape.RMTableRPG
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
- Direct Known Subclasses:
- RMTableRPGX
This class is a basic implementation of Table RPG. It doesn't do advanced pagination, widow/orphan control, etc.
- 
Field SummaryFields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidThis method recurses into table groups printing a header, details of subgroups and a summary for each group.booleanaddRow(RMTableRowRPG aRow) Adds the given table row RPG to this table RPG (just below the last child).booleanDoes RPG clone for an individual table (maybe from a table group).getFilteredList(RMTable aTable, List aList) Returns a filtered list for a Table (with filter key) and aList.floatReturns the height this table should grow to (if it autosizes).Returns the next page in the linked list.Returns the next page in the linked list as an RMTableRPGX instance.getPage(int anIndex) Returns the specific "page" at the given index from the list resulting from table RPG.intReturns the number of "pages" resulting from table RPG.Returns the last page in the linked list.Returns the last page in the linked list.static booleangetPaginate(RMTable aTable, ReportMill aReportMill) Returns whether the given table or ReportMill are requesting pagination.getTableRow(RMGroup aGroup, int part) Returns an RMTableRow for a given group.protected RMTableRPGXmakeColumns(RMTable aTable, ReportMill aReportMill) This method moves each groups the resulting set of table pages into a parent shape to accomodate aTable's getNumberOfColumns (spaced by its getColumnSpacing).voidmoveRowsToBottom(int anIndex) Scoots all the table rows from the given index to the end row such that they are stacked at bottom of page.static voidrpgClonePreprocess(RMTableGroup aTableGroup, RMTable aTable, ReportMill aReportMill) Does the real work of RPG clone, so ReportMill can know how many pages were required for.Methods inherited from class com.reportmill.shape.RMShapeacceptsChildren, acceptsDragKeys, acceptsFormat, acceptsMouse, addChild, addChild, addChildBelowLastChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, canBeUngrouped, childrenSuperSelectImmediately, 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, dragExit, dragKeyAtPoint, dropKeyAtPoint, equals, fromXML, 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, getImageFill, getLineWidth, getListKey, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOutline, 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, initWithArchiver, 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, rpgClone, rpgCloneBase, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgClonePreprocess, 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, setListKey, 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, superSelectable, toString, toXML, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, yMethods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
- 
Constructor Details- 
RMTableRPGpublic RMTableRPG()Creates a new table RPG.
 
- 
- 
Method Details- 
rpgClonePreprocesspublic static void rpgClonePreprocess(RMTableGroup aTableGroup, RMTable aTable, ReportMill aReportMill) Does the real work of RPG clone, so ReportMill can know how many pages were required for.
- 
addTableDoes RPG clone for an individual table (maybe from a table group).
- 
addGroupThis method recurses into table groups printing a header, details of subgroups and a summary for each group.
- 
addRowAdds the given table row RPG to this table RPG (just below the last child).
- 
getPageCountpublic int getPageCount()Returns the number of "pages" resulting from table RPG.- Overrides:
- getPageCountin class- RMShape
 
- 
getPageReturns the specific "page" at the given index from the list resulting from table RPG.
- 
getNextPageReturns the next page in the linked list.
- 
getNextPageXReturns the next page in the linked list as an RMTableRPGX instance.
- 
getPageLastReturns the last page in the linked list.
- 
getPageLastXReturns the last page in the linked list.
- 
getFilteredListReturns a filtered list for a Table (with filter key) and aList.
- 
getHeightToFitpublic float getHeightToFit()Returns the height this table should grow to (if it autosizes).- Overrides:
- getHeightToFitin class- RMShape
 
- 
getPaginateReturns whether the given table or ReportMill are requesting pagination.
- 
getTableRowReturns an RMTableRow for a given group.
- 
makeColumnsThis method moves each groups the resulting set of table pages into a parent shape to accomodate aTable's getNumberOfColumns (spaced by its getColumnSpacing). tables for each explicit page break into encompassing shapes that hold numberOfColumns tables (spaced apart by _columnSpacing).
- 
moveRowsToBottompublic void moveRowsToBottom(int anIndex) Scoots all the table rows from the given index to the end row such that they are stacked at bottom of page.
 
-