br.com.caelum.stella.boleto.transformer
Interface BoletoWriter

All Known Implementing Classes:
PDFBoletoWriter, PNGBoletoWriter

public interface BoletoWriter


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
 

Method Detail

write

void write(float x,
           float y,
           String text)
Escreve um texto na posição x, y com fonte normal (VERDANA, 8)

Parameters:
x -
y -
text -

writeBold

void writeBold(float x,
               float y,
               String text)
Escreve um texto na posição x, y com fonte bold (VERDANA_BOLD, 10)

Parameters:
x -
y -
text -

writeImage

void writeImage(float x,
                float y,
                BufferedImage image,
                float width,
                float height)
                throws IOException
Escreve uma imagem na posição x, y

Parameters:
x -
y -
image -
width -
height -
Throws:
IOException

toInputStream

InputStream toInputStream()
Grava num InputStream

Returns:

newPage

boolean newPage()
Cria uma nova pagina no documento de saida.

Returns:
true se uma nova pagina foi criada


Copyright © 2009 Caelum. All Rights Reserved.