|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.krysalis.barcode4j.impl.AbstractBarcodeBean
org.krysalis.barcode4j.impl.datamatrix.DataMatrixBean
This class is an implementation of DataMatrix (ISO 16022:2000(E)).
| Field Summary | |
protected static double |
DEFAULT_MODULE_WIDTH
The default module width (dot size) for DataMatrix. |
| Fields inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
doQuietZone, fontName, fontSize, height, moduleWidth, msgPos, pattern, quietZone, quietZoneVertical |
| Constructor Summary | |
DataMatrixBean()
Create a new instance. |
|
| 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 |
generateBarcode(CanvasProvider canvas,
java.lang.String msg)
Generates a barcode using the given Canvas to render the barcode to its output format. |
double |
getBarHeight()
Returns the height of the bars. |
double |
getBarWidth(int width)
Returns the effective width of a bar with a given logical width. |
SymbolShapeHint |
getShape()
Gets the requested shape for the generated barcodes. |
double |
getVerticalQuietZone()
Returns the vertical quiet zone. |
void |
setShape(SymbolShapeHint shape)
Sets the requested shape for the generated barcodes. |
| Methods inherited from class org.krysalis.barcode4j.impl.AbstractBarcodeBean |
doQuietZone, 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 |
| Field Detail |
protected static final double DEFAULT_MODULE_WIDTH
| Constructor Detail |
public DataMatrixBean()
| Method Detail |
public void setShape(SymbolShapeHint shape)
shape - requested shape. May be SymbolShapeHint.FORCE_NONE,
SymbolShapeHint.FORCE_SQUARE or SymbolShapeHint.FORCE_RECTANGLE.public SymbolShapeHint getShape()
public void generateBarcode(CanvasProvider canvas,
java.lang.String msg)
AbstractBarcodeBean
generateBarcode in interface BarcodeGeneratorgenerateBarcode in class AbstractBarcodeBeanBarcodeGenerator.generateBarcode(CanvasProvider, String)public BarcodeDimension calcDimensions(java.lang.String msg)
AbstractBarcodeBean
calcDimensions in interface BarcodeGeneratorcalcDimensions in class AbstractBarcodeBeanBarcodeGenerator.calcDimensions(String)public double getVerticalQuietZone()
AbstractBarcodeBeanAbstractBarcodeBean.getQuietZone() is returned.
getVerticalQuietZone in class AbstractBarcodeBeanAbstractBarcodeBean.getVerticalQuietZone()public double getBarWidth(int width)
AbstractBarcodeBean
getBarWidth in class AbstractBarcodeBeanwidth - the logical width (1=narrow, 2=wide)
AbstractBarcodeBean.getBarWidth(int)public double getBarHeight()
AbstractBarcodeBean
getBarHeight in class AbstractBarcodeBeanAbstractBarcodeBean.getBarHeight()
|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||