![]() |
Barcode.jar
ver 3.0.0
Java 開発者向け バーコード作成ライブラリ
|
クラス | |
enum | SIZE_KIND |
公開メンバ関数 | |
Pdf417 (Graphics2D g) | |
Pdf417 (String filepath) | |
String | getStringEncoding () throws Exception |
void | setStringEncoding (String value) throws Exception |
float | getRotateAngle () |
int | getImgMargin () |
void | setImgMargin (int value) |
SIZE_KIND | getSizeKind () |
void | setSizeKind (SIZE_KIND sizeKind) |
int | getCodeRows () |
void | setCodeRows (int codeRows) |
int | getCodeColumns () |
void | setCodeColumns (int codeColumns) |
int | getErrorLevel () |
void | setErrorLevel (int errorLevel) |
boolean | getUseAutoErrorLevel () |
void | setUseAutoErrorLevel (boolean useAutoErrorLevel) |
float | getAspectRatio () |
void | setAspectRatio (float aspectRatio) |
void | paintCode () |
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, float height) throws Exception |
void | drawDirect (String code, float x, float y, float width, float height, String filePath) throws Exception |
void | drawDirect (byte code[], float x, float y, float width, float height) 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 |
限定公開メンバ関数 | |
byte[] | getOutBits () |
int | getBitColumns () |
int[] | getCodewords () |
int | getLenCodewords () |
void | setLenCodewords (int lenCodewords) |
byte[] | getText () |
void | setText (byte[] text) |
void | setText (String s) throws UnsupportedEncodingException |
int | getOptions () |
void | setOptions (int options) |
float | getYHeight () |
void | setYHeight (float yHeight) |
boolean | checkSegmentType (Segment segment, char type) |
int | getSegmentLength (Segment segment) |
void | outCodeword17 (int codeword) |
void | outCodeword18 (int codeword) |
void | outCodeword (int codeword) |
void | outStopPattern () |
void | outStartPattern () |
void | outPaintCode () |
void | calculateErrorCorrection (int dest) |
int | getTextTypeAndValue (int maxLength, int idx) |
void | textCompaction (int start, int length) |
void | basicNumberCompaction (int start, int length) |
void | numberCompaction (int start, int length) |
void | byteCompaction6 (int start) |
void | assemble () |
void | dumpList () |
int | getMaxSquare () |
静的限定公開メンバ関数 | |
static int | maxPossibleErrorLevel (int remain) |
限定公開変数類 | |
int | bitPtr |
int | cwPtr |
SegmentList | segmentList |
Class Pdf417 is a two-dimensional barcode library used to generate barcode with Pdf417 method.
PDF417 is capable of handling all types of data, such as numeric and alphabetic characters, Kanji, Kana, Hiragana, symbols, binary, and control codes.
pao.barcode.Pdf417.Pdf417 | ( | Graphics2D | g | ) |
Creates a new instance for Pdf417
g | Graphics where the two-dimensional barcode is going to be generated in |
pao.barcode.Pdf417.Pdf417 | ( | String | filepath | ) |
Creates a new instance for Pdf417
filePath | output image file path |
void pao.barcode.Pdf417.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.Pdf417.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.Pdf417.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.Pdf417.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.Pdf417.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.Pdf417.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.Pdf417.drawDirect | ( | 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.Pdf417.drawDirect | ( | 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.Pdf417.drawDirect | ( | 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 |
float pao.barcode.Pdf417.getAspectRatio | ( | ) |
Gets the barcode aspect ratio.
|
protected |
Gets the number of X pixels of outBits
.
outBits
int pao.barcode.Pdf417.getCodeColumns | ( | ) |
Gets the number of barcode data columns.
int pao.barcode.Pdf417.getCodeRows | ( | ) |
Gets the number of Y pixels of outBits
. It is also the number of rows in the barcode.
outBits
|
protected |
Gets the codeword array. This array is always 928 elements long. It can be writen to if the option PDF417_USE_RAW_CODEWORDS
is set.
int pao.barcode.Pdf417.getErrorLevel | ( | ) |
Gets the error level correction used for the barcode. It may different from the previously set value.
int pao.barcode.Pdf417.getImgMargin | ( | ) |
Get Pixel of Image Margin
|
protected |
Gets the length of the codewords.
|
protected |
Gets the options to generate the barcode.
|
protected |
Gets the raw image bits of the barcode. The image will have to be scaled in the Y direction by yHeight
.
float pao.barcode.Pdf417.getRotateAngle | ( | ) |
Returns barcode angle
SIZE_KIND pao.barcode.Pdf417.getSizeKind | ( | ) |
Gets Number of columns, number of rows decision
String pao.barcode.Pdf417.getStringEncoding | ( | ) | throws Exception |
全角文字コード getBytes()の引数は受け付けます。 規定値:"UTF-8" 例:"SJIS" ...等...
|
protected |
Gets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437.
boolean pao.barcode.Pdf417.getUseAutoErrorLevel | ( | ) |
Get Use Auto Error Level
|
protected |
Gets the Y pixel height relative to X.
void pao.barcode.Pdf417.paintCode | ( | ) |
Paints the barcode. If no exception was thrown a valid barcode is available.
void pao.barcode.Pdf417.setAspectRatio | ( | float | aspectRatio | ) |
Sets the barcode aspect ratio. A ratio or 0.5 will make the barcode width twice as large as the height.
aspectRatio | the barcode aspect ratio |
void pao.barcode.Pdf417.setCodeColumns | ( | int | codeColumns | ) |
Sets the number of barcode data columns. This number may be changed to keep the barcode valid.
codeColumns | the number of barcode data columns |
void pao.barcode.Pdf417.setCodeRows | ( | int | codeRows | ) |
Sets the number of barcode rows. This number may be changed to keep the barcode valid.
codeRows | the number of barcode rows |
void pao.barcode.Pdf417.setErrorLevel | ( | int | errorLevel | ) |
Sets the error level correction for the barcode.
errorLevel | the error level correction for the barcode |
void pao.barcode.Pdf417.setImgMargin | ( | int | value | ) |
Set Pixel of Image Margin
value | Pixelof Image Margin |
|
protected |
Sets the length of the codewords.
lenCodewords | the length of the codewords |
|
protected |
Sets the options to generate the barcode. This can be all the PDF417_*
constants.
options | the options to generate the barcode |
void pao.barcode.Pdf417.setSizeKind | ( | SIZE_KIND | sizeKind | ) |
Sets Number of columns, number of rows decision
AUTO | COLUMNS ROWS COLUMNS_AND_LOWS |
|
protected |
Sets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437.
text | the bytes that form the barcode |
|
protected |
Sets the text that will form the barcode. This text is converted to bytes using the encoding Cp437.
s | the text that will form the barcode |
UnsupportedEncodingException | if the encoding Cp437 is not supported |
void pao.barcode.Pdf417.setUseAutoErrorLevel | ( | boolean | useAutoErrorLevel | ) |
Set Use Auto Error Level
true | or false |
|
protected |
Sets the Y pixel height relative to X. It is usually 3.
yHeight | the Y pixel height relative to X |
void pao.barcode.Pdf417.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.Pdf417.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 |