net.sf.doolin.gui.style
Class FontStyle

java.lang.Object
  extended by net.sf.doolin.gui.style.FontStyle
All Implemented Interfaces:
Style
Direct Known Subclasses:
FontTableStyle

public class FontStyle
extends Object
implements Style

Style that updates the font used for the component.

Author:
Damien Coraboeuf

Constructor Summary
FontStyle()
           
 
Method Summary
 void apply(Component component)
          Applies this style to this component
 Color getFontColor()
          Returns the color for the font
 boolean isBold()
          Checks if is the font must be bold.
 boolean isItalic()
          Checks if is the font must be italic.
 boolean isStrikedThrough()
          Returns the strikedThrough property.
 void setBold(boolean bold)
          Sets if the font is bold.
 void setFontColor(Color fontColor)
          Sets the color for the font
 void setItalic(boolean italic)
          Sets if the font is italic.
 void setStrikedThrough(boolean strikedThrough)
          Sets the strikedThrough property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontStyle

public FontStyle()
Method Detail

apply

public void apply(Component component)
Description copied from interface: Style
Applies this style to this component

Specified by:
apply in interface Style
Parameters:
component - Component to apply the style to

isStrikedThrough

public boolean isStrikedThrough()
Returns the strikedThrough property.

Returns:
strikedThrough property.

setStrikedThrough

public void setStrikedThrough(boolean strikedThrough)
Sets the strikedThrough property.

Parameters:
strikedThrough -

isBold

public boolean isBold()
Checks if is the font must be bold.

Returns:
true, if is the font is bold

setBold

public void setBold(boolean bold)
Sets if the font is bold.

Parameters:
bold - true if the font is bold

isItalic

public boolean isItalic()
Checks if is the font must be italic.

Returns:
true, if is the font is italic

setItalic

public void setItalic(boolean italic)
Sets if the font is italic.

Parameters:
italic - true if the font is italic

getFontColor

public Color getFontColor()
Returns the color for the font

Returns:
Color

setFontColor

public void setFontColor(Color fontColor)
Sets the color for the font

Parameters:
fontColor - Color


Copyright © 2011. All Rights Reserved.