|
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.HeightVariableBarcodeBean org.krysalis.barcode4j.impl.fourstate.AbstractFourStateBean
public abstract class AbstractFourStateBean
Abstract base class for four state barcode beans.
Field Summary |
---|
Fields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
---|
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical |
Constructor Summary | |
---|---|
AbstractFourStateBean()
Create a new instance. |
Method Summary | |
---|---|
double |
getAscenderHeight()
Returns the height of the ascender/descender. |
double |
getBarHeight(int height)
Returns the effective height of a bar with a given logical height. |
double |
getBarWidth(int width)
Returns the effective width of a bar with a given logical width. |
ChecksumMode |
getChecksumMode()
Returns the current checksum mode. |
double |
getIntercharGapWidth()
Returns the width between encoded characters. |
double |
getTrackHeight()
Returns the height of the track. |
double |
getVerticalQuietZone()
Returns the vertical quiet zone. |
void |
setAscenderHeight(double height)
Sets the height of the ascender/descender. |
void |
setChecksumMode(ChecksumMode mode)
Sets the checksum mode |
void |
setIntercharGapWidth(double width)
Sets the width between encoded characters. |
void |
setTrackHeight(double height)
Sets the height of the track. |
protected void |
updateHeight()
Updates the height variable of the barcode. |
Methods inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
---|
calcDimensions, doQuietZone, generateBarcode, getBarHeight, getFontName, getFontSize, getHeight, getHumanReadableHeight, getModuleWidth, getMsgPosition, getPattern, getQuietZone, 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 AbstractFourStateBean()
Method Detail |
---|
public void setChecksumMode(ChecksumMode mode)
mode
- the checksum modepublic ChecksumMode getChecksumMode()
public double getVerticalQuietZone()
AbstractBarcodeBean
AbstractBarcodeBean.getQuietZone()
is returned.
getVerticalQuietZone
in class AbstractBarcodeBean
public double getIntercharGapWidth()
public void setIntercharGapWidth(double width)
width
- the interchar gap widthpublic double getTrackHeight()
public void setTrackHeight(double height)
height
- the height of the trackpublic double getAscenderHeight()
public void setAscenderHeight(double height)
height
- the height of the ascender/descenderprotected void updateHeight()
public double getBarWidth(int width)
getBarWidth
in class AbstractBarcodeBean
width
- the logical width (1=narrow, 2=wide)
public double getBarHeight(int height)
getBarHeight
in class HeightVariableBarcodeBean
height
- the logical height (1=short, 2=tall)
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |