org.jfree.workbook
Class FontStyleModifier

java.lang.Object
  |
  +--org.jfree.workbook.FontStyleModifier
All Implemented Interfaces:
StyleModifier

public class FontStyleModifier
extends java.lang.Object
implements StyleModifier

A style modifier that changes the font for a style, but leaves all other settings unchanged.


Field Summary
protected  FontStyle font
          The new font.
 
Constructor Summary
FontStyleModifier(FontStyle font)
          Standard constructor.
 
Method Summary
 Style getModifiedStyle(Style style)
          Returns a new style with the same settings as the style passed in, except with a different font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

font

protected FontStyle font
The new font.

Constructor Detail

FontStyleModifier

public FontStyleModifier(FontStyle font)
Standard constructor.

Parameters:
font - The new font.
Method Detail

getModifiedStyle

public Style getModifiedStyle(Style style)
Returns a new style with the same settings as the style passed in, except with a different font.

Specified by:
getModifiedStyle in interface StyleModifier
Parameters:
style - The style to be modified.
Returns:
A new style with the same settings as the style passed in, except with a different font.