public interface Output
| Modifier and Type | Method and Description |
|---|---|
void |
beginDraw()
Sets up the drawing environment.
|
int |
drawBar(int x,
int y,
int width,
int height,
boolean paintWithForegroundColor)
"Draws" a bar at the given coordinates.
|
int |
drawText(String text,
LabelLayout layout)
Draw the specified text.
|
void |
endDraw(int width,
int height)
Balanced with startDraw(), used for caching, output of epilogues.
|
void |
paintBackground(int x,
int y,
int width,
int height)
Paint the background the background colour, based on the height and the width.
|
void |
toggleDrawingColor()
Swaps the foreground and background colours of the output.
|
int drawBar(int x,
int y,
int width,
int height,
boolean paintWithForegroundColor)
throws OutputException
x - the x coordinatey - the y coordinatewidth - the widthheight - the heightpaintWithForegroundColor - if true, use the foreground color, otherwise use the background colorOutputExceptionvoid beginDraw()
throws OutputException
OutputExceptionvoid endDraw(int width,
int height)
throws OutputException
width - The output width (in pixels) of the barcodeheight - The output height (in pixels) of the barcode.OutputExceptionint drawText(String text, LabelLayout layout) throws OutputException
text - text to drawlayout - the text layout calculatorOutputExceptionvoid toggleDrawingColor()
void paintBackground(int x,
int y,
int width,
int height)
x - the x coordinatey - the y coordinatewidth - the width to be paintedheight - the height to be paintedCopyright © 2003-2013 barbecue.sourceforge.net. All Rights Reserved.