public class BasicTextRenderer extends Object implements TextRenderer
Constructor and Description |
---|
BasicTextRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
isDrawBoundingBox() |
void |
renderText(BufferedImage img,
String txt,
TextStyle style,
HorizontalAlignment horizontalAlignment,
VerticalAlignment verticalAlignment,
int txtPositionX,
int txtPositionY) |
void |
setDrawBoundingBox(boolean drawBoundingBox)
Enable this to draw a yellow box around the generated text, can be helpful to help positioning.
|
public void renderText(BufferedImage img, String txt, TextStyle style, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, int txtPositionX, int txtPositionY)
renderText
in interface TextRenderer
public boolean isDrawBoundingBox()
public void setDrawBoundingBox(boolean drawBoundingBox)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.