com.jrefinery.workbook
Class StyleFontModifier

java.lang.Object
  |
  +--com.jrefinery.workbook.StyleFontModifier
All Implemented Interfaces:
StyleModifier

public class StyleFontModifier
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  StyleFont font
          The new font.
 
Constructor Summary
StyleFontModifier(StyleFont 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 StyleFont font
The new font.
Constructor Detail

StyleFontModifier

public StyleFontModifier(StyleFont 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.