Package com.reportmill.shape
Class RMCellColumn
- java.lang.Object
-
- com.reportmill.shape.RMCellColumn
-
- All Implemented Interfaces:
java.lang.Cloneable
public class RMCellColumn extends java.lang.Object implements java.lang.CloneableProvides info for a column in a cell table.
-
-
Constructor Summary
Constructors Constructor Description RMCellColumn()Creates a new column.RMCellColumn(RMCellTable aTable)Creates a new column for the given table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns a basic clone of this object.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.RMCellgetCell(int anIndex)Returns the specific child cell at the given index in the list of unique cells for this column.intgetCellCount()Returns the number of cells in this column.RMCellDividergetDivider(int anIndex)Returns the specific divider at given index.intgetDividerCount()Returns the divider count.java.util.ListgetDividers()Returns the dividers for this column.intgetIndex()Returns the index of this column in the table.floatgetMaxX()Returns the max x of this column.RMCellTablegetTable()Returns the row's parent table.floatgetWidth()Returns the width of this column.floatgetX()Returns the x of this column.voidresetDividers()Resets dividers so they will be recalculated.voidsetWidth(double aWidth)Sets the width of this column.RXElementtoXML(RXArchiver anArchiver)XML archival.
-
-
-
Constructor Detail
-
RMCellColumn
public RMCellColumn()
Creates a new column.
-
RMCellColumn
public RMCellColumn(RMCellTable aTable)
Creates a new column for the given table.
-
-
Method Detail
-
getTable
public RMCellTable getTable()
Returns the row's parent table.
-
getIndex
public int getIndex()
Returns the index of this column in the table.
-
getCellCount
public int getCellCount()
Returns the number of cells in this column.
-
getCell
public RMCell getCell(int anIndex)
Returns the specific child cell at the given index in the list of unique cells for this column.
-
getX
public float getX()
Returns the x of this column.
-
getWidth
public float getWidth()
Returns the width of this column.
-
setWidth
public void setWidth(double aWidth)
Sets the width of this column.
-
getMaxX
public float getMaxX()
Returns the max x of this column.
-
getDividerCount
public int getDividerCount()
Returns the divider count.
-
getDivider
public RMCellDivider getDivider(int anIndex)
Returns the specific divider at given index.
-
getDividers
public java.util.List getDividers()
Returns the dividers for this column.
-
resetDividers
public void resetDividers()
Resets dividers so they will be recalculated.
-
clone
public java.lang.Object clone()
Returns a basic clone of this object.- Overrides:
clonein classjava.lang.Object
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.
-
-