LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.misc
Class LyFont

java.lang.Object
  extended by leon.misc.LyFont

public final class LyFont
extends java.lang.Object

The LyFont class is used encapsulate fonts used by Leonardi applications.


Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyFont(java.lang.String fontString)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getFamily()
          Gets font family name.
 java.lang.String getFontName()
          Gets font name.
 int getSize()
          Gets the font size.
 java.lang.String getValue()
           
 int hashCode()
           
 boolean isBold()
          Checks if the font is bold or not.
 boolean isItalic()
          Checks if the font is italic or not.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyFont

public LyFont(java.lang.String fontString)
Constructor. Creates a font from a resource string.

Parameters:
fontString - the String representation of the font. The format of this string is: fontName[-(bold|italic)][-(bold|italic)][-size]
For example:
  • Courier-bold-10
  • Arial-bold-italic whitch is equivalent to Arial-italic-bold
  • Times

Default name is "Courier", default size is "10".

Method Detail

getFontName

public java.lang.String getFontName()
Gets font name.

Returns:
the font name

getFamily

public java.lang.String getFamily()
Gets font family name.

Returns:
the font family name

getSize

public int getSize()
Gets the font size.

Returns:
the font size

isBold

public boolean isBold()
Checks if the font is bold or not.

Returns:
true is the font is bold, false otherwise

isItalic

public boolean isItalic()
Checks if the font is italic or not.

Returns:
true is the font is italic, false otherwise

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getValue

public java.lang.String getValue()

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com