com.eteks.awt
クラス PJAFontMetrics
java.lang.Object
|
+--java.awt.FontMetrics
|
+--com.eteks.awt.PJAFontMetrics
- すべての実装インタフェース:
- java.io.Serializable
- public class PJAFontMetrics
- extends java.awt.FontMetrics
- implements java.io.Serializable
Pure Java AWT Font Metrics implementation. This class returns the metrics
of a given font (name + style + sizes).
From version 1.1, all the font data management moved to the new class PJAFontData
to avoid using PJAFontMetrics
which extends this class in PJAGraphics
code
(java.awt.FontMetrics
requires awt library to be loaded to call initIDs
native method).
- 導入されたバージョン:
- PJA1.0
- バージョン:
- 2.1
- 作成者:
- Emmanuel Puybaret
- 関連項目:
- 直列化された形式
クラス java.awt.FontMetrics から継承したフィールド |
font |
メソッドの概要 |
int |
charsWidth(char[] data,
int offset,
int len)
java.awt.FontMetrics implementation.
|
int |
charWidth(char ch)
java.awt.FontMetrics implementation.
|
int |
charWidth(int ch)
java.awt.FontMetrics implementation.
|
int |
getAscent()
java.awt.FontMetrics implementation.
|
int |
getCharOffsetAtBaseline(char ch)
推奨されていません。 As of PJA version 1.1, replaced by PJAFontData.getCharOffsetAtBaseline (). |
int[] |
getCharPixels(char ch)
推奨されていません。 As of PJA version 1.1, replaced by PJAFontData.getCharPixels (). |
int |
getCharPixelsWidth(char ch)
推奨されていません。 As of PJA version 1.1, replaced by PJAFontData.getCharPixelsWidth (). |
int |
getDescent()
java.awt.FontMetrics implementation.
|
int |
getLeading()
java.awt.FontMetrics implementation.
|
int |
getMaxAdvance()
java.awt.FontMetrics implementation.
|
int |
getMaxAscent()
java.awt.FontMetrics implementation.
|
int |
getMaxDescent()
java.awt.FontMetrics implementation.
|
protected void |
setFont(java.awt.Font font)
推奨されていません。 As of PJA version 1.1, PJAFontPeer doesn't need it anymore. |
クラス java.awt.FontMetrics から継承したメソッド |
bytesWidth, getFont, getHeight, getLineMetrics, getLineMetrics, getLineMetrics, getLineMetrics, getMaxCharBounds, getMaxDecent, getStringBounds, getStringBounds, getStringBounds, getStringBounds, getWidths, hasUniformLineMetrics, stringWidth, toString |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PJAFontMetrics
protected PJAFontMetrics(java.awt.Font font,
PJAFontData fontData)
setFont
protected void setFont(java.awt.Font font)
- 推奨されていません。 As of PJA version 1.1,
PJAFontPeer
doesn't need it anymore.
- Sets the font for this metrics object. This protected method is used to
set the font afterwards a PJAFontMetrics object is created or deserialized.
- パラメータ:
font
- The matching font for this metrics.
getLeading
public int getLeading()
java.awt.FontMetrics
implementation.
Returns the leading of this font.
- オーバーライド:
- クラス
java.awt.FontMetrics
内の getLeading
- 関連項目:
PJAFontData
getAscent
public int getAscent()
java.awt.FontMetrics
implementation.
Returns the ascent of this font.
- オーバーライド:
- クラス
java.awt.FontMetrics
内の getAscent
- 関連項目:
PJAFontData
getDescent
public int getDescent()
java.awt.FontMetrics
implementation.
Returns the descent of this font.
- オーバーライド:
- クラス
java.awt.FontMetrics
内の getDescent
- 関連項目:
PJAFontData
getMaxAscent
public int getMaxAscent()
java.awt.FontMetrics
implementation.
Returns the max ascent of this font.
- オーバーライド:
- クラス
java.awt.FontMetrics
内の getMaxAscent
- 関連項目:
PJAFontData
getMaxDescent
public int getMaxDescent()
java.awt.FontMetrics
implementation.
Returns the max descent of this font.
- オーバーライド:
- クラス
java.awt.FontMetrics
内の getMaxDescent
- 関連項目:
PJAFontData
getMaxAdvance
public int getMaxAdvance()
java.awt.FontMetrics
implementation.
Returns the max advance of this font.
- オーバーライド:
- クラス
java.awt.FontMetrics
内の getMaxAdvance
- 関連項目:
PJAFontData
charWidth
public int charWidth(int ch)
java.awt.FontMetrics
implementation.
Returns the char width of the character ch
in this font.
- オーバーライド:
- クラス
java.awt.FontMetrics
内の charWidth
- 関連項目:
PJAFontData
charWidth
public int charWidth(char ch)
java.awt.FontMetrics
implementation.
Returns the char width of the character ch
in this font.
(need to override charWidth (char ch)
of the class
java.awt.FontMetrics
to avoid stack overflow in getWidths ()
)
- オーバーライド:
- クラス
java.awt.FontMetrics
内の charWidth
- 導入されたバージョン:
- PJA1.2
- 関連項目:
PJAFontData
charsWidth
public int charsWidth(char[] data,
int offset,
int len)
java.awt.FontMetrics
implementation.
Returns the string width of a string in this font.
- オーバーライド:
- クラス
java.awt.FontMetrics
内の charsWidth
- 関連項目:
PJAFontData
getCharPixels
public int[] getCharPixels(char ch)
- 推奨されていません。 As of PJA version 1.1, replaced by PJAFontData.getCharPixels ().
- Returns the pixels array of the character
ch
.
- 関連項目:
PJAFontData
getCharPixelsWidth
public int getCharPixelsWidth(char ch)
- 推奨されていません。 As of PJA version 1.1, replaced by PJAFontData.getCharPixelsWidth ().
- Returns the scansize of the pixels array of the character
ch
.
- 関連項目:
PJAFontData
getCharOffsetAtBaseline
public int getCharOffsetAtBaseline(char ch)
- 推奨されていません。 As of PJA version 1.1, replaced by PJAFontData.getCharOffsetAtBaseline ().
- Returns the offset of the character
ch
to add at baseline.
- 関連項目:
PJAFontData