com.eteks.awt
クラス PJAFontPeer
java.lang.Object
|
+--com.eteks.awt.PJAFontPeer
- すべての実装インタフェース:
- java.awt.peer.FontPeer, java.io.Serializable
- public class PJAFontPeer
- extends java.lang.Object
- implements java.awt.peer.FontPeer, java.io.Serializable
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).
- 導入されたバージョン:
- PJA1.0
- バージョン:
- 2.1
- 作成者:
- Emmanuel Puybaret
- 関連項目:
PJAGraphicsManager
,
PJAFontCapture
, 直列化された形式
コンストラクタの概要 |
protected |
PJAFontPeer(java.lang.String name,
int style)
|
メソッドの概要 |
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)
推奨されていません。 As of PJA version 1.1, PJAFontPeer main () method moved
to com.eteks.tools.fontcapture.PJAFontCapture . |
java.lang.String |
toString()
|
クラス java.lang.Object から継承したメソッド |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PJAFontPeer
protected PJAFontPeer(java.lang.String name,
int style)
getName
public java.lang.String getName()
- Returns the name of this font.
getStyle
public int getStyle()
- Returns the style of this font.
addFontData
protected void addFontData(PJAFontData newFontData)
getFontData
protected PJAFontData getFontData(int fontSize)
getFontMetrics
protected java.awt.FontMetrics getFontMetrics(java.awt.Font font)
getFontMetrics
protected java.awt.FontMetrics getFontMetrics(int fontSize)
equals
public boolean equals(java.lang.Object object)
- Returns
true
if this font peer and object
have the
same name and style.
- オーバーライド:
- クラス
java.lang.Object
内の equals
hashCode
public int hashCode()
- オーバーライド:
- クラス
java.lang.Object
内の hashCode
toString
public java.lang.String toString()
- オーバーライド:
- クラス
java.lang.Object
内の toString
main
public static void main(java.lang.String[] args)
- 推奨されていません。 As of PJA version 1.1,
PJAFontPeer
main ()
method moved
to com.eteks.tools.fontcapture.PJAFontCapture
.
- 関連項目:
PJAFontCapture