Package com.inductiveautomation.rm.shape
Class RMCrossTabRow
- java.lang.Object
-
- com.inductiveautomation.rm.shape.RMCrossTabRow
-
- All Implemented Interfaces:
Archivable
,java.lang.Cloneable
public class RMCrossTabRow extends java.lang.Object implements java.lang.Cloneable, Archivable
This shape manages a row of cells.
-
-
Constructor Summary
Constructors Constructor Description RMCrossTabRow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCell(RMCrossTabCell aCell)
Adds a cell to end of row.void
addCell(RMCrossTabCell aCell, int anIndex)
Adds a cell at given index.RMCrossTabRow
clone()
Returns a basic clone of this object.RMCrossTabRow
cloneDeep()
Returns a clone of row including a clone of cells.java.lang.Object
fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.double
getBestHeight()
Returns the best height for the row.RMCrossTabCell
getCell(int anIndex)
Returns the specific child cell at the given index in the list of unique cells for this row.int
getCellCount()
Returns the number of cells in this row.RMCrossTabDivider
getDivider(int anIndex)
Returns the specific divider at given index.int
getDividerCount()
Returns the divider count.java.util.List<RMCrossTabDivider>
getDividers()
Returns the dividers for this column.double
getHeight()
Returns the row height.int
getIndex()
Returns the index of this row in the table.double
getMaxY()
Returns the row max y.double
getY()
Returns the row y.RMCrossTabCell
removeCell(int anIndex)
Removes a cell at given index.void
resetDividers()
Resets dividers so they will be recalculated.protected void
setCell(RMCrossTabCell aCell, int anIndex)
Sets the cell at given index.void
setHeight(double aHeight)
Sets the row height.java.lang.String
toString()
Standard toString implementation.RXElement
toXML(RXArchiver anArchiver)
XML archival.
-
-
-
Method Detail
-
getIndex
public int getIndex()
Returns the index of this row 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 to end of row.
-
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.
-
getY
public double getY()
Returns the row y.
-
getHeight
public double getHeight()
Returns the row height.
-
setHeight
public void setHeight(double aHeight)
Sets the row height.
-
getMaxY
public double getMaxY()
Returns the row max y.
-
getBestHeight
public double getBestHeight()
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
@Nullable public RMCrossTabRow clone()
Returns a basic clone of this object.- Overrides:
clone
in classjava.lang.Object
-
cloneDeep
public RMCrossTabRow cloneDeep()
Returns a clone of row including a clone of cells.
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.- Specified by:
toXML
in interfaceArchivable
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Specified by:
fromXML
in interfaceArchivable
-
toString
public java.lang.String toString()
Standard toString implementation.- Overrides:
toString
in classjava.lang.Object
-
-