Package com.reportmill.shape
Class RMCell
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.shape.RMShape
-
- com.reportmill.shape.RMRectangle
-
- com.reportmill.shape.RMText
-
- com.reportmill.shape.RMCell
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.Cloneable
public class RMCell extends RMText
A text shape subclass used to form the basis of a table.
-
-
Field Summary
-
Fields inherited from class com.reportmill.shape.RMText
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_FULL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, WRAP_BASIC, WRAP_NONE, WRAP_SCALE
-
Fields inherited from class com.reportmill.shape.RMShape
WRAP_TYPE_BOTH, WRAP_TYPE_NONE
-
-
Constructor Summary
Constructors Constructor Description RMCell()
Creates a new RMCell.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.int
getColumn()
Returns the column of this cell.int
getColumnEnd()
Returns the end column of this cell.int
getColumnSpan()
Returns the number of columns this cell spans.float
getMarginBottom()
Returns the bottom margin of the text (defaults to 0).float
getMarginLeft()
Returns the left margin of the text (default to 2).float
getMarginRight()
Returns the right margin of the text (defaults to 2).float
getMarginTop()
Returns the top margin of the text (defaults to 1).int
getRow()
Returns the row of this cell.int
getRowEnd()
Returns the end row of this cell.int
getRowSpan()
Returns the number of rows this cell spans.RMCellTable
getTable()
Returns the table for this cell.RXElement
toXML(RXArchiver anArchiver)
XML archival.-
Methods inherited from class com.reportmill.shape.RMText
clone, copy, equals, fromXMLFinish, getAlign, getAlignString, getAlignVertical, getAlignVerticalString, getBoundsFromTextBounds, getCharSpacing, getCoalesceNewlines, getDrawsSelectionRect, getFont, getFontScale, getFormat, getHeightToFit, getHeightToFit, getLineGap, getLineHeightMax, getLineHeightMin, getLineSpacing, getLinkedText, getOutline, getPath, getPathInBounds, getPathInBounds, getPathShape, getPerformsWrap, getPolygonForFrag, getText, getTextBounds, getTextColor, getTextLayout, getTextLayout, getTextOrigin, getVisibleEnd, getVisibleStart, getWidthToFit, getWraps, getXString, initWithArchiver, isAllTextVisible, isStructured, isUnderlined, length, peerDidChange, resolvePageReferences, rpgClone, rpgClonePreprocess, scaleTextToFit, setAlign, setAlignVertical, setCharSpacing, setCoalesceNewlines, setDrawsSelectionRect, setFont, setFontScale, setFormat, setHeight, setHeightToFit, setLineGap, setLineHeightMax, setLineHeightMin, setLineSpacing, setLinkedText, setNeedsRepaint, setOutline, setPathShape, setPerformsWrap, setRadius, setText, setText, setTextColor, setUnderlined, setWraps, setXString, superSelectable, toString, turnToChars, turnToPath
-
Methods inherited from class com.reportmill.shape.RMRectangle
getRadius
-
Methods inherited from class com.reportmill.shape.RMShape
acceptsChildren, acceptsDragKeys, acceptsFormat, acceptsMouse, addChild, addChild, addChildBelowLastChild, bounds, boundsChanged, boundsChanged, bringShapesToFront, canBeUngrouped, childrenSuperSelectImmediately, cloneDeep, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedSizeFromShape, convertedSizeToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertSizeFromShape, convertSizeToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, delete, didChange, divideShapeFromEdge, divideShapeFromTop, dragExit, dragKeyAtPoint, dropKeyAtPoint, 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, getFrame, getFrame, getFrameMaxX, getFrameMaxY, getFrameX, getFrameXY, getFrameY, getGroupShape, getHeight, getImageFill, getLineWidth, getListKey, getListKeyDeep, getListKeyShape, getMaxX, getMaxY, getName, getOpacity, getOpacityDeep, getPageCount, getPageShape, getParent, getParentCount, getParents, getPropertyKey, getPropertyKeyCount, getPropertyKeyName, getRoll, getRootShape, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSizeP, getSkewX, getSkewY, getStroke, getStrokeColor, getToolClassName, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getUrl, getWidth, getX, getXY, getXYP, getY, groupShapes, hasPageBreaks, height, indexOf, indexOf, intersects, isAncestor, isDescendant, isLocked, isRoot, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, notRSS, offsetChildrenXY, offsetXY, page, pageBreakMax, pageBreakPageMax, pageMax, put, putPropertyKey, reclaimChildren, removeChild, removeChild, removeChildren, removeChildren, removeFromParent, rpgCloneBase, rpgCloneChildren, rpgCloneConclude, rpgCloneNotification, rpgClonePrepare, rpgCloneUrl, sendShapesToBack, setActionScript, setAnim, setAutosizeHeight, setAutosizing, setBounds, setBounds, setCausesWrapType, setChildren, setColor, setFill, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeightDeep, setHeightDeep, setHeightToFit, setLineWidth, setListKey, setLocked, setName, setNeedsRepaint, setOpacity, setParent, setRoll, setScaleX, setScaleXY, setScaleY, setSize, setSize, setSizeDeep, setSizeP, setSizeToFit, setSizeToFit, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setTime, setUrl, setWidth, setWidthDeep, setWidthDeep, setWidthToFit, setX, setXY, setXY, setXYP, setY, sizesToFitChildren, 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
-
getTable
public RMCellTable getTable()
Returns the table for this cell.
-
getRow
public int getRow()
Returns the row of this cell.
-
getColumn
public int getColumn()
Returns the column of this cell.
-
getColumnSpan
public int getColumnSpan()
Returns the number of columns this cell spans.
-
getRowSpan
public int getRowSpan()
Returns the number of rows this cell spans.
-
getRowEnd
public int getRowEnd()
Returns the end row of this cell.
-
getColumnEnd
public int getColumnEnd()
Returns the end column of this cell.
-
getMarginLeft
public float getMarginLeft()
Returns the left margin of the text (default to 2).- Overrides:
getMarginLeft
in classRMText
-
getMarginRight
public float getMarginRight()
Returns the right margin of the text (defaults to 2).- Overrides:
getMarginRight
in classRMText
-
getMarginTop
public float getMarginTop()
Returns the top margin of the text (defaults to 1).- Overrides:
getMarginTop
in classRMText
-
getMarginBottom
public float getMarginBottom()
Returns the bottom margin of the text (defaults to 0).- Overrides:
getMarginBottom
in classRMText
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.
-
-