Package com.arbortext.epic.table
Interface TableRectangle
- All Known Subinterfaces:
TableMulticell
- All Known Implementing Classes:
TableMulticellImpl,TableRectangleImpl
public interface TableRectangle
Represents a rectangle of cells.
- Since:
- Epic 4.3
-
Method Summary
Modifier and TypeMethodDescriptionvoidcopyRectangle(TableRectangle sourceRectangle) Copies the contents and attributes from one rectangle to another rectangle.getCells()ATableObjectStorecontaining all the cells in the rectangle.Atableobject store containing the cells just above the rectangle.Atableobject store containing the cells just below the rectangle.Atableobject store containing the cells just to the left of the rectangle.Atableobject store containing all the cells on the bottom edge of the rectangle.Atableobject store containing all the cells on the left edge of the rectangle.Atableobject store containing all the cells on the right edge of the rectangle.Atableobject store containing all the cells on the top edge of the rectangle.Atableobject store containing the cells just to the right of the rectangle.intThe height of the rectangle in rows.The lower leftTableCellin the rectangle.The lower rightTableCellin the rectangle.Atableobject store containing the rules on the top edge of the rectangleAtableobject store containing the rules on the bottom edge of the rectangleAtableobject store containing the rules on the left edge of the rectangleAtableobject store containing the rules on the right edge of the rectangleThe upper leftTableCellin the rectangle.The upper rightTableCellin the rectangle.booleangetValid()Trueif the rectangle is valid.intgetWidth()The width of the rectangle in columns.span()Converts the cells in the rectangle to a spanned cell and returns the new multicell.
-
Method Details
-
getCells
TableObjectStore getCells()ATableObjectStorecontaining all the cells in the rectangle. This is static. If theTableRectanglechanges, the contents of theTableObjectStoreremain unchanged. -
getCellsOnTopEdge
TableObjectStore getCellsOnTopEdge()Atableobject store containing all the cells on the top edge of the rectangle. -
getCellsOnRightEdge
TableObjectStore getCellsOnRightEdge()Atableobject store containing all the cells on the right edge of the rectangle. -
getCellsOnBottomEdge
TableObjectStore getCellsOnBottomEdge()Atableobject store containing all the cells on the bottom edge of the rectangle. -
getCellsOnLeftEdge
TableObjectStore getCellsOnLeftEdge()Atableobject store containing all the cells on the left edge of the rectangle. -
getCellsAbove
TableObjectStore getCellsAbove()Atableobject store containing the cells just above the rectangle. -
getCellsRight
TableObjectStore getCellsRight()Atableobject store containing the cells just to the right of the rectangle. -
getCellsBelow
TableObjectStore getCellsBelow()Atableobject store containing the cells just below the rectangle. -
getCellsLeft
TableObjectStore getCellsLeft()Atableobject store containing the cells just to the left of the rectangle. -
getUpperLeft
TableCell getUpperLeft()The upper leftTableCellin the rectangle. -
getLowerLeft
TableCell getLowerLeft()The lower leftTableCellin the rectangle. -
getUpperRight
TableCell getUpperRight()The upper rightTableCellin the rectangle. -
getLowerRight
TableCell getLowerRight()The lower rightTableCellin the rectangle. -
getRulesAbove
TableObjectStore getRulesAbove()Atableobject store containing the rules on the top edge of the rectangle -
getRulesRight
TableObjectStore getRulesRight()Atableobject store containing the rules on the right edge of the rectangle -
getRulesBelow
TableObjectStore getRulesBelow()Atableobject store containing the rules on the bottom edge of the rectangle -
getRulesLeft
TableObjectStore getRulesLeft()Atableobject store containing the rules on the left edge of the rectangle -
getHeight
int getHeight()The height of the rectangle in rows. -
getWidth
int getWidth()The width of the rectangle in columns. -
copyRectangle
Copies the contents and attributes from one rectangle to another rectangle. The two rectangles must be the same size. They do not have to be in the same document or managed by the same table model.- Parameters:
sourceRectangle- The rectangle to be copied into this rectangle. It may be in a different document and it may managed by a different table model.- Throws:
TableException- INVALID_PARAMETER_ERR: Raised if the source rectangle is not the same size as this rectangle.
OPERATION_FAILED_ERR: Raised if the copy can not be done for a reason other than the source rectangle being a different size than this rectangle.
-
getValid
boolean getValid()Trueif the rectangle is valid. A rectangle may become invalid if, for example, one of its corner cells is deleted from the grid. -
span
Converts the cells in the rectangle to a spanned cell and returns the new multicell.- Returns:
- The new multicell created.
- Throws:
TableException- INVALID_SPAN_ERR: Raised if a span can't be created from the two corner cells
-