![]() |
Barcode.jar
ver 3.0.0
Java 開発者向け バーコード作成ライブラリ
|
pao.barcode.IBarCodeを継承しています。
公開メンバ関数 | |
UpcE (Graphics2D g) | |
UpcE (String filePath) | |
boolean | getTextWrite () |
void | setTextWrite (boolean value) |
boolean | getTextKintou () |
void | setTextKintou (boolean value) |
Font | getTextFont () |
void | setTextFont (Font value) |
float | getRotateAngle () |
void | setRotateAngle (float value) |
int | getKuroBarChousei () |
void | setKuroBarChousei (int value) |
int | getDPI () |
void | setDPI (int dpi) |
int | getImgMargin () |
void | setImgMargin (int value) |
boolean | getDispStartStopCode () |
void | setDispStartStopCode (boolean value) |
void | draw (String code) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | draw (String code, float x, float y, float width, float height) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | draw (String code, float x, float y, float width, float height, String filePath) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | draw (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | draw (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi, boolean roundDecimalPoint) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | drawDelicate (String code, float x, float y, float minLineWidth, float height) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | drawDelicate (String code, float x, float y, float minLineWidth, float height, String filePath) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | drawDirect (String code, float x, float y, float width, float height) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | drawDirect (String code, float x, float y, float width, float height, String filePath) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | drawDirect (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi, boolean roundDecimalPoint) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
void | drawDirect (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
float | getDrawDirectWidth (String code, float width) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
float | getDrawDelicateWidth (String code, float minLineWidth) throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
pao.barcode.UpcE.UpcE | ( | Graphics2D | g | ) |
Creates a new instance for UpcE
g | Graphics where the barcode is going to be generated in |
pao.barcode.UpcE.UpcE | ( | String | filePath | ) |
Creates a new instance for UpcE
filePath | output image file path |
void pao.barcode.UpcE.draw | ( | String | code | ) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Draws barcode without specific position, width, and height
code | Text to be generated as barcode |
ErrUpcEBadChar | if code contains non-numerical value |
ErrUpcEBadLen | if length of code is other than 7 or 8 |
ErrCheckDigitBadChar | if code cannot be calculated with CheckDigit |
ErrUpcECheckDigit | if check digit in code does not match Check Digit's calculation |
void pao.barcode.UpcE.draw | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Draws barcode with specific position, width, and height
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
width | Width of barcode |
height | Height of barcode |
ErrUpcEBadChar | if code contains non-numerical value |
ErrUpcEBadLen | if length of code is other than 7 or 8 |
ErrCheckDigitBadChar | if code cannot be calculated with CheckDigit |
ErrUpcECheckDigit | if check digit in code does not match Check Digit's calculation |
void pao.barcode.UpcE.draw | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
String | filePath | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Draws barcode with specific position, width, and height
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
width | Width of barcode |
height | Height of barcode |
filePath | image file path |
ErrUpcEBadChar | if code contains non-numerical value |
ErrUpcEBadLen | if length of code is other than 7 or 8 |
ErrCheckDigitBadChar | if code cannot be calculated with CheckDigit |
ErrUpcECheckDigit | if check digit in code does not match Check Digit's calculation |
void pao.barcode.UpcE.draw | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
GraphicsUnit | gu, | ||
int | dpi | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Draws barcode with specific position, width, and height
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
width | Width of barcode |
height | Height of barcode |
gu | Graphics Unit (mm, Inch, Point, Pixel) |
dpi | Output Device dpi |
ErrUpcEBadChar,ErrUpcEBadLen,ErrCheckDigitBadChar,ErrUpcECheckDigit | if code contains unknown character |
void pao.barcode.UpcE.draw | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
GraphicsUnit | gu, | ||
int | dpi, | ||
boolean | roundDecimalPoint | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
width | Width of barcode |
height | Height of barcode |
gu | Graphics Unit (mm, Inch, Point, Pixel) |
dpi | Output Device dpi |
roundDecimal | Rounding a decimal point |
ErrUpcEBadChar,ErrUpcEBadLen,ErrCheckDigitBadChar,ErrUpcECheckDigit | if code contains unknown character |
void pao.barcode.UpcE.drawDelicate | ( | String | code, |
float | x, | ||
float | y, | ||
float | minLineWidth, | ||
float | height | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Draws barcode with specific position, minimum line width, and height
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
minLineWidth | Minimum line width of barcode |
height | Height of barcode |
ErrUpcEBadChar | if code contains non-numerical value |
ErrUpcEBadLen | if length of code is other than 7 or 8 |
ErrCheckDigitBadChar | if code cannot be calculated with CheckDigit |
ErrUpcECheckDigit | if check digit in code does not match Check Digit's calculation |
void pao.barcode.UpcE.drawDelicate | ( | String | code, |
float | x, | ||
float | y, | ||
float | minLineWidth, | ||
float | height, | ||
String | filePath | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Draws barcode with specific position, minimum line width, and height
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
minLineWidth | Minimum line width of barcode |
height | Height of barcode |
filePath | image file path |
ErrUpcEBadChar | if code contains non-numerical value |
ErrUpcEBadLen | if length of code is other than 7 or 8 |
ErrCheckDigitBadChar | if code cannot be calculated with CheckDigit |
ErrUpcECheckDigit | if check digit in code does not match Check Digit's calculation |
void pao.barcode.UpcE.drawDirect | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
width | Width of barcode |
height | Height of barcode |
ErrUpcEBadChar | if code contains non-numerical value |
ErrUpcEBadLen | if length of code is other than 7 or 8 |
ErrCheckDigitBadChar | if code cannot be calculated with CheckDigit |
ErrUpcECheckDigit | if check digit in code does not match Check Digit's calculation |
void pao.barcode.UpcE.drawDirect | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
String | filePath | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
width | Width of barcode |
height | Height of barcode |
filePath | image file path |
ErrUpcEBadChar | if code contains non-numerical value |
ErrUpcEBadLen | if length of code is other than 7 or 8 |
ErrCheckDigitBadChar | if code cannot be calculated with CheckDigit |
ErrUpcECheckDigit | if check digit in code does not match Check Digit's calculation |
void pao.barcode.UpcE.drawDirect | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
GraphicsUnit | gu, | ||
int | dpi, | ||
boolean | roundDecimalPoint | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
width | Width of barcode |
height | Height of barcode |
gu | Graphics Unit (mm, Inch, Point, Pixel) |
dpi | Output Device dpi |
roundDecimal | Rounding a decimal point |
ErrUpcEBadChar,ErrUpcEBadLen,ErrCheckDigitBadChar,ErrUpcECheckDigit | if code contains unknown character |
void pao.barcode.UpcE.drawDirect | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
GraphicsUnit | gu, | ||
int | dpi | ||
) | throws ErrUpcEBadChar, ErrUpcEBadLen, ErrCheckDigitBadChar, ErrUpcECheckDigit, pao.error.ErrUpcEBadCodeForCheckDigit |
Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
width | Width of barcode |
height | Height of barcode |
ErrUpcEBadChar,ErrUpcEBadLen,ErrCheckDigitBadChar,ErrUpcECheckDigit | if code contains unknown character |
boolean pao.barcode.UpcE.getDispStartStopCode | ( | ) |
Returns true if start-stop-code will be generated along with barcode (dummy for interface)
int pao.barcode.UpcE.getDPI | ( | ) |
Get DPI for fine adjustment of black bars.(The defined value is 600DPI.)
int pao.barcode.UpcE.getImgMargin | ( | ) |
Get Pixel of Image Margin
int pao.barcode.UpcE.getKuroBarChousei | ( | ) |
Set number of dot for fine adjustment of black bars.(The defined value of dot is 0.)
value | The number of dot for fine adjustment of black bars. |
float pao.barcode.UpcE.getRotateAngle | ( | ) |
Returns barcode angle
Font pao.barcode.UpcE.getTextFont | ( | ) |
Gets the font used in writing text
boolean pao.barcode.UpcE.getTextKintou | ( | ) |
Get drawing position drawing position (to fit a barcode to set width).
boolean pao.barcode.UpcE.getTextWrite | ( | ) |
Returns true if text will be generated along with the barcode
void pao.barcode.UpcE.setDispStartStopCode | ( | boolean | value | ) |
Enables or disables start-stop-code (dummy for interface)
value | true to enable start-stop-code, false to disable it |
void pao.barcode.UpcE.setDPI | ( | int | dpi | ) |
Set DPI for fine adjustment of black bars.(The defined value is 600DPI.)
dpi | DPI |
void pao.barcode.UpcE.setImgMargin | ( | int | value | ) |
Set Pixel of Image Margin
value | Pixelof Image Margin |
void pao.barcode.UpcE.setKuroBarChousei | ( | int | value | ) |
Set number of dot for fine adjustment of black bars.(The defined value of dot is 0.)
value | The number of dot for fine adjustment of black bars. |
void pao.barcode.UpcE.setRotateAngle | ( | float | value | ) |
Sets barcode angle
value | Barcode angle |
void pao.barcode.UpcE.setTextFont | ( | Font | value | ) |
Sets the font used in writing text
value | Font used in writing text |
void pao.barcode.UpcE.setTextKintou | ( | boolean | value | ) |
Set drawing position drawing position (to fit a barcode to set width).
value | true: Draw barcode within an overall width by equal spacing, false: Draw barcode at a bar meaning a code (default) |
void pao.barcode.UpcE.setTextWrite | ( | boolean | value | ) |
Enables or disables text writing
value | true to enable text writing, false to disable it |