public interface BarcodeUtil
Modifier and Type | Method and Description |
---|---|
void |
doQuietZone(boolean value)
Controls whether a quiet zone should be included or not.
|
void |
drawBarcode(String data,
int x,
int y,
Rotation rotation)
Draws the selected barcode symbology at the user specified x and y coordinates.
|
double |
getBarHeight()
Returns the height of the bars.
|
double |
getBarWidth(int width)
Returns the effective width of a bar with a given logical width.
|
Font |
getFont()
Returns the font of the human-readable portion.
|
double |
getHeight()
Returns the full height of the barcode.
|
double |
getModuleWidth()
Returns the width of the narrow module.
|
String |
getPattern()
Returns the pattern to be applied over the human readable message.
|
double |
getQuietZoneWidth()
Returns the width of the quiet zone.
|
double |
getVerticalQuietZone()
Returns the vertical quiet zone.
|
boolean |
hasQuietZone()
Indicates whether a quiet zone is included.
|
void |
setBarHeight(double height)
Sets the height of the bars.
|
void |
setFont(Font font)
Sets the font of the human-readable portion.
|
void |
setHeight(double height)
Sets the full height of the barcode including the human-readable portion.
|
void |
setMessagePosition(HumanReadablePlacement placement)
Sets the placement of the human-readable part.
|
void |
setModuleWidth(double width)
Sets the width of the narrow module.
|
void |
setPattern(String pattern)
Sets the pattern to be applied over the human readable message.
|
void |
setQuietZoneWidth(double width)
Sets the width of the quiet zone.
|
void |
setVerticalQuietZone(double height)
Sets the height of the vertical quiet zone.
|
void drawBarcode(String data, int x, int y, Rotation rotation)
data
- Data to encode.x
- The x coordinate.y
- The y coordinate.rotation
- The orientation of the barcode.void doQuietZone(boolean value)
value
- True to include a quite zone.void setBarHeight(double height)
height
- The height of the bars (in pixels).void setFont(Font font)
font
- The font.void setHeight(double height)
height
- The full height (in pixels).void setModuleWidth(double width)
width
- The width of the narrow module (in pixels).void setMessagePosition(HumanReadablePlacement placement)
placement
- The placement of the human-readable part.void setQuietZoneWidth(double width)
width
- The width of the quiet zone (in pixels).void setVerticalQuietZone(double height)
height
- The height of the vertical quiet zone (in pixels).double getBarHeight()
Font getFont()
double getHeight()
double getModuleWidth()
double getQuietZoneWidth()
double getVerticalQuietZone()
void setPattern(String pattern)
pattern
- The pattern to be applied over the human readable message.String getPattern()
boolean hasQuietZone()
double getBarWidth(int width)
width
- The logical width (1=narrow, 2=wide).
© 2016 ZIH Corp. All Rights Reserved.