org.ujac.print
Class DocumentFont

java.lang.Object
  extended by org.ujac.print.DocumentFont

public class DocumentFont
extends Object

Name: DocumentFont
Description: A class holding font informations.

Author:
lauerc

Constructor Summary
DocumentFont(com.lowagie.text.Font font, String family, String encoding, float size, int style, Color color)
          Constructs a DocumentFont instance with specific attributes.
DocumentFont(com.lowagie.text.Font font, String family, String encoding, float size, int style, float textRise, Color color)
          Constructs a DocumentFont instance with specific attributes.
 
Method Summary
 boolean equals(Object obj)
           
 Color getColor()
          Getter method for the the property color.
 String getEncoding()
          Getter method for the the property encoding.
 String getFamily()
          Getter method for the the property family.
 com.lowagie.text.Font getFont()
          Getter method for the the property font.
 float getSize()
          Getter method for the the property size.
 int getStyle()
          Getter method for the the property style.
 float getTextRise()
          Getter method for the the property textRise.
 int hashCode()
           
 boolean isBold()
          Checks if the font is declared as bold.
 boolean isItalic()
          Checks if the font is declared as italic.
 boolean isStrikethru()
          Checks if the font is declared as strikethru.
 boolean isUnderline()
          Checks if the font is declared as underline.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentFont

public DocumentFont(com.lowagie.text.Font font,
                    String family,
                    String encoding,
                    float size,
                    int style,
                    Color color)
Constructs a DocumentFont instance with specific attributes.

Parameters:
font - The font itself.
family - The font family.
encoding - The font encoding.
size - The font size.
style - The font style.
color - The font color.

DocumentFont

public DocumentFont(com.lowagie.text.Font font,
                    String family,
                    String encoding,
                    float size,
                    int style,
                    float textRise,
                    Color color)
Constructs a DocumentFont instance with specific attributes.

Parameters:
font - The font itself.
family - The font family.
encoding - The font encoding.
size - The font size.
style - The font style.
textRise - The text displacement relative to the baseline. Positive values rise the text, negative values lower the text.
color - The font color.
Method Detail

getColor

public Color getColor()
Getter method for the the property color.

Returns:
The current value of property color.

getFamily

public String getFamily()
Getter method for the the property family.

Returns:
The current value of property family.

getEncoding

public String getEncoding()
Getter method for the the property encoding.

Returns:
The current value of property encoding.

getFont

public com.lowagie.text.Font getFont()
Getter method for the the property font.

Returns:
The current value of property font.

getSize

public float getSize()
Getter method for the the property size.

Returns:
The current value of property size.

getStyle

public int getStyle()
Getter method for the the property style.

Returns:
The current value of property style.

getTextRise

public float getTextRise()
Getter method for the the property textRise.

Returns:
The current value of property textRise.

isBold

public boolean isBold()
Checks if the font is declared as bold.

Returns:
true if the font is declared as bold, else false.

isItalic

public boolean isItalic()
Checks if the font is declared as italic.

Returns:
true if the font is declared as italic, else false.

isUnderline

public boolean isUnderline()
Checks if the font is declared as underline.

Returns:
true if the font is declared as underline, else false.

isStrikethru

public boolean isStrikethru()
Checks if the font is declared as strikethru.

Returns:
true if the font is declared as strikethru, else false.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.