public abstract class AbstractOutput extends Object implements Output
| Modifier and Type | Field and Description |
|---|---|
protected Color |
backgroundColour
The background colour for drawing
|
protected Font |
font
The font to draw any text labels with.
|
protected Color |
foregroundColour
The foreground colour for drawing
|
protected boolean |
painting
Flag indicating whether the barcode will actually be outputted, or is just being sized.
|
protected double |
scalar
The scaling factor to correctly size the barcode in the output units.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOutput(Font font,
boolean painting,
double scalar,
Color foregroundColour,
Color backgroundColour)
Populates this abstract outputter with common values.
|
protected final boolean painting
protected final double scalar
protected final Font font
protected Color backgroundColour
protected Color foregroundColour
protected AbstractOutput(Font font, boolean painting, double scalar, Color foregroundColour, Color backgroundColour)
font - The font to draw text labels withpainting - Flag indicating whether painting will actually occurscalar - The scaling factor to size the barcode into the correct unitsforegroundColour - The colour to paint inbackgroundColour - The background colourpublic void toggleDrawingColor()
toggleDrawingColor in interface OutputCopyright © 2003-2013 barbecue.sourceforge.net. All Rights Reserved.