com.jrefinery.workbook
Class StyleFont

java.lang.Object
  |
  +--com.jrefinery.workbook.StyleFont

public class StyleFont
extends java.lang.Object

Represents a font within a style.


Field Summary
protected  boolean bold
          Bold.
protected  boolean italic
          Italic.
protected  java.lang.String name
          The font name.
protected  int size
          The size.
protected  boolean strikethrough
          Strikethrough.
protected  boolean underline
          Underline.
 
Constructor Summary
StyleFont(java.lang.String name)
          Standard constructor: constructs a font (12pt) with the given name.
StyleFont(java.lang.String name, int size)
          Standard constructor: constructs a font with the given name and point size.
StyleFont(java.lang.String name, int size, boolean bold, boolean italic, boolean underline, boolean strikethrough)
          Full constructor: constructs a font with all attributes as specified.
 
Method Summary
 void writeStyleFont(java.io.PrintStream out, java.lang.String indent)
          Writes a style font element to the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The font name.

size

protected int size
The size.

bold

protected boolean bold
Bold.

italic

protected boolean italic
Italic.

underline

protected boolean underline
Underline.

strikethrough

protected boolean strikethrough
Strikethrough.
Constructor Detail

StyleFont

public StyleFont(java.lang.String name)
Standard constructor: constructs a font (12pt) with the given name.
Parameters:
name - The font name (not validated).

StyleFont

public StyleFont(java.lang.String name,
                 int size)
Standard constructor: constructs a font with the given name and point size.
Parameters:
name - The font name (not validated).
size - The point size.

StyleFont

public StyleFont(java.lang.String name,
                 int size,
                 boolean bold,
                 boolean italic,
                 boolean underline,
                 boolean strikethrough)
Full constructor: constructs a font with all attributes as specified.
Parameters:
name - The font name (not validated).
size - The point size.
bold - Flag for bold attribute.
italic - Flag for italic attribute.
underline - Flag for underline attribute.
strikethrough - Flag for strikethrough attribute.
Method Detail

writeStyleFont

public void writeStyleFont(java.io.PrintStream out,
                           java.lang.String indent)
Writes a style font element to the stream.
Parameters:
out - The stream for output.
indent - The indentation.