Class CharacterProperties

java.lang.Object
com.scroogexhtml.converter.CharacterProperties

public final class CharacterProperties extends Object
Stores character formatting properties, such as bold or italic.

The CharacterProperties class is used to save current data of the Writer.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    Copy constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the bGColor attribute of the CharacterProperties object.
    int
    Gets the charSet attribute of the CharacterProperties object.
    Gets the color attribute of the CharacterProperties object.
    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
    Gets the bold attribute of the CharacterProperties object.
    boolean
     
    boolean
    Gets the italic attribute of the CharacterProperties object.
    boolean
    Get the right to left property.
    boolean
    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
    setColor(String newValue)
    Sets the color attribute of the CharacterProperties object.
    void
    setFont(String newValue)
    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.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CharacterProperties

      public CharacterProperties()
      Default constructor.
    • CharacterProperties

      public CharacterProperties(CharacterProperties another)
      Copy constructor.
      Parameters:
      another - the instance to be copied.
  • Method Details

    • setBGColor

      public void setBGColor(String newValue)
      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

      public void setColor(String newValue)
      Sets the color attribute of the CharacterProperties object.
      Parameters:
      newValue - The new color value
    • setFont

      public void setFont(String newValue)
      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

      public void setHLColor(String newValue)
      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

      public String 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

      public String getColor()
      Gets the color attribute of the CharacterProperties object.
      Returns:
      The color value
      See Also:
    • getFont

      public String getFont()
      Gets the font attribute of the CharacterProperties object.
      Returns:
      The font value
      See Also:
    • getHLColor

      public String 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

      public String getLanguage()
      Get the language code.
      Returns:
      language code.
      See Also:
    • setLanguage

      public void setLanguage(String language)
      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.