Package com.inductiveautomation.rm.shape
Class RMShapeTable
- java.lang.Object
- 
- com.inductiveautomation.rm.shape.RMShapeTable
 
- 
 public class RMShapeTable extends java.lang.ObjectDefines a region of coordinates along with a list of shapes that occupy that region.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classRMShapeTable.CellAn inner class that represents a table cell.classRMShapeTable.ColumnAn inner class representing rows.classRMShapeTable.RowAn inner class representing rows.static classRMShapeTable.SpanA class to represent an intervalstatic classRMShapeTable.SpanListA class to represent a list of spans.
 - 
Constructor SummaryConstructors Constructor Description RMShapeTable(java.util.List<RMShape> theShapes)Creates a table from a list of shapes.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDouble(java.util.List<java.lang.Double> aDoubleList, java.lang.Double aDouble)Adds a double to a list.booleancontains(int aRow, int aColumn, int aRowMax, int aColumnMax, RMShape aShape)Returns whether given range of cells contains given shape.booleanequals(double aValue1, double aValue2)Returns whether double values are equal to the precision of the table.RMShapeTable.CellgetCell(int anIndex)Returns the individual cell at the given index.RMShapeTable.CellgetCell(int aRow, int aColumn)Returns the individual cell at the given row and column.intgetCellCount()Returns the number of cells.RMShapeTable.Cell[][]getCells()Returns the cells.RMShapeTable.ColumngetColumn(int anIndex)Returns the individual column at given index.intgetColumnCount()Returns the number of columns.java.util.List<java.lang.Double>getColumnDividers()Returns the list of column dividers.java.util.List<RMShapeTable.Column>getColumns()Returns a list of columns.RMShapeTable.RowgetRow(int anIndex)Returns the individual row at given index.intgetRowCount()Returns the number of rows.java.util.List<java.lang.Double>getRowDividers()Returns the list of row dividers.java.util.List<RMShapeTable.Row>getRows()Returns a list of rows.java.util.List<RMShape>getShapes()Returns the list of table shapes.java.util.List<RMShape>getShapes(int aRow, int aColumn, int aRowMax, int aColumnMax)Returns the list of shapes from given rows and columns.static RMShapeTable.SpangetSpanX(RMShape aShape)Returns the horizontal span of a given shape.static RMShapeTable.SpangetSpanY(RMShape aShape)Returns the vertical span of a given shape.booleanisEmpty(int aRow, int aColumn, int aRowMax, int aColumnMax)Returns whether given range of cells is empty.
 
- 
- 
- 
Constructor Detail- 
RMShapeTablepublic RMShapeTable(java.util.List<RMShape> theShapes) Creates a table from a list of shapes.
 
- 
 - 
Method Detail- 
getShapespublic java.util.List<RMShape> getShapes() Returns the list of table shapes.
 - 
getRowCountpublic int getRowCount() Returns the number of rows.
 - 
getRowpublic RMShapeTable.Row getRow(int anIndex) Returns the individual row at given index.
 - 
getRowspublic java.util.List<RMShapeTable.Row> getRows() Returns a list of rows.
 - 
getColumnpublic RMShapeTable.Column getColumn(int anIndex) Returns the individual column at given index.
 - 
getColumnCountpublic int getColumnCount() Returns the number of columns.
 - 
getColumnspublic java.util.List<RMShapeTable.Column> getColumns() Returns a list of columns.
 - 
getRowDividerspublic java.util.List<java.lang.Double> getRowDividers() Returns the list of row dividers.
 - 
getColumnDividerspublic java.util.List<java.lang.Double> getColumnDividers() Returns the list of column dividers.
 - 
getCellCountpublic int getCellCount() Returns the number of cells.
 - 
getCellpublic RMShapeTable.Cell getCell(int anIndex) Returns the individual cell at the given index.
 - 
getCellpublic RMShapeTable.Cell getCell(int aRow, int aColumn) Returns the individual cell at the given row and column.
 - 
getCellspublic RMShapeTable.Cell[][] getCells() Returns the cells.
 - 
getShapespublic java.util.List<RMShape> getShapes(int aRow, int aColumn, int aRowMax, int aColumnMax) Returns the list of shapes from given rows and columns.
 - 
isEmptypublic boolean isEmpty(int aRow, int aColumn, int aRowMax, int aColumnMax)Returns whether given range of cells is empty.
 - 
containspublic boolean contains(int aRow, int aColumn, int aRowMax, int aColumnMax, RMShape aShape)Returns whether given range of cells contains given shape.
 - 
getSpanXpublic static RMShapeTable.Span getSpanX(RMShape aShape) Returns the horizontal span of a given shape.
 - 
getSpanYpublic static RMShapeTable.Span getSpanY(RMShape aShape) Returns the vertical span of a given shape.
 - 
addDoublepublic void addDouble(java.util.List<java.lang.Double> aDoubleList, java.lang.Double aDouble)Adds a double to a list.
 - 
equalspublic boolean equals(double aValue1, double aValue2)Returns whether double values are equal to the precision of the table.
 
- 
 
-