Package com.inductiveautomation.rm.shape
Class RMShapeTable
java.lang.Object
com.inductiveautomation.rm.shape.RMShapeTable
Defines a region of coordinates along with a list of shapes that occupy that region.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassAn inner class that represents a table cell.classAn inner class representing rows.classAn inner class representing rows.static classA class to represent an intervalstatic classA class to represent a list of spans.
- 
Constructor SummaryConstructorsConstructorDescriptionRMShapeTable(List<RMShape> theShapes) Creates a table from a list of shapes.
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a double to a list.booleanReturns 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.getCell(int anIndex) Returns the individual cell at the given index.getCell(int aRow, int aColumn) Returns the individual cell at the given row and column.intReturns the number of cells.getCells()Returns the cells.getColumn(int anIndex) Returns the individual column at given index.intReturns the number of columns.Returns the list of column dividers.Returns a list of columns.getRow(int anIndex) Returns the individual row at given index.intReturns the number of rows.Returns the list of row dividers.getRows()Returns a list of rows.Returns the list of table shapes.getShapes(int aRow, int aColumn, int aRowMax, int aColumnMax) Returns the list of shapes from given rows and columns.static RMShapeTable.SpanReturns the horizontal span of a given shape.static RMShapeTable.SpanReturns 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 Details- 
RMShapeTableCreates a table from a list of shapes.
 
- 
- 
Method Details- 
getShapesReturns the list of table shapes.
- 
getRowCountpublic int getRowCount()Returns the number of rows.
- 
getRowReturns the individual row at given index.
- 
getRowsReturns a list of rows.
- 
getColumnReturns the individual column at given index.
- 
getColumnCountpublic int getColumnCount()Returns the number of columns.
- 
getColumnsReturns a list of columns.
- 
getRowDividersReturns the list of row dividers.
- 
getColumnDividersReturns the list of column dividers.
- 
getCellCountpublic int getCellCount()Returns the number of cells.
- 
getCellReturns the individual cell at the given index.
- 
getCellReturns the individual cell at the given row and column.
- 
getCellsReturns the cells.
- 
getShapesReturns 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.
- 
containsReturns whether given range of cells contains given shape.
- 
getSpanXReturns the horizontal span of a given shape.
- 
getSpanYReturns the vertical span of a given shape.
- 
addDoubleAdds a double to a list.
- 
equalspublic boolean equals(double aValue1, double aValue2) Returns whether double values are equal to the precision of the table.
 
-