net.sf.mpxj.mpp
Class TableFontStyle

java.lang.Object
  extended by net.sf.mpxj.mpp.FontStyle
      extended by net.sf.mpxj.mpp.TableFontStyle

public class TableFontStyle
extends FontStyle

This class builds on the font style described by a FontStyle instance to apply a style to a column, row, or individual cell of a table.


Constructor Summary
TableFontStyle(int rowUniqueID, FieldType fieldType, FontBase fontBase, boolean italic, boolean bold, boolean underline, boolean strikethrough, Color color, Color backgroundColor, BackgroundPattern backgroundPattern, boolean italicChanged, boolean boldChanged, boolean underlineChanged, boolean strikethroughChanged, boolean colorChanged, boolean fontChanged, boolean backgroundColorChanged, boolean backgroundPatternChanged)
          Constructor.
 
Method Summary
 boolean getBackgroundColorChanged()
          Retrieve the background color changed flag.
 boolean getBackgroundPatternChanged()
          Retrieve the background pattern changed flag.
 boolean getBoldChanged()
          Retrieve the bold changed flag.
 boolean getColorChanged()
          Retrieve the color changed flag.
 FieldType getFieldType()
          Retrieve the field type of the column to which this style applies.
 boolean getFontChanged()
          Retrieve the font changed flag.
 boolean getItalicChanged()
          Retrieve the italic change flag.
 int getRowUniqueID()
          Retrieves the unique ID of the entity shown on the row affected by this style.
 boolean getStrikethroughChanged()
          Retrieve the strikethrough changed flag.
 boolean getUnderlineChanged()
          Retrieve the underline changed flag.
 String toString()
          
 
Methods inherited from class net.sf.mpxj.mpp.FontStyle
getBackgroundColor, getBackgroundPattern, getBold, getColor, getFontBase, getItalic, getStrikethrough, getUnderline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableFontStyle

public TableFontStyle(int rowUniqueID,
                      FieldType fieldType,
                      FontBase fontBase,
                      boolean italic,
                      boolean bold,
                      boolean underline,
                      boolean strikethrough,
                      Color color,
                      Color backgroundColor,
                      BackgroundPattern backgroundPattern,
                      boolean italicChanged,
                      boolean boldChanged,
                      boolean underlineChanged,
                      boolean strikethroughChanged,
                      boolean colorChanged,
                      boolean fontChanged,
                      boolean backgroundColorChanged,
                      boolean backgroundPatternChanged)
Constructor.

Parameters:
rowUniqueID - unique ID of the entity shown on the row
fieldType - field type of the table column
fontBase - font base
italic - italic flag
bold - bold flag
underline - underline flag
strikethrough - strikethrough flag
color - color
backgroundColor - background color
backgroundPattern - background pattern
italicChanged - italic changed flag
boldChanged - bold changed flag
underlineChanged - underline changed flag
strikethroughChanged - strikethrough changed flag
colorChanged - color changed flag
fontChanged - font changed flag
backgroundColorChanged - background color changed
backgroundPatternChanged - background pattern changed
Method Detail

getRowUniqueID

public int getRowUniqueID()
Retrieves the unique ID of the entity shown on the row affected by this style. This method will return -1 if the style applies to all rows.

Returns:
row unique ID

getFieldType

public FieldType getFieldType()
Retrieve the field type of the column to which this style applies.

Returns:
field type

getBoldChanged

public boolean getBoldChanged()
Retrieve the bold changed flag.

Returns:
boolean flag

getColorChanged

public boolean getColorChanged()
Retrieve the color changed flag.

Returns:
boolean flag

getItalicChanged

public boolean getItalicChanged()
Retrieve the italic change flag.

Returns:
boolean flag

getUnderlineChanged

public boolean getUnderlineChanged()
Retrieve the underline changed flag.

Returns:
boolean flag

getStrikethroughChanged

public boolean getStrikethroughChanged()
Retrieve the strikethrough changed flag.

Returns:
boolean flag

getFontChanged

public boolean getFontChanged()
Retrieve the font changed flag.

Returns:
boolean flag

getBackgroundColorChanged

public boolean getBackgroundColorChanged()
Retrieve the background color changed flag.

Returns:
boolean flag

getBackgroundPatternChanged

public boolean getBackgroundPatternChanged()
Retrieve the background pattern changed flag.

Returns:
boolean flag

toString

public String toString()

Overrides:
toString in class FontStyle


Copyright © 2012. All Rights Reserved.