|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.graphics.Font
Font Class.
Field Summary | |
static int |
BOLD
The bold style constant. |
static int |
ITALIC
The italic style constant. |
static int |
OVERLINE
The overline style constant. |
static int |
PLAIN
The plain style constant. |
static int |
STRIKEOUT
The strikeout style constant. |
static int |
UNDERLINE
The underline style constant. |
Constructor Summary | |
Font(java.lang.String name,
int style,
int size)
Constructs new Font object. |
Method Summary | |
Font |
deriveFont(int style)
Constructs new Font object using this font and specified style. |
void |
dispose()
Disposes the object. |
boolean |
equals(java.lang.Object obj)
|
protected void |
finalize()
|
java.lang.String |
getName()
Returns font name. |
int |
getSize()
Returns font size. |
int |
getStyle()
Returns font style. |
int |
hashCode()
|
boolean |
isBold()
Returns true if font is bold. |
boolean |
isDisposed()
Returns true if the object is disposed. |
boolean |
isItalic()
Returns true if font is italic. |
boolean |
isOverline()
Returns true if font is overline. |
boolean |
isPlain()
Returns true if font is plane. |
boolean |
isStrikeOut()
Returns true if font is overline. |
boolean |
isUnderline()
Returns true if font is underline. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PLAIN
public static final int BOLD
public static final int ITALIC
public static final int UNDERLINE
public static final int OVERLINE
public static final int STRIKEOUT
Constructor Detail |
public Font(java.lang.String name, int style, int size)
name
- the font namestyle
- the font stylesize
- the font sizeMethod Detail |
public java.lang.String getName()
public int getStyle()
public int getSize()
public boolean isPlain()
public boolean isBold()
public boolean isItalic()
public boolean isUnderline()
public boolean isOverline()
public boolean isStrikeOut()
public Font deriveFont(int style)
style
- font style
public final boolean isDisposed()
isDisposed
in interface Disposable
public final void dispose()
dispose
in interface Disposable
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
protected final void finalize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |