public class SimpleTextLayoutCenter extends SimpleTextLayout
doLayout(String, float, float, float, float)
. And the entire
block of text is vertically centered in the same bounding box.SimpleTextLayout.TextBoundingBox
Constructor and Description |
---|
SimpleTextLayoutCenter(Font font,
FontRenderContext frc) |
SimpleTextLayoutCenter(Font font,
FontRenderContext frc,
BreakIterator breaker) |
Modifier and Type | Method and Description |
---|---|
void |
doLayout(String text,
float leftX,
float topY,
float maxWidth,
float maxHeight) |
doLayout, getAscent, getBreakOnEol, getDescent, getLine, getLineHeight, getLines, getLineSpacing, getSourceText, numberOfLines, setAscent, setBreakOnEol, setLineSpacing
public SimpleTextLayoutCenter(Font font, FontRenderContext frc)
public SimpleTextLayoutCenter(Font font, FontRenderContext frc, BreakIterator breaker)
public void doLayout(String text, float leftX, float topY, float maxWidth, float maxHeight)
Copyright © 2016 Metron, Inc.. All rights reserved.