DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class FontStyle

java.lang.Object
  extended by com.cete.dynamicpdf.pageelements.FontStyle

public class FontStyle
extends java.lang.Object

Represents the style of a font.


Field Summary
 Color color
          Represents the font color.
 FontFamily face
          Represents the font face.
 float size
          Represents the font size.
 
Constructor Summary
FontStyle(FontFamily face, float size, Color color)
          Creates a new instance of FontStyle.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Tests equality of font styles.
 int getHashCode()
          Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

face

public FontFamily face
Represents the font face.

See Also:
FontFamily

size

public float size
Represents the font size.


color

public Color color
Represents the font color.

See Also:
Color
Constructor Detail

FontStyle

public FontStyle(FontFamily face,
                 float size,
                 Color color)
Creates a new instance of FontStyle.

Parameters:
face - the family of the font.
size - the size of the font.
color - the color of the font.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Tests equality of font styles.

Overrides:
equals in class java.lang.Object
Parameters:
obj - compare to the current HtmlTextAreaStyle FontStyle
Returns:
true, if the two font styles are equal. Otherwise false.

getHashCode

public int getHashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Returns:
A hash code for the current HtmlTextAreaStyle FontStyle object.

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019
© Copyright 2019, ceTe Software