public class EPSOutput extends AbstractOutput
backgroundColour, font, foregroundColour, painting, scalar| Constructor and Description |
|---|
EPSOutput(Writer writer)
Creates a new instance of EPSOutput.
|
| 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)
From AbstractOutput - outputs the correct rectangle to the EPS output.
|
double |
drawBarEPS(double x,
double y,
double width,
double height,
boolean paintWithForegroundColor)
From AbstractOutput - outputs the correct rectangle to the EPS output.
|
int |
drawText(String text,
LabelLayout layout)
Draw the specified text.
|
void |
endDraw(int width,
int height)
From AbstractOutput - finished up the EPS output.
|
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()
Disables any drawing to the Output.
|
public EPSOutput(Writer writer)
writer - The Writer to output the EPS text topublic void beginDraw()
Outputpublic void endDraw(int width,
int height)
width - The output width (in pixels) of the barcodeheight - The output height (in pixels) of the barcode.public int drawBar(int x,
int y,
int width,
int height,
boolean paintWithForegroundColor)
x - the x coordinatey - the y coordinatewidth - the widthheight - the heightpaintWithForegroundColor - if true, use the foreground color, otherwise use the background colorpublic double drawBarEPS(double x,
double y,
double width,
double height,
boolean paintWithForegroundColor)
x - the x coordinatey - the y coordinatewidth - the widthheight - the heightpaintWithForegroundColor - if true, use the foreground color, otherwise use the background colorpublic int drawText(String text, LabelLayout layout) throws OutputException
Outputtext - text to drawlayout - the text layout calculatorOutputExceptionpublic void toggleDrawingColor()
AbstractOutputtoggleDrawingColor in interface OutputtoggleDrawingColor in class AbstractOutputpublic 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.