Groovy Documentation

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

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

class JaiTextEngine
extends DefaultTextEngine

Engine for typing text on image

author:
pawel.gdula@burningice.pl


Property Summary
BufferedImage fileToMark

Object representing image file

Graphics2D graphics

Object representing image canvas

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

 
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 DefaultTextEngine
getResult, init, write
 

Property Detail

fileToMark

BufferedImage fileToMark
Object representing image file


graphics

Graphics2D graphics
Object representing image canvas


 
Constructor Detail

JaiTextEngine

public JaiTextEngine(Color color, Font font, ImageFile loadedImage)


 
Method Detail

getResult

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


init

protected void init()


write

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