Package com.inductiveautomation.rm.shape
Class RMCrossTabCol
- java.lang.Object
-
- com.inductiveautomation.rm.shape.RMCrossTabCol
-
- All Implemented Interfaces:
Archivable,java.lang.Cloneable
public class RMCrossTabCol extends java.lang.Object implements java.lang.Cloneable, Archivable
Provides info for a column in a crosstab.
-
-
Constructor Summary
Constructors Constructor Description RMCrossTabCol()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCell(RMCrossTabCell aCell)Adds a cell at end of column.voidaddCell(RMCrossTabCell aCell, int anIndex)Adds a cell at given index.RMCrossTabColclone()Returns a basic clone of this object.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.doublegetBestWidth()Returns the best height for the row.RMCrossTabCellgetCell(int anIndex)Returns the specific child cell at the given index in the list of unique cells for this row.intgetCellCount()Returns the number of cells in this row.RMCrossTabDividergetDivider(int anIndex)Returns the specific divider at given index.intgetDividerCount()Returns the divider count.java.util.List<RMCrossTabDivider>getDividers()Returns the dividers for this column.intgetIndex()Returns the index of this column in the table.doublegetMaxX()Returns the max x of this column.doublegetWidth()Returns the width of this column.floatgetX()Returns the x of this column.RMCrossTabCellremoveCell(int anIndex)Removes a cell at given index.voidresetDividers()Resets dividers so they will be recalculated.protected voidsetCell(RMCrossTabCell aCell, int anIndex)Sets the cell at given index.voidsetWidth(double aWidth)Sets the width of this column.RXElementtoXML(RXArchiver anArchiver)XML archival.
-
-
-
Method Detail
-
getIndex
public int getIndex()
Returns the index of this column in the table.
-
getCellCount
public int getCellCount()
Returns the number of cells in this row.
-
getCell
public RMCrossTabCell getCell(int anIndex)
Returns the specific child cell at the given index in the list of unique cells for this row.
-
setCell
protected void setCell(RMCrossTabCell aCell, int anIndex)
Sets the cell at given index.
-
addCell
public void addCell(RMCrossTabCell aCell)
Adds a cell at end of column.
-
addCell
public void addCell(RMCrossTabCell aCell, int anIndex)
Adds a cell at given index.
-
removeCell
public RMCrossTabCell removeCell(int anIndex)
Removes a cell at given index.
-
getX
public float getX()
Returns the x of this column.
-
getWidth
public double getWidth()
Returns the width of this column.
-
setWidth
public void setWidth(double aWidth)
Sets the width of this column.
-
getMaxX
public double getMaxX()
Returns the max x of this column.
-
getBestWidth
public double getBestWidth()
Returns the best height for the row.
-
getDividerCount
public int getDividerCount()
Returns the divider count.
-
getDivider
public RMCrossTabDivider getDivider(int anIndex)
Returns the specific divider at given index.
-
getDividers
public java.util.List<RMCrossTabDivider> getDividers()
Returns the dividers for this column.
-
resetDividers
public void resetDividers()
Resets dividers so they will be recalculated.
-
clone
public RMCrossTabCol clone()
Returns a basic clone of this object.- Overrides:
clonein classjava.lang.Object
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.- Specified by:
toXMLin interfaceArchivable
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Specified by:
fromXMLin interfaceArchivable
-
-