|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.targets.table.TableCellData
com.jrefinery.report.targets.table.TableCellBackground
Encapsulates all TableCellBackground informations, such as borders and background color.
The TableCellBackground contains the format information for the table cells.
Background information is used to format the tablecells in the TableWriter
.
CellBackgrounds can be shared for multiple cells.
Constructor Summary | |
TableCellBackground(java.awt.geom.Rectangle2D outerBounds,
java.awt.Color color)
Creates a table cell background with the given bounds, no borders and the specified color as background. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Tests this object for equality with another object. |
float |
getBorderSizeBottom()
Returns the line width of the bottom border. |
float |
getBorderSizeLeft()
Returns the line width of the left border. |
float |
getBorderSizeRight()
Returns the line width of the right border. |
float |
getBorderSizeTop()
Returns the line width of the top border. |
java.awt.Color |
getColor()
Gets the background color for this cell, or null if this cell has no background. |
java.awt.Color |
getColorBottom()
Returns the line color of the bottom border. |
java.awt.Color |
getColorLeft()
Returns the line color of the left border. |
java.awt.Color |
getColorRight()
Returns the line color of the right border. |
java.awt.Color |
getColorTop()
Returns the line color of the top border. |
int |
hashCode()
Returns a hash code for this object. |
boolean |
isBackground()
Returns true , as this is a cell background definition. |
TableCellBackground |
merge(TableCellBackground background)
Merges this background with the given background and returns the result. |
void |
setBorderBottom(java.awt.Color color,
float size)
Defines the bottom border. |
void |
setBorderLeft(java.awt.Color color,
float size)
Defines the left border. |
void |
setBorderRight(java.awt.Color color,
float size)
Defines the right border. |
void |
setBorderTop(java.awt.Color color,
float size)
Defines the top border. |
java.lang.String |
toString()
Returns an String representation of this table cell background. |
Methods inherited from class com.jrefinery.report.targets.table.TableCellData |
getBounds |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TableCellBackground(java.awt.geom.Rectangle2D outerBounds, java.awt.Color color)
null
, no background is set.
outerBounds
- the background cell sizecolor
- the background color, null
for no background.Method Detail |
public boolean isBackground()
true
, as this is a cell background definition.
isBackground
in class TableCellData
TableCellData.isBackground()
public java.awt.Color getColor()
null
if this cell has no background.
null
.public void setBorderTop(java.awt.Color color, float size)
color
- the color of the top border.size
- the line width of the top border.public void setBorderLeft(java.awt.Color color, float size)
color
- the color of the left border.size
- the line width of the left border.public void setBorderBottom(java.awt.Color color, float size)
color
- the color of the bottom border.size
- the line width of the bottom border.public void setBorderRight(java.awt.Color color, float size)
color
- the color of the right border.size
- the line width of the right border.public float getBorderSizeTop()
public float getBorderSizeBottom()
public float getBorderSizeLeft()
public float getBorderSizeRight()
public java.awt.Color getColorTop()
public java.awt.Color getColorLeft()
public java.awt.Color getColorBottom()
public java.awt.Color getColorRight()
public TableCellBackground merge(TableCellBackground background)
background
- the other background cell
public java.lang.String toString()
public boolean equals(java.lang.Object o)
o
- the other object.
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |