|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.barbecue.output.AbstractOutput
public abstract class AbstractOutput
Abstract class of which concrete implementations provide means for outputting barcodes to different output formats.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
AbstractOutput(Font font,
boolean painting,
double scalar,
Color foregroundColour,
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 Font font
protected Color backgroundColour
protected Color foregroundColour
| Constructor Detail |
|---|
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 colour| Method Detail |
|---|
public void toggleDrawingColor()
toggleDrawingColor in interface Output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||