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.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
-
-
Constructor Summary
Constructors Constructor Description RMTableRPG()
Creates a new table RPG.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroup(RMTable aTable, RMGroup aGroup)
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
addTable(RMTable aTable, java.lang.Object aSource)
Does RPG clone for an individual table (maybe from a table group).java.util.List
getFilteredList(RMTable aTable, java.util.List aList)
Returns a filtered list for a Table (with filter key) and aList.float
getHeightToFit()
Returns the height this table should grow to (if it autosizes).RMTableRPG
getNextPage()
Returns the next page in the linked list.RMTableRPGX
getNextPageX()
Returns the next page in the linked list as an RMTableRPGX instance.RMTableRPG
getPage(int anIndex)
Returns the specific "page" at the given index from the list resulting from table RPG.int
getPageCount()
Returns the number of "pages" resulting from table RPG.RMTableRPG
getPageLast()
Returns the last page in the linked list.RMTableRPGX
getPageLastX()
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.RMTableRow
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
-
-
-
-
Method Detail
-
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
public boolean addTable(RMTable aTable, java.lang.Object aSource)
Does RPG clone for an individual table (maybe from a table group).
-
addGroup
public void addGroup(RMTable aTable, RMGroup aGroup)
This method recurses into table groups printing a header, details of subgroups and a summary for each group.
-
addRow
public boolean addRow(RMTableRowRPG aRow)
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
public RMTableRPG getPage(int anIndex)
Returns the specific "page" at the given index from the list resulting from table RPG.
-
getNextPage
public RMTableRPG getNextPage()
Returns the next page in the linked list.
-
getNextPageX
public RMTableRPGX getNextPageX()
Returns the next page in the linked list as an RMTableRPGX instance.
-
getPageLast
public RMTableRPG getPageLast()
Returns the last page in the linked list.
-
getPageLastX
public RMTableRPGX getPageLastX()
Returns the last page in the linked list.
-
getFilteredList
public java.util.List getFilteredList(RMTable aTable, java.util.List aList)
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
public static boolean getPaginate(RMTable aTable, ReportMill aReportMill)
Returns whether the given table or ReportMill are requesting pagination.
-
getTableRow
public RMTableRow getTableRow(RMGroup aGroup, int part)
Returns an RMTableRow for a given group.
-
makeColumns
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). 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.
-
-