|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
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(java.lang.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. |
Method Detail |
public 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 color
OutputException
public void beginDraw() throws OutputException
OutputException
public void endDraw(int width, int height) throws OutputException
width
- The output width (in pixels) of the barcodeheight
- The output height (in pixels) of the barcode.
OutputException
public int drawText(java.lang.String text, LabelLayout layout) throws OutputException
text
- text to drawlayout
- the text layout calculator
OutputException
public void toggleDrawingColor()
public 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 painted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |