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 Summary
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method recurses into table groups printing a header, details of subgroups and a summary for each group.boolean
addRow
(RMTableRowRPG aRow) Adds the given table row RPG to this table RPG (just below the last child).boolean
Does 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.float
Returns 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.int
Returns 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 boolean
getPaginate
(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 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).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.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.Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, 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.RMObject
didUndo, getAnimAttribute, getClassNameShort
-
Constructor Details
-
RMTableRPG
public RMTableRPG()Creates a new table RPG.
-
-
Method Details
-
rpgClonePreprocess
public 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. -
addTable
Does RPG clone for an individual table (maybe from a table group). -
addGroup
This method recurses into table groups printing a header, details of subgroups and a summary for each group. -
addRow
Adds the given table row RPG to this table RPG (just below the last child). -
getPageCount
public int getPageCount()Returns the number of "pages" resulting from table RPG.- Overrides:
getPageCount
in classRMShape
-
getPage
Returns the specific "page" at the given index from the list resulting from table RPG. -
getNextPage
Returns the next page in the linked list. -
getNextPageX
Returns the next page in the linked list as an RMTableRPGX instance. -
getPageLast
Returns the last page in the linked list. -
getPageLastX
Returns the last page in the linked list. -
getFilteredList
Returns a filtered list for a Table (with filter key) and aList. -
getHeightToFit
public float getHeightToFit()Returns the height this table should grow to (if it autosizes).- Overrides:
getHeightToFit
in classRMShape
-
getPaginate
Returns whether the given table or ReportMill are requesting pagination. -
getTableRow
Returns an RMTableRow for a given group. -
makeColumns
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). -
moveRowsToBottom
public 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.
-