info.magnolia.imaging.operations.text
Class BasicTextRenderer
java.lang.Object
info.magnolia.imaging.operations.text.BasicTextRenderer
- All Implemented Interfaces:
- TextRenderer
public class BasicTextRenderer
- extends Object
- implements TextRenderer
Basic implementation of a TextRenderer.
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicTextRenderer
public BasicTextRenderer()
renderText
public void renderText(BufferedImage img,
String txt,
TextStyle style,
HorizontalAlignment horizontalAlignment,
VerticalAlignment verticalAlignment,
int txtPositionX,
int txtPositionY)
- Specified by:
renderText
in interface TextRenderer
isDrawBoundingBox
public boolean isDrawBoundingBox()
setDrawBoundingBox
public void setDrawBoundingBox(boolean drawBoundingBox)
- Enable this to draw a yellow box around the generated text, can be helpful to help positioning.
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.