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,- java.lang.Cloneable
 - Direct Known Subclasses:
- RMTableRPGX
 
 public class RMTableRPG extends RMShape This class is a basic implementation of Table RPG. It doesn't do advanced pagination, widow/orphan control, etc.
- 
- 
Field Summary- 
Fields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMTableRPG()Creates a new table RPG.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroup(RMTable aTable, RMGroup aGroup)This 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).booleanaddTable(RMTable aTable, java.lang.Object aSource)Does RPG clone for an individual table (maybe from a table group).java.util.ListgetFilteredList(RMTable aTable, java.util.List aList)Returns a filtered list for a Table (with filter key) and aList.floatgetHeightToFit()Returns the height this table should grow to (if it autosizes).RMTableRPGgetNextPage()Returns the next page in the linked list.RMTableRPGXgetNextPageX()Returns the next page in the linked list as an RMTableRPGX instance.RMTableRPGgetPage(int anIndex)Returns the specific "page" at the given index from the list resulting from table RPG.intgetPageCount()Returns the number of "pages" resulting from table RPG.RMTableRPGgetPageLast()Returns the last page in the linked list.RMTableRPGXgetPageLastX()Returns the last page in the linked list.static booleangetPaginate(RMTable aTable, ReportMill aReportMill)Returns whether the given table or ReportMill are requesting pagination.RMTableRowgetTableRow(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, y
 - 
Methods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
 
- 
 
- 
- 
- 
Method Detail- 
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.
 - 
addTablepublic boolean addTable(RMTable aTable, java.lang.Object aSource) Does RPG clone for an individual table (maybe from a table group).
 - 
addGrouppublic void addGroup(RMTable aTable, RMGroup aGroup) This method recurses into table groups printing a header, details of subgroups and a summary for each group.
 - 
addRowpublic boolean addRow(RMTableRowRPG aRow) Adds 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
 
 - 
getPagepublic RMTableRPG getPage(int anIndex) Returns the specific "page" at the given index from the list resulting from table RPG.
 - 
getNextPagepublic RMTableRPG getNextPage() Returns the next page in the linked list.
 - 
getNextPageXpublic RMTableRPGX getNextPageX() Returns the next page in the linked list as an RMTableRPGX instance.
 - 
getPageLastpublic RMTableRPG getPageLast() Returns the last page in the linked list.
 - 
getPageLastXpublic RMTableRPGX getPageLastX() Returns the last page in the linked list.
 - 
getFilteredListpublic java.util.List getFilteredList(RMTable aTable, java.util.List aList) Returns 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
 
 - 
getPaginatepublic static boolean getPaginate(RMTable aTable, ReportMill aReportMill) Returns whether the given table or ReportMill are requesting pagination.
 - 
getTableRowpublic RMTableRow getTableRow(RMGroup aGroup, int part) Returns an RMTableRow for a given group.
 - 
makeColumnsprotected RMTableRPGX makeColumns(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). 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.
 
- 
 
-