net.sf.mpxj.mpp
Class FontStyle

java.lang.Object
  extended by net.sf.mpxj.mpp.FontStyle
Direct Known Subclasses:
TableFontStyle

public class FontStyle
extends Object

This class builds on the font described by a FontBase instance and add attributes for color, bold, italic and underline.


Constructor Summary
FontStyle(FontBase fontBase, boolean italic, boolean bold, boolean underline, boolean strikethrough, Color color, Color backgroundColor, BackgroundPattern backgroundPattern)
          Constructor.
 
Method Summary
 Color getBackgroundColor()
          Retrieve the background color.
 BackgroundPattern getBackgroundPattern()
          Retrieve the background pattern.
 boolean getBold()
          Retrieve the bold flag.
 Color getColor()
          Retrieve the font color.
 FontBase getFontBase()
          Retrieve the font base instance.
 boolean getItalic()
          Retrieve the italic flag.
 boolean getStrikethrough()
          Retrieve the strikethrough flag.
 boolean getUnderline()
          Retrieve the underline flag.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FontStyle

public FontStyle(FontBase fontBase,
                 boolean italic,
                 boolean bold,
                 boolean underline,
                 boolean strikethrough,
                 Color color,
                 Color backgroundColor,
                 BackgroundPattern backgroundPattern)
Constructor.

Parameters:
fontBase - font base instance
italic - italic flag
bold - bold flag
underline - underline flag
strikethrough - strikethrough flag
color - color type
backgroundColor - background color
backgroundPattern - background pattern
Method Detail

getFontBase

public FontBase getFontBase()
Retrieve the font base instance.

Returns:
font base instance

getBold

public boolean getBold()
Retrieve the bold flag.

Returns:
bold flag

getColor

public Color getColor()
Retrieve the font color.

Returns:
font color

getItalic

public boolean getItalic()
Retrieve the italic flag.

Returns:
italic flag

getUnderline

public boolean getUnderline()
Retrieve the underline flag.

Returns:
underline flag

getStrikethrough

public boolean getStrikethrough()
Retrieve the strikethrough flag.

Returns:
strikethrough flag

getBackgroundColor

public Color getBackgroundColor()
Retrieve the background color.

Returns:
background color

getBackgroundPattern

public BackgroundPattern getBackgroundPattern()
Retrieve the background pattern.

Returns:
background pattern

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.