Class CPDFTextAttribute

java.lang.Object
com.compdfkit.core.annotation.CPDFTextAttribute

public class CPDFTextAttribute extends Object
Text attribute helper
  • Constructor Details

    • CPDFTextAttribute

      public CPDFTextAttribute(String fontName, float fontSize, int color)
  • Method Details

    • getFontName

      public String getFontName()
      Gets font name.
      Returns:
      Returns font name.
    • getFontSize

      public float getFontSize()
      Gets font size.
      Returns:
      Returns font size.
    • getColor

      public int getColor()
      Gets font color.
      Returns:
      Returns font color.
    • setFontName

      public void setFontName(String fontName)
      Sets font name.
      Parameters:
      fontName - Font name.
    • setFontSize

      public void setFontSize(float fontSize)
      Sets font size.
      Parameters:
      fontSize - Font size.
    • setColor

      public void setColor(int color)
      Sets font color.
      Parameters:
      color - Font color.
    • clone

      public CPDFTextAttribute clone()
      Clone current object.
      Returns:
      Returns current object.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object