public abstract class FontLayoutService
extends java.lang.Object
Constructor and Description |
---|
FontLayoutService() |
Modifier and Type | Method and Description |
---|---|
abstract int |
charWidth(java.awt.FontMetrics fontMetrics,
char c) |
abstract int |
charWidth(java.awt.FontMetrics fontMetrics,
int codePoint) |
abstract float |
charWidth2D(java.awt.FontMetrics fontMetrics,
int codePoint) |
abstract int |
getDescent(java.awt.FontMetrics fontMetrics) |
abstract int |
getHeight(java.awt.FontMetrics fontMetrics) |
static FontLayoutService |
getInstance() |
abstract java.awt.font.GlyphVector |
layoutGlyphVector(java.awt.Font font,
java.awt.font.FontRenderContext fontRenderContext,
char [] chars,
int start,
int end,
boolean isRtl) |
static void |
setInstance(FontLayoutService fontLayoutService) |
abstract int |
stringWidth(java.awt.FontMetrics fontMetrics,
java.lang.String str) |
public static FontLayoutService getInstance()
public abstract java.awt.font.GlyphVector layoutGlyphVector(java.awt.Font font, java.awt.font.FontRenderContext fontRenderContext, char [] chars, int start, int end, boolean isRtl)
public abstract int charWidth(java.awt.FontMetrics fontMetrics, char c)
public abstract int charWidth(java.awt.FontMetrics fontMetrics, int codePoint)
public abstract float charWidth2D(java.awt.FontMetrics fontMetrics, int codePoint)
public abstract int stringWidth(java.awt.FontMetrics fontMetrics, java.lang.String str)
public abstract int getHeight(java.awt.FontMetrics fontMetrics)
public abstract int getDescent(java.awt.FontMetrics fontMetrics)
public static void setInstance(FontLayoutService fontLayoutService)