|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrefinery.report.targets.table.TableGridPosition
The TableGridPosition is used to bind the layouted table position to an TableCellData object.
| Constructor Summary | |
TableGridPosition(TableCellData element,
int col,
int row,
int colSpan,
int rowSpan)
Creates a new TableGridPosition with the given element as bulk load. |
|
| Method Summary | |
boolean |
contains(TableGridPosition pos)
Tests, whether a given table grid position is fully contained in the position. |
java.awt.geom.Rectangle2D |
getBounds()
Returns the bounds of the contained element. |
int |
getCol()
Returns the column of this cell. |
int |
getColSpan()
Returns the colspan for the cell. |
TableCellData |
getElement()
Returns the TableCellData element stored in this grid position. |
int |
getRow()
Returns the row of this cell. |
int |
getRowSpan()
Returns the rowspan for the cell. |
boolean |
isInvalidCell()
Tests, wether the layoutmanager declared this cell as invalid. |
boolean |
isOrigin(int x,
int y)
Tests, whether the given coordinates are the origin of this table grid position. |
void |
setInvalidCell(boolean invalidCell)
Defines the invalid cell state. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TableGridPosition(TableCellData element,
int col,
int row,
int colSpan,
int rowSpan)
element - the encapsulated element.col - the x position within the layouted gridrow - the y position within the layouted gridcolSpan - the width in columns within the layouted gridrowSpan - the height in rows within the layouted grid| Method Detail |
public TableCellData getElement()
public int getColSpan()
public int getRowSpan()
public int getCol()
public int getRow()
public java.awt.geom.Rectangle2D getBounds()
public boolean contains(TableGridPosition pos)
pos - the compared position
public boolean isOrigin(int x,
int y)
x - the compared columny - the compated row
public java.lang.String toString()
toString method returns a string that
"textually represents" this object.
public boolean isInvalidCell()
public void setInvalidCell(boolean invalidCell)
invalidCell - true, if this cell should be invalid, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||