|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.impl.AbstractVariableHeightLogicHandler org.krysalis.barcode4j.impl.fourstate.FourStateLogicHandler
public class FourStateLogicHandler
Logic Handler to be used by "four-state" barcodes for painting on a Canvas.
Field Summary |
---|
Fields inherited from class org.krysalis.barcode4j.impl.AbstractVariableHeightLogicHandler |
---|
bcBean, canvas, x, y |
Constructor Summary | |
---|---|
FourStateLogicHandler(HeightVariableBarcodeBean bcBean,
Canvas canvas)
Constructor |
Method Summary | |
---|---|
void |
addBar(boolean black,
int height)
This method indicates a new bar to be painted. |
Methods inherited from class org.krysalis.barcode4j.impl.AbstractVariableHeightLogicHandler |
---|
endBarcode, endBarGroup, getTextY, setTextAlignment, startBarcode, startBarGroup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FourStateLogicHandler(HeightVariableBarcodeBean bcBean, Canvas canvas)
bcBean
- the barcode implementation classcanvas
- the canvas to paint toMethod Detail |
---|
public void addBar(boolean black, int height)
black
- True if the bar is to be painted black, False if
white/transparentheight
- logical weight of the bar. Concrete implementations are
free to define this to be height or width. For example, 1 may be interpreted
as "narrow bar", 2 as "wide bar" for certain barcodes. While other barcodes
might define 1 to be "short bar", 2 as "tall bar".
Also, this should not be confused with the effective painting width, or the
actual physical size of the bar.
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |