public class RMShapeTable
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
RMShapeTable.Cell
An inner class that represents a table cell.
|
class |
RMShapeTable.Column
An inner class representing rows.
|
class |
RMShapeTable.Row
An inner class representing rows.
|
static class |
RMShapeTable.Span
A class to represent an interval
|
static class |
RMShapeTable.SpanList
A class to represent a list of spans.
|
Constructor and Description |
---|
RMShapeTable(java.util.List<RMShape> theShapes)
Creates a table from a list of shapes.
|
Modifier and Type | Method and Description |
---|---|
void |
addDouble(java.util.List<java.lang.Double> aDoubleList,
java.lang.Double aDouble)
Adds a double to a list.
|
boolean |
contains(int aRow,
int aColumn,
int aRowMax,
int aColumnMax,
RMShape aShape)
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.
|
RMShapeTable.Cell |
getCell(int anIndex)
Returns the individual cell at the given index.
|
RMShapeTable.Cell |
getCell(int aRow,
int aColumn)
Returns the individual cell at the given row and column.
|
int |
getCellCount()
Returns the number of cells.
|
RMShapeTable.Cell[][] |
getCells()
Returns the cells.
|
RMShapeTable.Column |
getColumn(int anIndex)
Returns the individual column at given index.
|
int |
getColumnCount()
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.Row |
getRow(int anIndex)
Returns the individual row at given index.
|
int |
getRowCount()
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.Span |
getSpanX(RMShape aShape)
Returns the horizontal span of a given shape.
|
static RMShapeTable.Span |
getSpanY(RMShape aShape)
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.
|
public RMShapeTable(java.util.List<RMShape> theShapes)
public java.util.List<RMShape> getShapes()
public int getRowCount()
public RMShapeTable.Row getRow(int anIndex)
public java.util.List<RMShapeTable.Row> getRows()
public RMShapeTable.Column getColumn(int anIndex)
public int getColumnCount()
public java.util.List<RMShapeTable.Column> getColumns()
public java.util.List<java.lang.Double> getRowDividers()
public java.util.List<java.lang.Double> getColumnDividers()
public int getCellCount()
public RMShapeTable.Cell getCell(int anIndex)
public RMShapeTable.Cell getCell(int aRow, int aColumn)
public RMShapeTable.Cell[][] getCells()
public java.util.List<RMShape> getShapes(int aRow, int aColumn, int aRowMax, int aColumnMax)
public boolean isEmpty(int aRow, int aColumn, int aRowMax, int aColumnMax)
public boolean contains(int aRow, int aColumn, int aRowMax, int aColumnMax, RMShape aShape)
public static RMShapeTable.Span getSpanX(RMShape aShape)
public static RMShapeTable.Span getSpanY(RMShape aShape)
public void addDouble(java.util.List<java.lang.Double> aDoubleList, java.lang.Double aDouble)
public boolean equals(double aValue1, double aValue2)