public abstract class AbstractFourStateBean extends HeightVariableBarcodeBean
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical| Constructor and Description |
|---|
AbstractFourStateBean()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
calcDimensions, doQuietZone, generateBarcode, getBarHeight, getFontName, getFontSize, getHeight, getHumanReadableHeight, getModuleWidth, getMsgPosition, getPattern, getQuietZone, hasFontDescender, hasQuietZone, setBarHeight, setFontName, setFontSize, setHeight, setModuleWidth, setMsgPosition, setPattern, setQuietZone, setVerticalQuietZonepublic void setChecksumMode(ChecksumMode mode)
mode - the checksum modepublic ChecksumMode getChecksumMode()
public double getVerticalQuietZone()
AbstractBarcodeBeanAbstractBarcodeBean.getQuietZone() is returned.getVerticalQuietZone in class AbstractBarcodeBeanpublic 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 AbstractBarcodeBeanwidth - the logical width (1=narrow, 2=wide)public double getBarHeight(int height)
getBarHeight in class HeightVariableBarcodeBeanheight - the logical height (1=short, 2=tall)Copyright © 2003–2023. All rights reserved.