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,- java.lang.Cloneable
 
 public class RMCellTable extends RMShape Manages a table of RMCells, which is really a stack of RMCellRows.
- 
- 
Field Summary- 
Fields inherited from class com.reportmill.shape.RMShapeWRAP_TYPE_BOTH, WRAP_TYPE_NONE
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMCellTable()Creates a new cell table.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumn(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.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMCellgetCell(int aRow, int aColumn)Returns the cell at the given row and column indexes.java.awt.RectanglegetCellRect(java.awt.geom.Rectangle2D aRect)Returns the cell rect for the given rectangle2d.intgetColumn(double anX)Returns the specific column index for the given point.RMCellColumngetColumn(int anIndex)Returns the specific column at the given index.intgetColumnCount()Returns the number of rows for this table.booleangetHasHeaderColumn()Returns whether table has header column.booleangetHasHeaderRow()Returns whether table has header row.intgetRow(double aY)Returns the specific row index for the given point.RMCellRowgetRow(int anIndex)Returns the specific row at the given index.intgetRowCount()Returns 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.booleansuperSelectable()Editor method.RXElementtoXML(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, y
 - 
Methods inherited from class com.reportmill.base.RMObjectdidUndo, getAnimAttribute, getClassNameShort
 
- 
 
- 
- 
- 
Method Detail- 
getRowCountpublic int getRowCount() Returns the number of rows.
 - 
getRowpublic RMCellRow getRow(int anIndex) Returns the specific row at the given index.
 - 
getColumnCountpublic int getColumnCount() Returns the number of rows for this table.
 - 
getColumnpublic RMCellColumn getColumn(int anIndex) Returns the specific column at the given index.
 - 
getCellpublic RMCell getCell(int aRow, int aColumn) Returns 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.
 - 
getCellRectpublic java.awt.Rectangle getCellRect(java.awt.geom.Rectangle2D aRect) Returns 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.
 - 
splitCellIntoColumnspublic void splitCellIntoColumns(RMCell aCell) Splits a cell into 2 columns through it's mid point.
 - 
splitCellIntoRowspublic void splitCellIntoRows(RMCell aCell) Splits 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
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.
 
- 
 
-