br.com.caelum.stella.boleto.transformer
Class PNGBoletoWriter

java.lang.Object
  extended by br.com.caelum.stella.boleto.transformer.PNGBoletoWriter
All Implemented Interfaces:
BoletoWriter

public class PNGBoletoWriter
extends Object
implements BoletoWriter

Writer que sabe escrever num PNG

Author:
Cauê Guerra, Paulo Silveira
See Also:
http://stella.caelum .com.br/boleto-setup.html

Constructor Summary
PNGBoletoWriter()
           
PNGBoletoWriter(double w, double h)
           
 
Method Summary
 boolean newPage()
          Cria uma nova pagina no documento de saida.
 InputStream toInputStream()
          Grava num InputStream
 void write(float x, float y, String text)
          Escreve um texto na posição x, y com fonte normal (VERDANA, 8)
 void writeBold(float x, float y, String text)
          Escreve um texto na posição x, y com fonte bold (VERDANA_BOLD, 10)
 void writeImage(float x, float y, BufferedImage image, float width, float height)
          Escreve uma imagem na posição x, y
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNGBoletoWriter

public PNGBoletoWriter()

PNGBoletoWriter

public PNGBoletoWriter(double w,
                       double h)
Method Detail

toInputStream

public InputStream toInputStream()
Description copied from interface: BoletoWriter
Grava num InputStream

Specified by:
toInputStream in interface BoletoWriter
Returns:

write

public void write(float x,
                  float y,
                  String text)
Description copied from interface: BoletoWriter
Escreve um texto na posição x, y com fonte normal (VERDANA, 8)

Specified by:
write in interface BoletoWriter

writeBold

public void writeBold(float x,
                      float y,
                      String text)
Description copied from interface: BoletoWriter
Escreve um texto na posição x, y com fonte bold (VERDANA_BOLD, 10)

Specified by:
writeBold in interface BoletoWriter

writeImage

public void writeImage(float x,
                       float y,
                       BufferedImage image,
                       float width,
                       float height)
                throws IOException
Description copied from interface: BoletoWriter
Escreve uma imagem na posição x, y

Specified by:
writeImage in interface BoletoWriter
Throws:
IOException

newPage

public boolean newPage()
Description copied from interface: BoletoWriter
Cria uma nova pagina no documento de saida.

Specified by:
newPage in interface BoletoWriter
Returns:
true se uma nova pagina foi criada


Copyright © 2009 Caelum. All Rights Reserved.