|
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.AbstractBarcodeBean org.krysalis.barcode4j.impl.int2of5.Interleaved2Of5Bean org.krysalis.barcode4j.impl.int2of5.ITF14Bean
public class ITF14Bean
This class is an implementation of ITF-14 (as defined by the GS1 standards organization). ITF-14 is basically an Interleaved 2 of 5 barcode with an added, so-called bearer bar.
Field Summary |
---|
Fields inherited from class org.krysalis.barcode4j.impl.int2of5.Interleaved2Of5Bean |
---|
DEFAULT_WIDE_FACTOR |
Fields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
---|
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical |
Constructor Summary | |
---|---|
ITF14Bean()
Default constructor. |
Method Summary | |
---|---|
BarcodeDimension |
calcDimensions(java.lang.String msg)
Calculates the dimension of a barcode with the given message. The dimensions are dependant on the configuration of the barcode generator. |
void |
doQuietZone(boolean value)
Controls whether a quiet zone should be included or not. |
void |
generateBarcode(CanvasProvider canvas,
java.lang.String msg)
Generates a barcode using the given Canvas to render the barcode to its output format. |
double |
getBearerBarWidth()
Returns the bearer bar width. |
boolean |
isBearerBox()
Indicates whether a bearer box is generated or just horizontal bearer bars. |
void |
setBearerBarWidth(double width)
Sets the bearer bar width. |
void |
setBearerBox(boolean value)
Controls whether a bearer box is generated or just horizontal bearer bars. |
protected void |
validate()
Validates the barcode bean's settings. |
Methods inherited from class org.krysalis.barcode4j.impl.int2of5.Interleaved2Of5Bean |
---|
getBarWidth, getChecksumMode, getWideFactor, isDisplayChecksum, setChecksumMode, setDisplayChecksum, setWideFactor |
Methods inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
---|
getBarHeight, getFontName, getFontSize, getHeight, getHumanReadableHeight, getModuleWidth, getMsgPosition, getPattern, getQuietZone, getVerticalQuietZone, hasFontDescender, hasQuietZone, setBarHeight, setFontName, setFontSize, setHeight, setModuleWidth, setMsgPosition, setPattern, setQuietZone, setVerticalQuietZone |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ITF14Bean()
Method Detail |
---|
public boolean isBearerBox()
public void setBearerBox(boolean value)
value
- true for a bearer box, false for horizontal bearer bars.public double getBearerBarWidth()
public void setBearerBarWidth(double width)
width
- the bearer bar width (in millimeters)public void doQuietZone(boolean value)
doQuietZone
in class AbstractBarcodeBean
value
- true if a quiet zone should be includedprotected void validate()
public void generateBarcode(CanvasProvider canvas, java.lang.String msg)
generateBarcode
in interface BarcodeGenerator
generateBarcode
in class Interleaved2Of5Bean
canvas
- CanvasProvider that the barcode is to be rendered on.msg
- message to encodeBarcodeGenerator.generateBarcode(CanvasProvider, String)
public BarcodeDimension calcDimensions(java.lang.String msg)
calcDimensions
in interface BarcodeGenerator
calcDimensions
in class Interleaved2Of5Bean
msg
- message to use for calculation.
BarcodeGenerator.calcDimensions(String)
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |