public class Java2DTextRenderer extends Object implements TextRenderer
| 限定符和类型 | 字段和说明 |
|---|---|
protected static int |
ANTI_ALIAS_FONT_SIZE_MIN |
protected Object |
antiAliasRenderingHint |
protected Object |
fractionalFontMetricsHint |
| 构造器和说明 |
|---|
Java2DTextRenderer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
drawString(OutputDevice outputDevice,
String string,
float x,
float y) |
void |
drawString(OutputDevice outputDevice,
String string,
float x,
float y,
JustificationInfo info)
Draws a justified string.
|
protected int |
getAntiAliasMinFontSize() |
FSFontMetrics |
getFSFontMetrics(FontContext fc,
FSFont font,
String string) |
float[] |
getGlyphPositions(OutputDevice outputDevice,
FSFont font,
String text)
This method gets glyph positions for purposes of selecting text.
|
Object |
getRenderingHints()
If anti-alias text is enabled, the value from RenderingHints to use for AA smoothing in Java2D.
|
int |
getWidth(FontContext fc,
FSFont font,
String string) |
void |
setup(FontContext fontContext,
BidiReorderer bidiReorderer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEffectivePrintableStringprotected static final int ANTI_ALIAS_FONT_SIZE_MIN
protected final Object antiAliasRenderingHint
protected final Object fractionalFontMetricsHint
protected int getAntiAliasMinFontSize()
public void drawString(OutputDevice outputDevice, String string, float x, float y)
drawString 在接口中 TextRendererpublic void drawString(OutputDevice outputDevice, String string, float x, float y, JustificationInfo info)
drawString 在接口中 TextRendererpublic void setup(FontContext fontContext, BidiReorderer bidiReorderer)
public FSFontMetrics getFSFontMetrics(FontContext fc, FSFont font, String string)
getFSFontMetrics 在接口中 TextRendererpublic int getWidth(FontContext fc, FSFont font, String string)
getWidth 在接口中 TextRendererpublic Object getRenderingHints()
RenderingHints.VALUE_TEXT_ANTIALIAS_ON.public float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, String text)
Copyright © 2004–2025. All rights reserved.