com.jrefinery.report.targets.table.html
Class HtmlCellStyle

java.lang.Object
  extended bycom.jrefinery.report.targets.table.html.HtmlCellStyle

public class HtmlCellStyle
extends java.lang.Object

The HtmlCellStyle is used to define the style for the generated HTML-CellStyle. This style directly references to an CSS-StyleDefinition.

Author:
Thomas Morgner

Constructor Summary
HtmlCellStyle(FontDefinition font, java.awt.Color fontColor, ElementAlignment verticalAlignment, ElementAlignment horizontalAlignment)
          Creates a new HTML-StyleDefinition.
 
Method Summary
 boolean equals(java.lang.Object o)
          Test, whether an other object equals this HtmlCellStyle.
 FontDefinition getFont()
          Gets the font style for the cell.
 java.awt.Color getFontColor()
          Gets the text color for the cell.
 ElementAlignment getHorizontalAlignment()
          Returns the horizontal element alignment for the content of the cell.
 ElementAlignment getVerticalAlignment()
          Returns the vertical element alignment for the content of the cell.
 int hashCode()
          Gets the hashcode for this style definition.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlCellStyle

public HtmlCellStyle(FontDefinition font,
                     java.awt.Color fontColor,
                     ElementAlignment verticalAlignment,
                     ElementAlignment horizontalAlignment)
Creates a new HTML-StyleDefinition.

Parameters:
font - the font used to display text.
fontColor - the text color.
verticalAlignment - the vertical content alignment.
horizontalAlignment - the horizontal content alignment.
Throws:
java.lang.NullPointerException - if any of the parameters is null.
Method Detail

getFont

public FontDefinition getFont()
Gets the font style for the cell.

Returns:
the defined font.

getFontColor

public java.awt.Color getFontColor()
Gets the text color for the cell.

Returns:
the text color.

getVerticalAlignment

public ElementAlignment getVerticalAlignment()
Returns the vertical element alignment for the content of the cell.

Returns:
the vertical alignment.

getHorizontalAlignment

public ElementAlignment getHorizontalAlignment()
Returns the horizontal element alignment for the content of the cell.

Returns:
the horizontal alignment.

equals

public boolean equals(java.lang.Object o)
Test, whether an other object equals this HtmlCellStyle.

Parameters:
o - the compared object.
Returns:
true, if the given object is a HtmlCellStyle with the same properties defined as this style.

hashCode

public int hashCode()
Gets the hashcode for this style definition.

Returns:
the hashcode.