![]() |
Barcode.jar
ver 3.0.0
Java 開発者向け バーコード作成ライブラリ
|
公開メンバ関数 | |
DataMatrix (Graphics2D g) | |
DataMatrix (String filepath) | |
String | getStringEncoding () throws Exception |
void | setStringEncoding (String value) throws Exception |
DxCodeSize | getCodeSize () throws Exception |
void | setCodeSize (DxCodeSize value) throws Exception |
float | getRotateAngle () |
int | getImgMargin () |
void | setImgMargin (int value) |
void | draw (byte[] data, float x, float y, float width, float height) throws Exception |
void | draw (byte[] data, float x, float y, float width, float height, String imgFilePath) throws Exception |
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 | drawDelicate (byte[] data, float x, float y, float minLinePitch) throws Exception |
void | drawDelicate (byte[] data, float x, float y, float minLinePitch, String imgFilePath) 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 | drawDirect (byte[] data, float x, float y, float width, float height) throws Exception |
void | drawDirect (byte[] data, float x, float y, float width, float height, String imgFilePath) throws Exception |
void | drawDirect (String code, float x, float y, float width, float height) throws Exception |
void | drawDirect (String code, float x, float y, float width, float height, String filePath) throws Exception |
void | WriteSVG (String code, float x, float y, float minLinePitch, String filePath) throws Exception |
void | WriteSVG (byte data[], 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 DataMatrix is a two-dimensional barcode library used to generate barcode with DataMatrix 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 DataMatrix supports 3 encode mode: Numeric, Alphanumeric, and Binary 8 bit
pao.barcode.DataMatrix.DataMatrix | ( | Graphics2D | g | ) |
Byte Data Creates a new instance for DataMatrix
g | Graphics where the two-dimensional barcode is going to be generated in |
pao.barcode.DataMatrix.DataMatrix | ( | String | filepath | ) |
Creates a new instance for DataMatrix
filePath | output image file path |
void pao.barcode.DataMatrix.draw | ( | byte[] | data, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) | throws Exception |
バーコードの描画を行う
data | バーコードに格納するデータをバイト配列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
width | バーコードの全体の幅を指定 |
height | バーコードのバーの高さを指定 |
void pao.barcode.DataMatrix.draw | ( | byte[] | data, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
String | imgFilePath | ||
) | throws Exception |
バーコードを描画する コンストラクタでImageFormat指定時、画像ファイルに描画する。
data | バーコードに格納するデータをバイト配列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
width | バーコードの全体の幅を指定 |
height | バーコードのバーの高さを指定 |
imgFilePath | 画像ファイルパス |
void pao.barcode.DataMatrix.draw | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) | throws Exception |
バーコードの描画を行う
code | 描画を行うバーコードのコードを文字列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
width | バーコードの全体の幅を指定 |
height | バーコードのバーの高さを指定 |
void pao.barcode.DataMatrix.draw | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
String | filePath | ||
) | throws Exception |
バーコードを描画する コンストラクタでImageFormat指定時、画像ファイルに描画する。
code | 描画を行うバーコードのコードを文字列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
width | バーコードの全体の幅を指定 |
height | バーコードのバーの高さを指定 |
imgFilePath | 画像ファイルパス |
void pao.barcode.DataMatrix.drawDelicate | ( | byte[] | data, |
float | x, | ||
float | y, | ||
float | minLinePitch | ||
) | throws Exception |
バーコードの描画を行う
code | 描画を行うバーコードのコードを文字列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
minLinePitch | バーコードを描画する間隔の最小幅の値を指定 |
void pao.barcode.DataMatrix.drawDelicate | ( | byte[] | data, |
float | x, | ||
float | y, | ||
float | minLinePitch, | ||
String | imgFilePath | ||
) | throws Exception |
バーコードの描画を行います。Draw メソッドとの違いは、バーコード全体の幅を指定するのではなく、バーを描画する一番細い線の幅を指定します。 コンストラクタでImageFormat指定時、画像ファイルに描画する。
code | 描画を行うバーコードのコードを文字列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
minLinePitch | バーコードを描画するバーの最小ピッチの値を指定 |
imgFilePath | 画像ファイルパス |
void pao.barcode.DataMatrix.drawDelicate | ( | String | code, |
float | x, | ||
float | y, | ||
float | minLinePitch | ||
) | throws Exception |
バーコードの描画を行う(バイナリ格納)
data | バーコードに格納するデータをバイト配列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
minLinePitch | バーコードを描画する間隔の最小幅の値を指定 |
void pao.barcode.DataMatrix.drawDelicate | ( | String | code, |
float | x, | ||
float | y, | ||
float | minLinePitch, | ||
String | filePath | ||
) | throws Exception |
バーコードの描画を行います。Draw メソッドとの違いは、バーコード全体の幅を指定するのではなく、バーを描画する一番細い線の幅を指定します。 コンストラクタでImageFormat指定時、画像ファイルに描画する。 (バイナリ格納)
data | バーコードに格納するデータをバイト配列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
minLinePitch | バーコードを描画するバーの最小ピッチの値を指定 |
imgFilePath | 画像ファイルパス |
void pao.barcode.DataMatrix.drawDirect | ( | byte[] | data, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) | throws Exception |
バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。 (バイナリ格納)
data | バーコードに格納するデータをバイト配列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
width | バーコードの全体の幅を指定 |
height | バーコードのバーの高さを指定 |
void pao.barcode.DataMatrix.drawDirect | ( | byte[] | data, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
String | imgFilePath | ||
) | throws Exception |
バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。 (バイナリ格納)
data | バーコードに格納するデータをバイト配列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
width | バーコードの全体の幅を指定 |
height | バーコードのバーの高さを指定 |
imgFilePath | 画像ファイルパス |
void pao.barcode.DataMatrix.drawDirect | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) | throws Exception |
バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。
code | 描画を行うバーコードのコードを文字列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
width | バーコードの全体の幅を指定 |
height | バーコードのバーの高さを指定 |
void pao.barcode.DataMatrix.drawDirect | ( | String | code, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
String | filePath | ||
) | throws Exception |
バーコードを指定した幅以内にピクセル単位でダイレクトに描画します。 幅が固定でありませんが、通常のDrawメソッドより精度・描画速度がよいです。
code | 描画を行うバーコードのコードを文字列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
width | バーコードの全体の幅を指定 |
height | バーコードのバーの高さを指定 |
imgFilePath | 画像ファイルパス |
DxCodeSize pao.barcode.DataMatrix.getCodeSize | ( | ) | throws Exception |
シンボル コード サイズ
int pao.barcode.DataMatrix.getImgMargin | ( | ) |
Get Pixel of Image Margin
float pao.barcode.DataMatrix.getRotateAngle | ( | ) |
Returns barcode angle
String pao.barcode.DataMatrix.getStringEncoding | ( | ) | throws Exception |
全角文字コード getBytes()の引数は受け付けます。 規定値:"UTF-8" 例:"SJIS" ...等...
void pao.barcode.DataMatrix.setImgMargin | ( | int | value | ) |
Set Pixel of Image Margin
value | Pixelof Image Margin |
void pao.barcode.DataMatrix.WriteSVG | ( | String | code, |
float | x, | ||
float | y, | ||
float | minLinePitch, | ||
String | filePath | ||
) | throws Exception |
SVGファイルへのバーコードの出力を行います。
code | 描画を行うバーコードのコードを文字列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
minLinePitch | バーコードを描画する間隔の最小幅の値を指定 |
filePath | SVGファイルのファイル名をフルパスで指定 |
void pao.barcode.DataMatrix.WriteSVG | ( | byte | data[], |
float | x, | ||
float | y, | ||
float | minLinePitch, | ||
String | filePath | ||
) | throws Exception |
SVGファイルへのバーコードの出力を行います。
data | バーコードに格納するデータをバイト配列で指定 |
x | 描画位置の始点(左上)のX座標を指定 |
y | 描画位置の始点(左上)のY座標を指定 |
minLinePitch | バーコードを描画する間隔の最小幅の値を指定 |
filePath | SVGファイルのファイル名をフルパスで指定 |