public class BarcodeDimension extends Object
| Constructor and Description |
|---|
BarcodeDimension(double w,
double h)
Creates a new BarcodeDimension object.
|
BarcodeDimension(double w,
double h,
double wpq,
double hpq,
double xoffset,
double yoffset)
Creates a new BarcodeDimension object.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2D |
getBoundingRect() |
Rectangle2D |
getContentRect() |
double |
getHeight()
Returns the height of the barcode (ignores quiet-zone).
|
double |
getHeight(int orientation) |
double |
getHeightPlusQuiet()
Returns the height of the barcode (quiet-zone included).
|
double |
getHeightPlusQuiet(int orientation) |
double |
getWidth()
Returns the width of the barcode (ignores quiet-zone).
|
double |
getWidth(int orientation) |
double |
getWidthPlusQuiet()
Returns the width of the barcode (quiet-zone included).
|
double |
getWidthPlusQuiet(int orientation) |
double |
getXOffset()
Returns the x-offset of the upper-left corner of the barcode within the
extended barcode area.
|
double |
getYOffset()
Returns the y-offset of the upper-left corner of the barcode within the
extended barcode area.
|
static int |
normalizeOrientation(int orientation) |
String |
toString() |
public BarcodeDimension(double w,
double h)
w - width of the barcode in millimeters (mm).h - height of the barcode in millimeters (mm).public BarcodeDimension(double w,
double h,
double wpq,
double hpq,
double xoffset,
double yoffset)
w - width of the raw barcode (without quiet-zone) in millimeters (mm).h - height of the raw barcode (without quiet-zone) in millimeters (mm).wpq - width of the barcode (quiet-zone included) in millimeters (mm).hpq - height of the barcode (quiet-zone included) in millimeters (mm).xoffset - x-offset if the upper-left corner of the barcode within
the extended barcode area.yoffset - y-offset if the upper-left corner of the barcode within
the extended barcode area.public double getHeight()
public double getHeight(int orientation)
public double getHeightPlusQuiet()
public double getHeightPlusQuiet(int orientation)
public double getWidth()
public static int normalizeOrientation(int orientation)
public double getWidth(int orientation)
public double getWidthPlusQuiet()
public double getWidthPlusQuiet(int orientation)
public double getXOffset()
public double getYOffset()
public Rectangle2D getBoundingRect()
public Rectangle2D getContentRect()
public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2023. All rights reserved.