com.jrefinery.report.targets.table.excel
Class ExcelDataCellStyle

java.lang.Object
  |
  +--com.jrefinery.report.targets.table.excel.ExcelDataCellStyle

public class ExcelDataCellStyle
extends java.lang.Object

The ExcelDataCellStyle is used to collect style information for an excel cell. This information is later transformed into a excel HSSFCellStyle using the ExcelCellStyleFactory.

Author:
Heiko Evermann.

Constructor Summary
ExcelDataCellStyle()
          DefaultConstructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getDataStyle()
          Returns the defined cell data style.
 FontDefinition getFontDefinition()
          Gets the font style for the text in the cell.
 ElementAlignment getHorizontalAlignment()
          Gets the horizontal alignment for the cell.
 java.awt.Color getTextColor()
          Returns the text color for the cell.
 ElementAlignment getVerticalAlignment()
          Gets the vertical alignment for the cell.
 int hashCode()
          Returns a hash code value for the object.
 boolean isWrapText()
          Gets the word wrap setting for the cell.
 void setDataStyle(java.lang.String dataStyle)
          Defines the cell data style.
 void setFontDefinition(FontDefinition fontDefinition)
          Defines the font style for the text in the cell.
 void setHorizontalAlignment(ElementAlignment horizontalAlignment)
          Sets the horizontal alignment for the cell.
 void setTextColor(java.awt.Color textColor)
          Defines the text color for the cell.
 void setVerticalAlignment(ElementAlignment verticalAlignment)
          Defines the vertical alignment for the cell.
 void setWrapText(boolean wrapText)
          Defines the word wrap setting for the cell.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExcelDataCellStyle

public ExcelDataCellStyle()
DefaultConstructor.

Method Detail

isWrapText

public boolean isWrapText()
Gets the word wrap setting for the cell.

Returns:
true, if wordwrapping is enabled, false otherwise.

setWrapText

public void setWrapText(boolean wrapText)
Defines the word wrap setting for the cell.

Parameters:
wrapText - set to true, if wordwrapping is enabled, false otherwise.

getHorizontalAlignment

public ElementAlignment getHorizontalAlignment()
Gets the horizontal alignment for the cell.

Returns:
the horizontal alignment for the cell content.

setHorizontalAlignment

public void setHorizontalAlignment(ElementAlignment horizontalAlignment)
Sets the horizontal alignment for the cell.

Parameters:
horizontalAlignment - the horizontal alignment for the cell content.

getVerticalAlignment

public ElementAlignment getVerticalAlignment()
Gets the vertical alignment for the cell.

Returns:
the vertical alignment for the cell content.

setVerticalAlignment

public void setVerticalAlignment(ElementAlignment verticalAlignment)
Defines the vertical alignment for the cell.

Parameters:
verticalAlignment - the vertical alignment for the cell content.

getFontDefinition

public FontDefinition getFontDefinition()
Gets the font style for the text in the cell.

Returns:
the font definition for the text in the cell.

setFontDefinition

public void setFontDefinition(FontDefinition fontDefinition)
Defines the font style for the text in the cell.

Parameters:
fontDefinition - the font definition for the text in the cell.

getTextColor

public java.awt.Color getTextColor()
Returns the text color for the cell.

Returns:
the text color.

setTextColor

public void setTextColor(java.awt.Color textColor)
Defines the text color for the cell.

Parameters:
textColor - the text color.

getDataStyle

public java.lang.String getDataStyle()
Returns the defined cell data style.

Returns:
the cell data style.

setDataStyle

public void setDataStyle(java.lang.String dataStyle)
Defines the cell data style.

Parameters:
dataStyle - the cell data style.

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.