![]() |
Barcode.jar
ver 3.0.0
Java 開発者向け バーコード作成ライブラリ
|
公開メンバ関数 | |
QRCode (Graphics2D g) | |
QRCode (String filepath) | |
String | getStringEncoding () throws Exception |
void | setStringEncoding (String value) throws Exception |
String | getErrorCorrect () |
void | setErrorCorrect (String value) |
int | getVersion () |
void | setVersion (int value) |
String | getEncodeMode () |
void | setEncodeMode (String value) |
float | getRotateAngle () |
int | getImgMargin () |
void | setImgMargin (int value) |
void | draw (String code, float x, float y, float width, float height) throws Exception |
void | draw (String code, float x, float y, float width, float height, String filePath) throws Exception |
void | draw (byte code[], float x, float y, float width, float height) throws Exception |
void | drawDelicate (String code, float x, float y, float minLinePitch) throws Exception |
void | drawDelicate (String code, float x, float y, float minLinePitch, String filePath) throws Exception |
void | drawDelicate (byte code[], float x, float y, float minLinePitch) throws Exception |
void | drawDirect (String code, float x, float y, float width) throws Exception |
void | drawDirect (String code, float x, float y, float width, String filePath) throws Exception |
void | drawDirect (byte code[], float x, float y, float width) throws Exception |
void | WriteSVG (String code, float x, float y, float minLinePitch, String filePath) throws Exception |
void | WriteSVG (byte code[], float x, float y, float minLinePitch, String filePath) throws Exception |
float | getDrawDelicateWidth (String code, float minLinePitch) throws Exception |
float | getDrawDelicateWidth (byte code[], float minLinePitch) throws Exception |
float | getDrawDirectWidth (String code, float width) throws Exception |
float | getDrawDirectWidth (byte code[], float width) throws Exception |
Class QRCode is a two-dimensional barcode library used to generate barcode with QRCode method.
QR Code is capable of handling all types of data, such as numeric and alphabetic characters, Kanji, Kana, Hiragana, symbols, binary, and control codes. Up to 7,089 characters can be encoded in one symbol.
The capacity differs from each encode mode: Numeric only Max. 7,089 characters Alphanumeric Max. 4,296 characters Binary (8 bits) Max. 2,953 bytes Kanji, full-width Kana Max. 1,817 characters
Class QRCode supports 3 encode mode: Numeric, Alphanumeric, and Binary 8 bit
pao.barcode.QRCode.QRCode | ( | Graphics2D | g | ) |
Creates a new instance for QRCode
g | Graphics where the two-dimensional barcode is going to be generated in |
pao.barcode.QRCode.QRCode | ( | String | filepath | ) |
Creates a new instance for QRCode
filePath | output image file path |
void pao.barcode.QRCode.draw | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) | throws Exception |
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) |
width | Width of barcode |
height | Height of barcode |
Exception | none |
void pao.barcode.QRCode.draw | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
String | filePath | ||
) | throws Exception |
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) |
width | Width of barcode |
height | Height of barcode |
filePath | image file path |
Exception | none |
void pao.barcode.QRCode.draw | ( | byte | code[], |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) | throws Exception |
Draws barcode with specific position, minimum line width, and height
code | byte array 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 |
Exception | none |
void pao.barcode.QRCode.drawDelicate | ( | String | code, |
float | x, | ||
float | y, | ||
float | minLinePitch | ||
) | throws Exception |
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) |
minLinePitch | Minimum line pitch of barcode |
Exception | none |
void pao.barcode.QRCode.drawDelicate | ( | String | code, |
float | x, | ||
float | y, | ||
float | minLinePitch, | ||
String | filePath | ||
) | throws Exception |
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) |
minLinePitch | Minimum line pitch of barcode |
filePath | image file path |
Exception | none |
void pao.barcode.QRCode.drawDelicate | ( | byte | code[], |
float | x, | ||
float | y, | ||
float | minLinePitch | ||
) | throws Exception |
Draws barcode with specific position, minimum line width, and height
code | byte array to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
minLinePitch | Minimum line pitch of barcode |
Exception | none |
void pao.barcode.QRCode.drawDirect | ( | String | code, |
float | x, | ||
float | y, | ||
float | width | ||
) | throws Exception |
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) |
width | Width of barcode |
Exception | none |
void pao.barcode.QRCode.drawDirect | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
String | filePath | ||
) | throws Exception |
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) |
width | Width of barcode |
filePath | image file path |
Exception | none |
void pao.barcode.QRCode.drawDirect | ( | byte | code[], |
float | x, | ||
float | y, | ||
float | width | ||
) | throws Exception |
Draws barcode with specific position, minimum line width, and height
code | byte array to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
width | Width of barcode |
Exception | none |
String pao.barcode.QRCode.getEncodeMode | ( | ) |
Returns encode mode
String pao.barcode.QRCode.getErrorCorrect | ( | ) |
Sets error correct level
value | Error correct level ("L"/"Q"/"H"/other) "L": Approx. 7% of codewords can be restored "Q": Approx. 25% of codewords can be restored "H": Approx. 30% of codewords can be restored other: Approx. 15% of codewords can be restored |
int pao.barcode.QRCode.getImgMargin | ( | ) |
Get Pixel of Image Margin
float pao.barcode.QRCode.getRotateAngle | ( | ) |
Returns barcode angle
String pao.barcode.QRCode.getStringEncoding | ( | ) | throws Exception |
全角文字コード getBytes()の引数は受け付けます。 規定値:"SJIS" 例:"UTF-8" ...等...
int pao.barcode.QRCode.getVersion | ( | ) |
Returns barcode version
void pao.barcode.QRCode.setEncodeMode | ( | String | value | ) |
Sets encode mode
value | Encode mode ("A" for Aplhanumeric, "N" for numeric, and other for binary 8-bits) |
void pao.barcode.QRCode.setErrorCorrect | ( | String | value | ) |
エラー訂正レベルを設定
value | エラー訂正レベル ("L"/"Q"/"H"/other) "L": Approx. 7% of codewords can be restored "Q": Approx. 25% of codewords can be restored "H": Approx. 30% of codewords can be restored other: Approx. 15% of codewords can be restored |
void pao.barcode.QRCode.setImgMargin | ( | int | value | ) |
Set Pixel of Image Margin
value | Pixelof Image Margin |
void pao.barcode.QRCode.setVersion | ( | int | value | ) |
Sets barcode version
value | Barcode version (ranged from 0 to 40, put 0 to select version automatically) |
void pao.barcode.QRCode.WriteSVG | ( | String | code, |
float | x, | ||
float | y, | ||
float | minLinePitch, | ||
String | filePath | ||
) | throws Exception |
code | Text to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
minLinePitch | Minimum line pitch of barcode |
filePath | SVG file pathname |
Exception | none |
void pao.barcode.QRCode.WriteSVG | ( | byte | code[], |
float | x, | ||
float | y, | ||
float | minLinePitch, | ||
String | filePath | ||
) | throws Exception |
code | byte array to be generated as barcode |
x | Position of barcode (X axis) |
y | Position of barcode (Y axis) |
minLinePitch | Minimum line pitch of barcode |
filePath | SVG file pathname |
Exception | none |