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 Summary
Nested ClassesModifier and TypeClassDescriptionclass
An inner class that represents a table cell.class
An inner class representing rows.class
An inner class representing rows.static class
A class to represent an intervalstatic class
A class to represent a list of spans. -
Constructor Summary
ConstructorsConstructorDescriptionRMShapeTable
(List<RMShape> theShapes) Creates a table from a list of shapes. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a double to a list.boolean
Returns whether given range of cells contains given shape.boolean
equals
(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.int
Returns the number of cells.getCells()
Returns the cells.getColumn
(int anIndex) Returns the individual column at given index.int
Returns 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.int
Returns 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.Span
Returns the horizontal span of a given shape.static RMShapeTable.Span
Returns the vertical span of a given shape.boolean
isEmpty
(int aRow, int aColumn, int aRowMax, int aColumnMax) Returns whether given range of cells is empty.
-
Constructor Details
-
RMShapeTable
Creates a table from a list of shapes.
-
-
Method Details
-
getShapes
Returns the list of table shapes. -
getRowCount
public int getRowCount()Returns the number of rows. -
getRow
Returns the individual row at given index. -
getRows
Returns a list of rows. -
getColumn
Returns the individual column at given index. -
getColumnCount
public int getColumnCount()Returns the number of columns. -
getColumns
Returns a list of columns. -
getRowDividers
Returns the list of row dividers. -
getColumnDividers
Returns the list of column dividers. -
getCellCount
public int getCellCount()Returns the number of cells. -
getCell
Returns the individual cell at the given index. -
getCell
Returns the individual cell at the given row and column. -
getCells
Returns the cells. -
getShapes
Returns the list of shapes from given rows and columns. -
isEmpty
public boolean isEmpty(int aRow, int aColumn, int aRowMax, int aColumnMax) Returns whether given range of cells is empty. -
contains
Returns whether given range of cells contains given shape. -
getSpanX
Returns the horizontal span of a given shape. -
getSpanY
Returns the vertical span of a given shape. -
addDouble
Adds a double to a list. -
equals
public boolean equals(double aValue1, double aValue2) Returns whether double values are equal to the precision of the table.
-