Groovy Documentation

src.groovy.pl.burningice.plugins.image.engines.text
Class DefaultTextEngine

java.lang.Object
  src.groovy.pl.burningice.plugins.image.engines.text.DefaultTextEngine

class DefaultTextEngine

Engine for typing text on image

author:
pawel.gdula@burningice.pl


Property Summary
protected Color color

Object representing image file

protected Font font

Object representing image canvas

protected ImageFile loadedImage

Object representing uploaded image

 
Constructor Summary
DefaultTextEngine(Color color, Font font, ImageFile loadedImage)

Default class constructor

 
Method Summary
BufferedImage getResult()

Returns write result

protected void init()

void write(java.lang.String text, int deltaX, int deltaY)

Performs write actions

 
Methods inherited from class java.lang.Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

color

protected Color color
Object representing image file


font

protected Font font
Object representing image canvas


loadedImage

protected ImageFile loadedImage
Object representing uploaded image


 
Constructor Detail

DefaultTextEngine

public DefaultTextEngine(Color color, Font font, ImageFile loadedImage)
Default class constructor
param:
color Representing current color of text. Can be null
param:
font Representing current font of text. Can be null
param:
loadedImage Image to type on it


 
Method Detail

getResult

public BufferedImage getResult()
Returns write result
return:
BufferedImage objects representing current image


init

protected void init()


write

public void write(java.lang.String text, int deltaX, int deltaY)
Performs write actions
param:
text Text to type
param:
deltaX Offset from left border of image
param:
deltaY Offset from top border of image


 

Groovy Documentation