|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.fonts.awt.AWTFontMetrics
public class AWTFontMetrics
Creation-Date: 16.12.2005, 21:09:39
Constructor Summary | |
---|---|
AWTFontMetrics(java.awt.Font font,
FontContext context)
|
Method Summary | |
---|---|
protected java.awt.Graphics2D |
createGraphics(FontContext context)
|
long |
getAscent()
From the baseline to the |
BaselineInfo |
getBaselines(int c,
BaselineInfo info)
Baselines are defined for scripts, not glyphs. |
long |
getCharWidth(int character)
|
long |
getDescent()
The font descent is the distance from the font's baseline to the bottom of most alphanumeric characters. |
java.awt.Font |
getFont()
|
long |
getItalicAngle()
Returns zero, as the AWT renderer will take care of the italic rendering already. |
long |
getKerning(int previous,
int character)
This method is EXPENSIVE. |
long |
getLeading()
The standard leading, or interline spacing, is the logical amount of space to be reserved between the descent of one line of text and the ascent of the next line. |
long |
getMaxAscent()
|
long |
getMaxCharAdvance()
|
long |
getMaxDescent()
|
long |
getMaxHeight()
|
long |
getOverlinePosition()
|
long |
getStrikeThroughPosition()
|
long |
getUnderlinePosition()
|
long |
getXHeight()
The height of the lowercase 'x'. |
boolean |
isUniformFontMetrics()
Is it guaranteed that the font always returns the same baseline info objct? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AWTFontMetrics(java.awt.Font font, FontContext context)
Method Detail |
---|
protected java.awt.Graphics2D createGraphics(FontContext context)
public java.awt.Font getFont()
public long getAscent()
getAscent
in interface FontMetrics
public long getDescent()
FontMetrics
getDescent
in interface FontMetrics
public long getLeading()
FontMetrics
getLeading
in interface FontMetrics
public long getXHeight()
getXHeight
in interface FontMetrics
public long getOverlinePosition()
getOverlinePosition
in interface FontMetrics
public long getUnderlinePosition()
getUnderlinePosition
in interface FontMetrics
public long getStrikeThroughPosition()
getStrikeThroughPosition
in interface FontMetrics
public long getMaxAscent()
getMaxAscent
in interface FontMetrics
public long getMaxDescent()
getMaxDescent
in interface FontMetrics
public long getMaxHeight()
getMaxHeight
in interface FontMetrics
public long getMaxCharAdvance()
getMaxCharAdvance
in interface FontMetrics
public long getCharWidth(int character)
getCharWidth
in interface FontMetrics
public long getKerning(int previous, int character)
getKerning
in interface FontMetrics
previous
- character
-
public BaselineInfo getBaselines(int c, BaselineInfo info)
getBaselines
in interface FontMetrics
c
- the character that is used to select the script type.
public boolean isUniformFontMetrics()
isUniformFontMetrics
in interface FontMetrics
public long getItalicAngle()
getItalicAngle
in interface FontMetrics
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |