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.int
Gets 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.int
Gets the size attribute of the CharacterProperties object.Gets the hLColor attribute of the CharacterProperties object.Get the language code.boolean
isBold()
Gets the bold attribute of the CharacterProperties object.boolean
isHidden()
boolean
isItalic()
Gets the italic attribute of the CharacterProperties object.boolean
Get the right to left property.boolean
isStrike()
Gets the strike attribute of the CharacterProperties object.boolean
Gets the subscript attribute of the CharacterProperties object.boolean
Gets the superscript attribute of the CharacterProperties object.boolean
Gets the underline attribute of the CharacterProperties object.void
setBGColor
(String newValue) Sets the bGColor attribute of the CharacterProperties object.void
setBold
(boolean newValue) Sets the bold attribute of the CharacterProperties object.void
setCharSet
(int newValue) Sets the charSet attribute of the CharacterProperties object.void
Sets the color attribute of the CharacterProperties object.void
Sets the font attribute of the CharacterProperties object.void
setFontSize
(int newValue) Sets the size attribute of the CharacterProperties object.void
setHidden
(boolean newValue) void
setHLColor
(String newValue) Sets the hLColor attribute of the CharacterProperties object.void
setItalic
(boolean newValue) Sets the italic attribute of the CharacterProperties object.void
setLanguage
(String language) Set the language code.void
setRightToLeft
(boolean newValue) Set the right to left property.void
setStrike
(boolean newValue) Sets the strike attribute of the CharacterProperties object.void
setSubscript
(boolean newValue) Sets the subscript attribute of the CharacterProperties object.void
setSuperscript
(boolean newValue) Sets the superscript attribute of the CharacterProperties object.void
setUnderline
(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.
-