|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.barbecue.output.AbstractOutput
net.sourceforge.barbecue.output.EPSOutput
EPS outputter to output barcodes as Encapsulated Postscript files. Contributed by Tim Molteno.
| Field Summary |
| Fields inherited from class net.sourceforge.barbecue.output.AbstractOutput |
backgroundColour, font, foregroundColour, painting, scalar |
| Constructor Summary | |
EPSOutput(java.io.Writer writer)
Creates a new instance of EPSOutput. |
|
| Method Summary | |
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(java.lang.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EPSOutput(java.io.Writer writer)
writer - The Writer to output the EPS text to| Method Detail |
public void beginDraw()
Output
public 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 color
public 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 color
public int drawText(java.lang.String text,
LabelLayout layout)
throws OutputException
Output
text - text to drawlayout - the text layout calculator
OutputExceptionpublic void toggleDrawingColor()
AbstractOutput
toggleDrawingColor in interface OutputtoggleDrawingColor in class AbstractOutput
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 | ||||||||||