info.magnolia.imaging.operations.text
Class BasicTextRenderer

java.lang.Object
  extended by info.magnolia.imaging.operations.text.BasicTextRenderer
All Implemented Interfaces:
TextRenderer

public class BasicTextRenderer
extends Object
implements TextRenderer

Basic implementation of a TextRenderer.

Version:
$Id$

Constructor Summary
BasicTextRenderer()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTextRenderer

public BasicTextRenderer()
Method Detail

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.