|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.barbecue.output.AbstractOutput
Abstract class of which concrete implementations provide means for outputting barcodes to different output formats.
Field Summary | |
protected java.awt.Color |
backgroundColour
The background colour for drawing |
protected java.awt.Font |
font
The font to draw any text labels with. |
protected java.awt.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. |
Constructor Summary | |
protected |
AbstractOutput(java.awt.Font font,
boolean painting,
double scalar,
java.awt.Color foregroundColour,
java.awt.Color backgroundColour)
Populates this abstract outputter with common values. |
Method Summary | |
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 |
Methods inherited from interface net.sourceforge.barbecue.output.Output |
beginDraw, drawBar, drawText, endDraw, paintBackground |
Field Detail |
protected final boolean painting
protected final double scalar
protected final java.awt.Font font
protected java.awt.Color backgroundColour
protected java.awt.Color foregroundColour
Constructor Detail |
protected AbstractOutput(java.awt.Font font, boolean painting, double scalar, java.awt.Color foregroundColour, java.awt.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 colourMethod Detail |
public void toggleDrawingColor()
toggleDrawingColor
in interface Output
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |