|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.palo.api.ext.ui.FontDescriptor
public class FontDescriptor
A FontDescriptor is a platfom-independent font description.
| Constructor Summary | |
|---|---|
FontDescriptor()
A default constructor which leaves all fields un-initialized! |
|
FontDescriptor(java.lang.String description)
Creates a new FontDescriptor instance from the given
description string. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of this font |
int |
getSize()
Returns the font size |
boolean |
isBold()
Checks if a bold font should be used |
boolean |
isItalic()
Checks if the font is italic |
boolean |
isUnderlined()
Checks if the font should be underlined |
void |
setBold(boolean b)
Sets the bold flag of this font |
void |
setItalic(boolean b)
Sets the italic flag to indicate if this font should be italic |
void |
setName(java.lang.String name)
Sets the name of this font |
void |
setSize(int size)
Sets the size of this font |
void |
setUnderlined(boolean b)
Sets the underlined flag to indicate that this font should be underlined. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FontDescriptor()
public FontDescriptor(java.lang.String description)
FontDescriptor instance from the given
description string. The desciption string has to be in the form
generated by the FontDescriptor.toString method.
description - a font description (must not be null)| Method Detail |
|---|
public final boolean isBold()
true if a bold font should be used,
false otherwisepublic final void setBold(boolean b)
b - set to true if font should be bold, to
false otherwisepublic final java.lang.String getName()
public final void setName(java.lang.String name)
name - font namepublic final int getSize()
public final void setSize(int size)
size - font sizepublic final boolean isItalic()
true if font is italic, false otherwisepublic final void setItalic(boolean b)
b - set to true if this font should be italic, to
false otherwisepublic final boolean isUnderlined()
true if font is underlined, false
otherwisepublic final void setUnderlined(boolean b)
b - set to true if this font should be underlined, to
false otherwisepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||