|
PJA Toolkit 2.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.awt.PJAFontPeer
public class PJAFontPeer
Pure Java AWT Font Peer.
From version 1.1, com.eteks.tools.fontcapture.PJAFontCapture
is used to capture the fonts.
PJA 1.0 .pjaf font files are not compatible with PJA 1.1, please use font capture utility to produce
PJA 1.1 font files.
This class keeps all the data of a font in PJAFontData
instances
to avoid using PJAFontMetrics
which extends java.awt.FontMetrics
(java.awt.FontMetrics
requires awt library to be loaded).
PJAGraphicsManager
,
PJAFontCapture
,
Serialized FormConstructor Summary | |
---|---|
protected |
PJAFontPeer(java.lang.String name,
int style)
|
Method Summary | |
---|---|
protected void |
addFontData(PJAFontData newFontData)
|
boolean |
equals(java.lang.Object object)
Returns true if this font peer and object have the
same name and style. |
protected PJAFontData |
getFontData(int fontSize)
|
protected java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
|
protected java.awt.FontMetrics |
getFontMetrics(int fontSize)
|
java.lang.String |
getName()
Returns the name of this font. |
int |
getStyle()
Returns the style of this font. |
int |
hashCode()
|
static void |
main(java.lang.String[] args)
Deprecated. As of PJA version 1.1, PJAFontPeer main () method moved
to com.eteks.tools.fontcapture.PJAFontCapture . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected PJAFontPeer(java.lang.String name, int style)
Method Detail |
---|
public java.lang.String getName()
public int getStyle()
protected void addFontData(PJAFontData newFontData)
protected PJAFontData getFontData(int fontSize)
protected java.awt.FontMetrics getFontMetrics(java.awt.Font font)
protected java.awt.FontMetrics getFontMetrics(int fontSize)
public boolean equals(java.lang.Object object)
true
if this font peer and object
have the
same name and style.
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
public static void main(java.lang.String[] args)
PJAFontPeer
main ()
method moved
to com.eteks.tools.fontcapture.PJAFontCapture
.
PJAFontCapture
|
PJA Toolkit 2.6 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |