|
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.BarcodeDimension
public class BarcodeDimension
This class provides information on the dimensions of a barcode. It makes a distinction between the dimensions with and without quiet zone.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
java.awt.geom.Rectangle2D |
getBoundingRect()
|
java.awt.geom.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)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 java.awt.geom.Rectangle2D getBoundingRect()
public java.awt.geom.Rectangle2D getContentRect()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |