public class Java2DTextRenderer extends Object implements TextRenderer
| 限定符和类型 | 字段和说明 |
|---|---|
protected Object |
antiAliasRenderingHint |
protected float |
scale |
protected float |
threshold |
| 构造器和说明 |
|---|
Java2DTextRenderer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
drawGlyphVector(OutputDevice outputDevice,
FSGlyphVector fsGlyphVector,
float x,
float y) |
void |
drawString(OutputDevice outputDevice,
String string,
float x,
float y) |
void |
drawString(OutputDevice outputDevice,
String string,
float x,
float y,
JustificationInfo info) |
float |
getFontScale() |
FSFontMetrics |
getFSFontMetrics(FontContext fc,
FSFont font,
String string) |
Rectangle |
getGlyphBounds(OutputDevice outputDevice,
FSFont font,
FSGlyphVector fsGlyphVector,
int index,
float x,
float y) |
float[] |
getGlyphPositions(OutputDevice outputDevice,
FSFont font,
FSGlyphVector fsGlyphVector) |
float[] |
getGlyphPositions(OutputDevice outputDevice,
FSFont font,
String text) |
FSGlyphVector |
getGlyphVector(OutputDevice outputDevice,
FSFont font,
String text) |
Object |
getRenderingHints()
If anti-alias text is enabled, the value from RenderingHints to use for AA smoothing in Java2D.
|
int |
getSmoothingLevel() |
int |
getWidth(FontContext fc,
FSFont font,
String string) |
void |
setFontScale(float scale) |
void |
setRenderingHints(Object renderingHints)
If anti-alias text is enabled, the value from RenderingHints to use for AA smoothing in Java2D.
|
void |
setSmoothingLevel(int level) |
void |
setSmoothingThreshold(float fontsize)
Set the smoothing threashold.
|
void |
setup(FontContext fontContext) |
protected float scale
protected float threshold
protected Object antiAliasRenderingHint
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 drawGlyphVector(OutputDevice outputDevice, FSGlyphVector fsGlyphVector, float x, float y)
drawGlyphVector 在接口中 TextRendererpublic void setup(FontContext fontContext)
setup 在接口中 TextRendererpublic void setFontScale(float scale)
setFontScale 在接口中 TextRendererpublic void setSmoothingThreshold(float fontsize)
TextRenderersetSmoothingThreshold 在接口中 TextRendererpublic void setSmoothingLevel(int level)
setSmoothingLevel 在接口中 TextRendererlevel - no-oppublic FSFontMetrics getFSFontMetrics(FontContext fc, FSFont font, String string)
getFSFontMetrics 在接口中 TextRendererpublic int getWidth(FontContext fc, FSFont font, String string)
getWidth 在接口中 TextRendererpublic float getFontScale()
getFontScale 在接口中 TextRendererpublic int getSmoothingLevel()
getSmoothingLevel 在接口中 TextRendererpublic Object getRenderingHints()
RenderingHints.VALUE_TEXT_ANTIALIAS_ON.public void setRenderingHints(Object renderingHints)
RenderingHints.VALUE_TEXT_ANTIALIAS_ON.renderingHints - rendering hint for AA smoothing in Java2Dpublic float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, String text)
public Rectangle getGlyphBounds(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector, int index, float x, float y)
getGlyphBounds 在接口中 TextRendererpublic float[] getGlyphPositions(OutputDevice outputDevice, FSFont font, FSGlyphVector fsGlyphVector)
getGlyphPositions 在接口中 TextRendererpublic FSGlyphVector getGlyphVector(OutputDevice outputDevice, FSFont font, String text)
getGlyphVector 在接口中 TextRendererCopyright © 2019. All Rights Reserved.