Package com.scroogexhtml.converter
Class CharacterProperties
java.lang.Object
com.scroogexhtml.converter.CharacterProperties
Stores character formatting properties, such as bold or italic.
The CharacterProperties class is used to save current data of the
Writer.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CharacterProperties(CharacterProperties another) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the bGColor attribute of the CharacterProperties object.intGets the charSet attribute of the CharacterProperties object.getColor()Gets the color attribute of the CharacterProperties object.getFont()Gets the font attribute of the CharacterProperties object.intGets the size attribute of the CharacterProperties object.Gets the hLColor attribute of the CharacterProperties object.Get the language code.booleanisBold()Gets the bold attribute of the CharacterProperties object.booleanisHidden()booleanisItalic()Gets the italic attribute of the CharacterProperties object.booleanGet the right to left property.booleanisStrike()Gets the strike attribute of the CharacterProperties object.booleanGets the subscript attribute of the CharacterProperties object.booleanGets the superscript attribute of the CharacterProperties object.booleanGets the underline attribute of the CharacterProperties object.voidsetBGColor(String newValue) Sets the bGColor attribute of the CharacterProperties object.voidsetBold(boolean newValue) Sets the bold attribute of the CharacterProperties object.voidsetCharSet(int newValue) Sets the charSet attribute of the CharacterProperties object.voidSets the color attribute of the CharacterProperties object.voidSets the font attribute of the CharacterProperties object.voidsetFontSize(int newValue) Sets the size attribute of the CharacterProperties object.voidsetHidden(boolean newValue) voidsetHLColor(String newValue) Sets the hLColor attribute of the CharacterProperties object.voidsetItalic(boolean newValue) Sets the italic attribute of the CharacterProperties object.voidsetLanguage(String language) Set the language code.voidsetRightToLeft(boolean newValue) Set the right to left property.voidsetStrike(boolean newValue) Sets the strike attribute of the CharacterProperties object.voidsetSubscript(boolean newValue) Sets the subscript attribute of the CharacterProperties object.voidsetSuperscript(boolean newValue) Sets the superscript attribute of the CharacterProperties object.voidsetUnderline(boolean newValue) Sets the underline attribute of the CharacterProperties object.
-
Constructor Details
-
CharacterProperties
public CharacterProperties()Default constructor. -
CharacterProperties
Copy constructor.- Parameters:
another- the instance to be copied.
-
-
Method Details
-
setBGColor
Sets the bGColor attribute of the CharacterProperties object.- Parameters:
newValue- The new bGColor value- See Also:
-
setBold
public void setBold(boolean newValue) Sets the bold attribute of the CharacterProperties object.- Parameters:
newValue- The new bold value
-
setCharSet
public void setCharSet(int newValue) Sets the charSet attribute of the CharacterProperties object.- Parameters:
newValue- The new charSet value- See Also:
-
setColor
Sets the color attribute of the CharacterProperties object.- Parameters:
newValue- The new color value
-
setFont
Sets the font attribute of the CharacterProperties object.- Parameters:
newValue- The new font value- See Also:
-
isHidden
public boolean isHidden() -
setHidden
public void setHidden(boolean newValue) -
setHLColor
Sets the hLColor attribute of the CharacterProperties object.- Parameters:
newValue- The new hLColor value- See Also:
-
setItalic
public void setItalic(boolean newValue) Sets the italic attribute of the CharacterProperties object.- Parameters:
newValue- The new italic value
-
setFontSize
public void setFontSize(int newValue) Sets the size attribute of the CharacterProperties object.- Parameters:
newValue- The new size value- See Also:
-
setStrike
public void setStrike(boolean newValue) Sets the strike attribute of the CharacterProperties object.- Parameters:
newValue- The new strike value
-
setSubscript
public void setSubscript(boolean newValue) Sets the subscript attribute of the CharacterProperties object.- Parameters:
newValue- The new subscript value
-
setSuperscript
public void setSuperscript(boolean newValue) Sets the superscript attribute of the CharacterProperties object.- Parameters:
newValue- The new superscript value
-
setUnderline
public void setUnderline(boolean newValue) Sets the underline attribute of the CharacterProperties object.- Parameters:
newValue- The new underline value
-
getBGColor
Gets the bGColor attribute of the CharacterProperties object.- Returns:
- The bGColor value
- See Also:
-
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:
-
getColor
Gets the color attribute of the CharacterProperties object.- Returns:
- The color value
- See Also:
-
getFont
Gets the font attribute of the CharacterProperties object.- Returns:
- The font value
- See Also:
-
getHLColor
Gets the hLColor attribute of the CharacterProperties object.- Returns:
- The hLColor value
- See Also:
-
isItalic
public boolean isItalic()Gets the italic attribute of the CharacterProperties object.- Returns:
- The italic value
-
getFontSize
public int getFontSize()Gets the size attribute of the CharacterProperties object.- Returns:
- The size value
- See Also:
-
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
Get the language code.- Returns:
- language code.
- See Also:
-
setLanguage
Set the language code.- Parameters:
language- language code- See Also:
-
isRightToLeft
public boolean isRightToLeft()Get the right to left property.- Returns:
- boolean true for LTR text.
-
setRightToLeft
public void setRightToLeft(boolean newValue) Set the right to left property.- Parameters:
newValue- boolean The new property value.
-