de.betabeans.scroogexhtml
Class CharacterProperties

java.lang.Object
  |
  +--de.betabeans.scroogexhtml.CharacterProperties
All Implemented Interfaces:
java.io.Serializable

public class CharacterProperties
extends java.lang.Object
implements java.io.Serializable

The CharacterProperties class is used to save the current state of the ScroogeXHTMLWriter.

Author:
Michael Justin
See Also:
ScroogeXHTMLWriter, Serialized Form

Field Summary
protected  java.lang.String bgcolor
          the font background color
protected  boolean bold
          flag for bold
protected  java.lang.String color
          the font color
protected  java.lang.String font
          the font name
protected  int fontCharSet
           
protected  java.lang.String hlcolor
          the font highlight color
protected  boolean italic
          flag for italic
protected  int size
          the font size
protected  boolean strike
          flag for strikout
protected  boolean subscript
          flag for subscript
protected  boolean superscript
          flag for superscript
protected  boolean underline
          flag for underline
 
Constructor Summary
CharacterProperties(java.lang.String font, java.lang.String color, int size)
          Create and initialize the instance
 
Method Summary
static java.lang.Object deepCopy(java.lang.Object o)
          create a deep copy of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bold

protected boolean bold
flag for bold

underline

protected boolean underline
flag for underline

italic

protected boolean italic
flag for italic

strike

protected boolean strike
flag for strikout

subscript

protected boolean subscript
flag for subscript

superscript

protected boolean superscript
flag for superscript

font

protected java.lang.String font
the font name

color

protected java.lang.String color
the font color

bgcolor

protected java.lang.String bgcolor
the font background color

hlcolor

protected java.lang.String hlcolor
the font highlight color

size

protected int size
the font size

fontCharSet

protected int fontCharSet
Constructor Detail

CharacterProperties

public CharacterProperties(java.lang.String font,
                           java.lang.String color,
                           int size)
Create and initialize the instance
Parameters:
font - initial font name
color - initial font color
size - initial font size in pt
Method Detail

deepCopy

public static java.lang.Object deepCopy(java.lang.Object o)
                                 throws java.lang.Exception
create a deep copy of the object
Parameters:
o - the object to be copied
Returns:
the deep copy of the object
Throws:
java.lang.Exception - an exception