de.betabeans.scroogexhtml.converter
Class CharacterProperties

java.lang.Object
  extended by de.betabeans.scroogexhtml.converter.CharacterProperties
All Implemented Interfaces:
java.io.Serializable

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

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

Author:
Michael Justin
See Also:
Serialized Form

Constructor Summary
CharacterProperties()
           
 
Method Summary
 CharacterProperties cloneAll()
          Create a deep copy of the given object.
 void copyFrom(CharacterProperties acp)
          Copy all character properties from an existing instance.
 java.lang.String getBGColor()
          Gets the bGColor attribute of the CharacterProperties object.
 int getCharSet()
          Gets the charSet attribute of the CharacterProperties object.
 java.lang.String getColor()
          Gets the color attribute of the CharacterProperties object.
 java.lang.String getFont()
          Gets the font attribute of the CharacterProperties object.
 java.lang.String getHLColor()
          Gets the hLColor attribute of the CharacterProperties object.
 java.lang.String getLanguage()
          Get the language code.
 int getSize()
          Gets the size attribute of the CharacterProperties object.
 boolean isBold()
          Gets the bold attribute of the CharacterProperties object.
 boolean isItalic()
          Gets the italic attribute of the CharacterProperties object.
 boolean isRightToLeft()
          Get the right to left property.
 boolean isStrike()
          Gets the strike attribute of the CharacterProperties object.
 boolean isSubscript()
          Gets the subscript attribute of the CharacterProperties object.
 boolean isSuperscript()
          Gets the superscript attribute of the CharacterProperties object.
 boolean isUnderline()
          Gets the underline attribute of the CharacterProperties object.
 void setBGColor(java.lang.String c)
          Sets the bGColor attribute of the CharacterProperties object.
 void setBold(boolean b)
          Sets the bold attribute of the CharacterProperties object.
 void setCharSet(int c)
          Sets the charSet attribute of the CharacterProperties object.
 void setColor(java.lang.String c)
          Sets the color attribute of the CharacterProperties object.
 void setFont(java.lang.String f)
          Sets the font attribute of the CharacterProperties object.
 void setHLColor(java.lang.String c)
          Sets the hLColor attribute of the CharacterProperties object.
 void setItalic(boolean b)
          Sets the italic attribute of the CharacterProperties object.
 void setLanguage(java.lang.String language)
          Set the language code.
 void setRightToLeft(boolean newValue)
          Set the right to left property.
 void setSize(int s)
          Sets the size attribute of the CharacterProperties object.
 void setStrike(boolean b)
          Sets the strike attribute of the CharacterProperties object.
 void setSubscript(boolean b)
          Sets the subscript attribute of the CharacterProperties object.
 void setSuperscript(boolean b)
          Sets the superscript attribute of the CharacterProperties object.
 void setUnderline(boolean ul)
          Sets the underline attribute of the CharacterProperties object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterProperties

public CharacterProperties()
Method Detail

setBGColor

public void setBGColor(java.lang.String c)
Sets the bGColor attribute of the CharacterProperties object.

Parameters:
c - The new bGColor value
See Also:
getBGColor()

setBold

public void setBold(boolean b)
Sets the bold attribute of the CharacterProperties object.

Parameters:
b - The new bold value

setCharSet

public void setCharSet(int c)
Sets the charSet attribute of the CharacterProperties object.

Parameters:
c - The new charSet value
See Also:
getCharSet()

setColor

public void setColor(java.lang.String c)
Sets the color attribute of the CharacterProperties object.

Parameters:
c - The new color value

setFont

public void setFont(java.lang.String f)
Sets the font attribute of the CharacterProperties object.

Parameters:
f - The new font value
See Also:
getFont()

setHLColor

public void setHLColor(java.lang.String c)
Sets the hLColor attribute of the CharacterProperties object.

Parameters:
c - The new hLColor value
See Also:
getHLColor()

setItalic

public void setItalic(boolean b)
Sets the italic attribute of the CharacterProperties object.

Parameters:
b - The new italic value

setSize

public void setSize(int s)
Sets the size attribute of the CharacterProperties object.

Parameters:
s - The new size value
See Also:
getSize()

setStrike

public void setStrike(boolean b)
Sets the strike attribute of the CharacterProperties object.

Parameters:
b - The new strike value

setSubscript

public void setSubscript(boolean b)
Sets the subscript attribute of the CharacterProperties object.

Parameters:
b - The new subscript value

setSuperscript

public void setSuperscript(boolean b)
Sets the superscript attribute of the CharacterProperties object.

Parameters:
b - The new superscript value

setUnderline

public void setUnderline(boolean ul)
Sets the underline attribute of the CharacterProperties object.

Parameters:
ul - The new underline value

getBGColor

public java.lang.String getBGColor()
Gets the bGColor attribute of the CharacterProperties object.

Returns:
The bGColor value
See Also:
setBGColor(java.lang.String)

isBold

public boolean isBold()
Gets the bold attribute of the CharacterProperties object.

Returns:
The bold value

getCharSet

public int getCharSet()
Gets the charSet attribute of the CharacterProperties object.

Returns:
The charSet value
See Also:
setCharSet(int)

getColor

public java.lang.String getColor()
Gets the color attribute of the CharacterProperties object.

Returns:
The color value
See Also:
setColor(java.lang.String)

getFont

public java.lang.String getFont()
Gets the font attribute of the CharacterProperties object.

Returns:
The font value
See Also:
setFont(java.lang.String)

getHLColor

public java.lang.String getHLColor()
Gets the hLColor attribute of the CharacterProperties object.

Returns:
The hLColor value
See Also:
setHLColor(java.lang.String)

isItalic

public boolean isItalic()
Gets the italic attribute of the CharacterProperties object.

Returns:
The italic value

getSize

public int getSize()
Gets the size attribute of the CharacterProperties object.

Returns:
The size value
See Also:
setSize(int)

isStrike

public boolean isStrike()
Gets the strike attribute of the CharacterProperties object.

Returns:
The strike value

isSubscript

public boolean isSubscript()
Gets the subscript attribute of the CharacterProperties object.

Returns:
The subscript value

isSuperscript

public boolean isSuperscript()
Gets the superscript attribute of the CharacterProperties object.

Returns:
The superscript value

isUnderline

public boolean isUnderline()
Gets the underline attribute of the CharacterProperties object.

Returns:
The underline value

getLanguage

public java.lang.String getLanguage()
Get the language code.

Returns:
language code.
See Also:
setLanguage(java.lang.String)

setLanguage

public void setLanguage(java.lang.String language)
Set the language code.

Parameters:
language - language code
See Also:
getLanguage()

isRightToLeft

public boolean isRightToLeft()
Get the right to left property.

Returns:
boolean true if it is LTR text.

setRightToLeft

public void setRightToLeft(boolean newValue)
Set the right to left property.

Parameters:
newValue - boolean The new property value.

copyFrom

public void copyFrom(CharacterProperties acp)
Copy all character properties from an existing instance.

Parameters:
acp - the source object which properties have to be copied.

cloneAll

public CharacterProperties cloneAll()
Create a deep copy of the given object.

Returns:
new CharacterProperties instance with identical properties


Copyright (c) 1998-2006 BetaSoft Michael Justin. All Rights Reserved.