|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.style.util.FontProxy
FontProxy serves as a substitute for java.awt.Font in non-graphical environments. In particular, FontProxy can be used in "headless" Unix environments, where access to a X server may not be available. (AWT requires an X server connection in order to instantiate a Font.) FontProxy can be used to prove font metadata without actually creating an AWT Font.
Constructor Summary | |
FontProxy(java.awt.Font font)
Creates a FontProxy from a Font |
|
FontProxy(java.lang.String name,
int style,
int size)
Creates a FontProxy. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Tests for equality. |
java.awt.Font |
getFont()
Gets a Font from a FontProxy. |
java.lang.String |
getName()
Returns the font name. |
int |
getSize()
Returns the font size |
int |
getStyle()
Returns the font style |
int |
hashCode()
Returns a hashcode for this FontProxy. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FontProxy(java.lang.String name, int style, int size)
name
- The logical name of the fontstyle
- The font style, using the java.awt.Font bitmask constants.size
- he point size of the fontpublic FontProxy(java.awt.Font font)
Method Detail |
public java.lang.String getName()
public int getStyle()
public int getSize()
public java.awt.Font getFont()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |