Package com.reportmill.shape
Class RMCellTable
java.lang.Object
com.reportmill.base.RMObject
com.reportmill.shape.RMShape
com.reportmill.shape.RMCellTable
- All Implemented Interfaces:
- RMArchiver.Archiving,- Cloneable
Manages a table of RMCells, which is really a stack of RMCellRows.
- 
Field SummaryFields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddColumn(int anIndex, int refColumn) Adds a column at the given index.voidaddColumnDivider(double anX) Adds a column divider at the given x coordinate.voidaddRow(int anIndex, int refRow) Adds a row at the given index.voidaddRowDivider(double aY) Adds a row divider at the given y coordinate.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.getCell(int aRow, int aColumn) Returns the cell at the given row and column indexes.getCellRect(Rectangle2D aRect) Returns the cell rect for the given rectangle2d.intgetColumn(double anX) Returns the specific column index for the given point.getColumn(int anIndex) Returns the specific column at the given index.intReturns the number of rows for this table.booleanReturns whether table has header column.booleanReturns whether table has header row.intgetRow(double aY) Returns the specific row index for the given point.getRow(int anIndex) Returns the specific row at the given index.intReturns the number of rows.voidmergeCells(int aRow1, int aCol1, int aRow2, int aCol2) Merges a range of cells into one cell.voidremoveColumn(int anIndex) Removes the column at the given index.voidremoveRow(int anIndex) Removes the row at the given index.voidsetColumnCount(int aColumnCount) Sets the number of columns for this table.voidsetHasHeaderColumn(boolean aFlag) Sets whether table has header column.voidsetHasHeaderRow(boolean aFlag) Sets whether table has header row.voidsetHeight(double aValue) Overrides shape method to validate.voidsetRowCount(int aRowCount) Sets the number of rows.voidsetWidth(double aValue) Overrides shape method to revalidate.voidsplitCellIntoColumns(RMCell aCell) Splits a cell into 2 columns through it's mid point.voidsplitCellIntoRows(RMCell aCell) Splits a cell into 2 rows through it's mid point.booleanEditor method.toXML(RXArchiver anArchiver) XML archival.voidvalidate()Relays out table rows, columns and cells.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, 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, getHeightToFit, getImageFill, getLineWidth, getListKey, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getOutline, getPageCount, 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, 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, setWidthDeep, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, toString, undoClone, undoCopy, undoEquals, undoerAddDirtyObject, undoerDisable, undoerEnable, undoerSetUndoTitle, width, willChange, willChange, x, yMethods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
- 
Constructor Details- 
RMCellTablepublic RMCellTable()Creates a new cell table.
 
- 
- 
Method Details- 
getRowCountpublic int getRowCount()Returns the number of rows.
- 
getRowReturns the specific row at the given index.
- 
getColumnCountpublic int getColumnCount()Returns the number of rows for this table.
- 
getColumnReturns the specific column at the given index.
- 
getCellReturns the cell at the given row and column indexes.
- 
getRowpublic int getRow(double aY) Returns the specific row index for the given point.
- 
getColumnpublic int getColumn(double anX) Returns the specific column index for the given point.
- 
getCellRectReturns the cell rect for the given rectangle2d.
- 
addRowpublic void addRow(int anIndex, int refRow) Adds a row at the given index.
- 
removeRowpublic void removeRow(int anIndex) Removes the row at the given index.
- 
addColumnpublic void addColumn(int anIndex, int refColumn) Adds a column at the given index.
- 
removeColumnpublic void removeColumn(int anIndex) Removes the column at the given index.
- 
setRowCountpublic void setRowCount(int aRowCount) Sets the number of rows.
- 
setColumnCountpublic void setColumnCount(int aColumnCount) Sets the number of columns for this table.
- 
getHasHeaderRowpublic boolean getHasHeaderRow()Returns whether table has header row.
- 
setHasHeaderRowpublic void setHasHeaderRow(boolean aFlag) Sets whether table has header row.
- 
getHasHeaderColumnpublic boolean getHasHeaderColumn()Returns whether table has header column.
- 
setHasHeaderColumnpublic void setHasHeaderColumn(boolean aFlag) Sets whether table has header column.
- 
addColumnDividerpublic void addColumnDivider(double anX) Adds a column divider at the given x coordinate.
- 
addRowDividerpublic void addRowDivider(double aY) Adds a row divider at the given y coordinate.
- 
splitCellIntoColumnsSplits a cell into 2 columns through it's mid point.
- 
splitCellIntoRowsSplits a cell into 2 rows through it's mid point.
- 
mergeCellspublic void mergeCells(int aRow1, int aCol1, int aRow2, int aCol2) Merges a range of cells into one cell.
- 
setWidthpublic void setWidth(double aValue) Overrides shape method to revalidate.
- 
setHeightpublic void setHeight(double aValue) Overrides shape method to validate.
- 
validatepublic void validate()Relays out table rows, columns and cells.
- 
superSelectablepublic boolean superSelectable()Editor method.- Overrides:
- superSelectablein class- RMShape
 
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-