Barcode.jar  ver 3.0.0
Java 開発者向け バーコード作成ライブラリ
クラス | 公開メンバ関数 | 限定公開メンバ関数 | 静的限定公開メンバ関数 | 限定公開変数類 | 静的限定公開変数類 | 全メンバ一覧
pao.barcode.Pdf417 クラス

クラス

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
 

静的限定公開変数類

static final int START_PATTERN = 0x1fea8
 
static final int STOP_PATTERN = 0x3fa29
 
static final int START_CODE_SIZE = 17
 
static final int STOP_SIZE = 18
 
static final int MOD = 929
 
static final int ALPHA = 0x10000
 
static final int LOWER = 0x20000
 
static final int MIXED = 0x40000
 
static final int PUNCTUATION = 0x80000
 
static final int ISBYTE = 0x100000
 
static final int BYTESHIFT = 913
 
static final int PL = 25
 
static final int LL = 27
 
static final int AS = 27
 
static final int ML = 28
 
static final int AL = 28
 
static final int PS = 29
 
static final int PAL = 29
 
static final int SPACE = 26
 
static final int TEXT_MODE = 900
 
static final int BYTE_MODE_6 = 924
 
static final int BYTE_MODE = 901
 
static final int NUMERIC_MODE = 902
 
static final int ABSOLUTE_MAX_TEXT_SIZE = 5420
 
static final int MAX_DATA_CODEWORDS = 926
 

詳解

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

構築子と解体子

pao.barcode.Pdf417.Pdf417 ( Graphics2D  g)

Creates a new instance for Pdf417

引数
gGraphics where the two-dimensional barcode is going to be generated in
pao.barcode.Pdf417.Pdf417 ( String  filepath)

Creates a new instance for Pdf417

引数
filePathoutput 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

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
例外
Exceptionnone
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

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
filePathimage file path
例外
Exceptionnone
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

引数
codebyte array to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
例外
Exceptionnone
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

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
minLinePitchMinimum line pitch of barcode
例外
Exceptionnone
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

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
minLinePitchMinimum line pitch of barcode
filePathimage file path
例外
Exceptionnone
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

引数
codebyte array to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
minLinePitchMinimum line pitch of barcode
例外
Exceptionnone
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

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
例外
Exceptionnone
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

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
filePathimage file path
例外
Exceptionnone
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

引数
codebyte array to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
例外
Exceptionnone
float pao.barcode.Pdf417.getAspectRatio ( )

Gets the barcode aspect ratio.

戻り値
the barcode aspect ratio
int pao.barcode.Pdf417.getBitColumns ( )
protected

Gets the number of X pixels of outBits.

戻り値
the number of X pixels of outBits
int pao.barcode.Pdf417.getCodeColumns ( )

Gets the number of barcode data columns.

戻り値
he 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.

戻り値
the number of Y pixels of outBits
int [] pao.barcode.Pdf417.getCodewords ( )
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.

戻り値
the codeword array
int pao.barcode.Pdf417.getErrorLevel ( )

Gets the error level correction used for the barcode. It may different from the previously set value.

戻り値
the error level correction used for the barcode
int pao.barcode.Pdf417.getImgMargin ( )

Get Pixel of Image Margin

  • 戻り値
    Pixel of Image Margin
int pao.barcode.Pdf417.getLenCodewords ( )
protected

Gets the length of the codewords.

戻り値
the length of the codewords
int pao.barcode.Pdf417.getOptions ( )
protected

Gets the options to generate the barcode.

戻り値
the options to generate the barcode
byte [] pao.barcode.Pdf417.getOutBits ( )
protected

Gets the raw image bits of the barcode. The image will have to be scaled in the Y direction by yHeight.

戻り値
The raw barcode image
float pao.barcode.Pdf417.getRotateAngle ( )

Returns barcode angle

戻り値
barcode angle
SIZE_KIND pao.barcode.Pdf417.getSizeKind ( )

Gets Number of columns, number of rows decision

戻り値
AUTO COLUMNS ROWS COLUMNS_AND_LOWS
String pao.barcode.Pdf417.getStringEncoding ( ) throws Exception

全角文字コード getBytes()の引数は受け付けます。 規定値:"UTF-8" 例:"SJIS" ...等...

byte [] pao.barcode.Pdf417.getText ( )
protected

Gets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437.

戻り値
the bytes that form the barcode
boolean pao.barcode.Pdf417.getUseAutoErrorLevel ( )

Get Use Auto Error Level

戻り値
true or false
float pao.barcode.Pdf417.getYHeight ( )
protected

Gets the Y pixel height relative to X.

戻り値
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.

引数
aspectRatiothe 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.

引数
codeColumnsthe 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.

引数
codeRowsthe number of barcode rows
void pao.barcode.Pdf417.setErrorLevel ( int  errorLevel)

Sets the error level correction for the barcode.

引数
errorLevelthe error level correction for the barcode
void pao.barcode.Pdf417.setImgMargin ( int  value)

Set Pixel of Image Margin

引数
valuePixelof Image Margin
void pao.barcode.Pdf417.setLenCodewords ( int  lenCodewords)
protected

Sets the length of the codewords.

引数
lenCodewordsthe length of the codewords
void pao.barcode.Pdf417.setOptions ( int  options)
protected

Sets the options to generate the barcode. This can be all the PDF417_* constants.

引数
optionsthe options to generate the barcode
void pao.barcode.Pdf417.setSizeKind ( SIZE_KIND  sizeKind)

Sets Number of columns, number of rows decision

引数
AUTOCOLUMNS ROWS COLUMNS_AND_LOWS
void pao.barcode.Pdf417.setText ( byte[]  text)
protected

Sets the bytes that form the barcode. This bytes should be interpreted in the codepage Cp437.

引数
textthe bytes that form the barcode
void pao.barcode.Pdf417.setText ( String  s) throws UnsupportedEncodingException
protected

Sets the text that will form the barcode. This text is converted to bytes using the encoding Cp437.

引数
sthe text that will form the barcode
例外
UnsupportedEncodingExceptionif the encoding Cp437 is not supported
void pao.barcode.Pdf417.setUseAutoErrorLevel ( boolean  useAutoErrorLevel)

Set Use Auto Error Level

引数
trueor false
void pao.barcode.Pdf417.setYHeight ( float  yHeight)
protected

Sets the Y pixel height relative to X. It is usually 3.

引数
yHeightthe Y pixel height relative to X
void pao.barcode.Pdf417.WriteSVG ( String  code,
float  x,
float  y,
float  minLinePitch,
String  filePath 
) throws Exception
引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
minLinePitchMinimum line pitch of barcode
filePathSVG file pathname
例外
Exceptionnone
void pao.barcode.Pdf417.WriteSVG ( byte  code[],
float  x,
float  y,
float  minLinePitch,
String  filePath 
) throws Exception
引数
codebyte array to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
minLinePitchMinimum line pitch of barcode
filePathSVG file pathname
例外
Exceptionnone

このクラス詳解は次のファイルから抽出されました: