ReportMill 7.0 API

com.reportmill.shape
Class RMTableRow

java.lang.Object
  extended bycom.reportmill.foundation.RMObject
      extended bycom.reportmill.shape.RMShape
          extended bycom.reportmill.shape.RMSwitchShape
              extended bycom.reportmill.shape.RMTableRow
All Implemented Interfaces:
java.lang.Cloneable, com.reportmill.foundation.RMArchiver.Archiving

public class RMTableRow
extends RMSwitchShape


Field Summary
static java.lang.String VersionAlternate
           
static java.lang.String VersionFirstOnly
           
static java.lang.String VersionReprint
           
static java.lang.String VersionSplitHeader
           
static java.lang.String VersionStandard
           
static java.lang.String VersionTopNOthers
           
 
Fields inherited from class com.reportmill.shape.RMShape
HandleMaxXMaxY, HandleMaxXMidY, HandleMaxXMinY, HandleMidXMaxY, HandleMidXMinY, HandleMinXMaxY, HandleMinXMidY, HandleMinXMinY, HandleWidth
 
Constructor Summary
RMTableRow()
          Creates a plain, unstructured table row.
RMTableRow(boolean structured)
          Creates a table row allowing the user to specify whether it should be structured.
 
Method Summary
 void addChild(RMShape aChild, int anIndex)
          Adds the given child to this shape's children list at the given index.
 void arrange()
          Recalcs column widths to fill table row width.
 void arrangeWithShape(RMShape aShape)
          Recalcs column widths to fill table row width.
 void boundsChanged(RMShape shape)
          Notifies this shape that a given shape's bounds have changed (presumably a descendant).
 boolean canBeUngrouped()
          Editor method.
 boolean childrenSuperSelectImmediately()
          Editor method.
 void copy(com.reportmill.foundation.RMObject anObj)
          Copies applicable attributes from the given object.
 boolean equals(java.lang.Object anObj)
          Standard implementation of Object equals.
 java.lang.Object fromXML(com.ribs.RXArchiver anArchiver, com.ribs.RXElement anElement)
          Tablerow unarchival.
 RMText getColumn(int anIndex)
           
 float getMinSplitHeight()
          Returns the minimum distance in points from the top of the row that this row can split.
 float getMinSplitRemainderHeight()
          Returns the minimum distance in points from the bottom of the row that this row can split.
 boolean getMoveToBottom()
          Returns whether this row should be moved to the bottom of the table during report generation.
 int getNumberOfChildrenToStayWith()
          Returns the number of children this table row needs to be accompanied by, if some children run off page bottom.
 int getNumberOfColumns()
          Returns the number of columns in this table row (really just child count).
 boolean getPrintEvenIfGroupIsEmpty()
          Returns whether this row should print even if it has no children (assumed to be a header/summary row).
 boolean getReprintWhenWrapped()
          Returns whether this row is reprinted on a new page when it's children cross a page boundary.
 RMTableRow getRowAbove()
           
 java.lang.String getTitle()
          Returns the title for this table row in it's parent table.
 int handleAtPoint(RMPoint point, boolean isSuperSelected)
           
 java.lang.Object initWithArchiver(com.reportmill.foundation.RMArchiver anArchiver)
          Legacy unarchival.
 boolean isStructured()
          Returns whether this table row is structured.
 RMShape rpgClone(com.reportmill.foundation.ReportMill rm, com.reportmill.foundation.RMGroup group, java.lang.String suggestedVersion)
          This rpgClone method hands things off to RMTableRowRPG.
 java.lang.Object rpgCloneBase()
          This rpgCloneBase over-ride is used to substitute RMTableRowRPG as the class for the rpgClone.
 void setMinSplitHeight(float aValue)
          Sets the minimum distance in points from the top of the row that this row can split.
 void setMinSplitRemainderHeight(float aValue)
          Sets the minimum distance in points from the top of the row that this row can split.
 void setMoveToBottom(boolean aFlag)
          Sets whether this row should be moved to the bottom of the table during report generation.
 void setNumberOfChildrenToStayWith(int aValue)
          Sets the number of children this table row needs to be accompanied by, if some children run off page bottom.
 void setNumberOfColumns(int count)
          Sets the number of columns in this table row.
 void setPrintEvenIfGroupIsEmpty(boolean aFlag)
          Returns whether this row should print even if it has no children (assumed to be a header/summary row).
 void setReprintWhenWrapped(boolean aFlag)
          Sets whether this row is reprinted on a new page when it's children cross a page boundary.
 void setStructured(boolean aFlag)
          Sets whether this table row should be structured.
 void setStructured(boolean aFlag, boolean fixColumns)
          Sets whether this table row should be structured, with an option to re-layout children.
 void setSyncStructureWithAlternates(boolean aFlag)
           
 void setSyncStructureWithRowAbove(boolean aFlag)
           
 boolean syncStructureWithAlternates()
           
 boolean syncStructureWithRowAbove()
           
 void syncStructureWithShape(RMShape aShape)
          The syncStructureWithShape() method sync's the column widths of receiver to those of given shape.
 com.ribs.RXElement toXML(com.ribs.RXArchiver anArchiver)
          TableRow archival.
 
Methods inherited from class com.reportmill.shape.RMSwitchShape
acceptsChildren, addVersionWithShape, alternates, alternateShapeInstance, clone, cloneDeep, defaultVersion, getChildAnimator, getVersion, hasAlternateVersions, hasMouseVersions, hasVersion, removeVersion, rpgClone, rpgClone, setAlternates, setChildAnimator, setVersion, setVersionForKey, setVersionKey, setWidthDeep, superSelectable, version, versionKey, versions
 
Methods inherited from class com.reportmill.shape.RMShape
acceptsDragKeys, acceptsEvents, acceptsFirstEvent, acceptsFormat, addChild, addChildBelowLastChild, boundsChanged, bringShapesToFront, childHitByPoint, childrenHitByPath, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, didChange, divideShapeFromEdge, divideShapeFromTop, dragExit, dragKeyAtPoint, drawChildren, drawsFill, drawsStroke, dropKeyAtPoint, fromXMLDeep, get, getActionScript, getAnim, getAnim, getAnimator, getAnimator, getAutosizeHeight, getAutosizing, getBounds, getBounds, getBoundsInside, getBoundsMarked, getBoundsOfChildren, getBoundsOfChildren, getBoundsOfPath, getBoundsOrigin, getBoundsSize, getBoundsSuperSelected, getChild, getChildAnimator, getChildCount, getChildLast, getChildren, getChildWithClass, getChildWithName, getColor, getCommonAncestor, getDocument, getFill, getFont, getFormat, getGroupShape, getHeight, getHeightToFit, getImageData, getImageFill, getLineWidth, getListKey, getListKeyDeep, getListKeyShape, getName, getOpacity, getOpacityDeep, getOrigin, getOutline, getPageCount, getPageShape, getParent, getParentCount, getParents, getPath, getPathInBounds, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getTextColor, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getWidth, getWidthToFit, getX, getY, groupShapes, handleCount, handlePoint, handleRect, hasPageBreaks, height, hitByPath, hitByPoint, hitChildren, indexOf, indexOf, isAncestor, isDescendant, isLocked, isRoot, isUnderlined, maxX, maxXInside, maxY, maxYInside, midX, midXInside, midY, midYInside, minX, minXInside, minY, minYInside, moveHandleToPoint, notRSS, offsetChildrenXY, offsetXY, opposingHandle, page, pageBreakMax, pageBreakPageMax, pageMax, put, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, resolvePageReferences, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgClonePreprocess, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setBoundsOrigin, setBoundsOrigin, setBoundsOriginX, setBoundsOriginY, setBoundsSize, setBoundsSize, setChildren, setColor, setColor, setDrawsFill, setDrawsStroke, setEverythingStretches, setFill, setFill, setFont, setFormat, setHeight, setHeightDeep, setHeightDeep, setHeightToFit, setLineWidth, setListKey, setLocked, setName, setNeedsRepaint, setNeedsRepaint, setOnlyBottomAndRightMarginStretches, setOnlyTopAndRightMarginStretches, setOnlyWidthAndHeightStretches, setOpacity, setOrigin, setOrigin, setOutline, setParent, setRoll, setScaleX, setScaleXY, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeDeep, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewXY, setSkewY, setStroke, setStroke, setStrokeColor, setStrokeColor, setTextColor, setTime, setUnderlined, setUrl, setWidth, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYWidthHeight, setY, sizesToFitChildren, superSelectImmediately, toString, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, y
 
Methods inherited from class com.reportmill.foundation.RMObject
archiverClassName, didUndo, getAnimAttribute, getClassNameShort
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VersionStandard

public static final java.lang.String VersionStandard
See Also:
Constant Field Values

VersionFirstOnly

public static final java.lang.String VersionFirstOnly
See Also:
Constant Field Values

VersionReprint

public static final java.lang.String VersionReprint
See Also:
Constant Field Values

VersionAlternate

public static final java.lang.String VersionAlternate
See Also:
Constant Field Values

VersionTopNOthers

public static final java.lang.String VersionTopNOthers
See Also:
Constant Field Values

VersionSplitHeader

public static final java.lang.String VersionSplitHeader
See Also:
Constant Field Values
Constructor Detail

RMTableRow

public RMTableRow()
Creates a plain, unstructured table row.


RMTableRow

public RMTableRow(boolean structured)
Creates a table row allowing the user to specify whether it should be structured.

Method Detail

getTitle

public java.lang.String getTitle()
Returns the title for this table row in it's parent table.


isStructured

public boolean isStructured()
Returns whether this table row is structured.


setStructured

public void setStructured(boolean aFlag)
Sets whether this table row should be structured.


setStructured

public void setStructured(boolean aFlag,
                          boolean fixColumns)
Sets whether this table row should be structured, with an option to re-layout children.


syncStructureWithRowAbove

public boolean syncStructureWithRowAbove()

setSyncStructureWithRowAbove

public void setSyncStructureWithRowAbove(boolean aFlag)

syncStructureWithAlternates

public boolean syncStructureWithAlternates()

setSyncStructureWithAlternates

public void setSyncStructureWithAlternates(boolean aFlag)

getColumn

public RMText getColumn(int anIndex)

getNumberOfColumns

public int getNumberOfColumns()
Returns the number of columns in this table row (really just child count).


setNumberOfColumns

public void setNumberOfColumns(int count)
Sets the number of columns in this table row.


getNumberOfChildrenToStayWith

public int getNumberOfChildrenToStayWith()
Returns the number of children this table row needs to be accompanied by, if some children run off page bottom.


setNumberOfChildrenToStayWith

public void setNumberOfChildrenToStayWith(int aValue)
Sets the number of children this table row needs to be accompanied by, if some children run off page bottom.


getReprintWhenWrapped

public boolean getReprintWhenWrapped()
Returns whether this row is reprinted on a new page when it's children cross a page boundary.


setReprintWhenWrapped

public void setReprintWhenWrapped(boolean aFlag)
Sets whether this row is reprinted on a new page when it's children cross a page boundary.


getPrintEvenIfGroupIsEmpty

public boolean getPrintEvenIfGroupIsEmpty()
Returns whether this row should print even if it has no children (assumed to be a header/summary row).


setPrintEvenIfGroupIsEmpty

public void setPrintEvenIfGroupIsEmpty(boolean aFlag)
Returns whether this row should print even if it has no children (assumed to be a header/summary row).


getMoveToBottom

public boolean getMoveToBottom()
Returns whether this row should be moved to the bottom of the table during report generation.


setMoveToBottom

public void setMoveToBottom(boolean aFlag)
Sets whether this row should be moved to the bottom of the table during report generation.


getMinSplitHeight

public float getMinSplitHeight()
Returns the minimum distance in points from the top of the row that this row can split.


setMinSplitHeight

public void setMinSplitHeight(float aValue)
Sets the minimum distance in points from the top of the row that this row can split.


getMinSplitRemainderHeight

public float getMinSplitRemainderHeight()
Returns the minimum distance in points from the bottom of the row that this row can split.


setMinSplitRemainderHeight

public void setMinSplitRemainderHeight(float aValue)
Sets the minimum distance in points from the top of the row that this row can split.


arrange

public void arrange()
Recalcs column widths to fill table row width.


arrangeWithShape

public void arrangeWithShape(RMShape aShape)
Recalcs column widths to fill table row width.


syncStructureWithShape

public void syncStructureWithShape(RMShape aShape)
The syncStructureWithShape() method sync's the column widths of receiver to those of given shape.


getRowAbove

public RMTableRow getRowAbove()

canBeUngrouped

public boolean canBeUngrouped()
Description copied from class: RMShape
Editor method.

Overrides:
canBeUngrouped in class RMShape

childrenSuperSelectImmediately

public boolean childrenSuperSelectImmediately()
Description copied from class: RMShape
Editor method.

Overrides:
childrenSuperSelectImmediately in class RMShape

handleAtPoint

public int handleAtPoint(RMPoint point,
                         boolean isSuperSelected)
Overrides:
handleAtPoint in class RMShape

boundsChanged

public void boundsChanged(RMShape shape)
Description copied from class: RMShape
Notifies this shape that a given shape's bounds have changed (presumably a descendant).

Overrides:
boundsChanged in class RMShape

addChild

public void addChild(RMShape aChild,
                     int anIndex)
Description copied from class: RMShape
Adds the given child to this shape's children list at the given index.

Overrides:
addChild in class RMShape

rpgCloneBase

public java.lang.Object rpgCloneBase()
This rpgCloneBase over-ride is used to substitute RMTableRowRPG as the class for the rpgClone.

Overrides:
rpgCloneBase in class RMShape

rpgClone

public RMShape rpgClone(com.reportmill.foundation.ReportMill rm,
                        com.reportmill.foundation.RMGroup group,
                        java.lang.String suggestedVersion)
This rpgClone method hands things off to RMTableRowRPG.


equals

public boolean equals(java.lang.Object anObj)
Description copied from class: RMShape
Standard implementation of Object equals.

Overrides:
equals in class RMSwitchShape

copy

public void copy(com.reportmill.foundation.RMObject anObj)
Description copied from class: RMShape
Copies applicable attributes from the given object.

Overrides:
copy in class RMSwitchShape

initWithArchiver

public java.lang.Object initWithArchiver(com.reportmill.foundation.RMArchiver anArchiver)
Description copied from class: RMSwitchShape
Legacy unarchival.

Specified by:
initWithArchiver in interface com.reportmill.foundation.RMArchiver.Archiving
Overrides:
initWithArchiver in class RMSwitchShape

toXML

public com.ribs.RXElement toXML(com.ribs.RXArchiver anArchiver)
TableRow archival.

Overrides:
toXML in class RMSwitchShape

fromXML

public java.lang.Object fromXML(com.ribs.RXArchiver anArchiver,
                                com.ribs.RXElement anElement)
Tablerow unarchival.

Overrides:
fromXML in class RMSwitchShape

ReportMill 7.0 API