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

公開メンバ関数

 YubinCustomer (Graphics2D g)
 
 YubinCustomer (String filepath)
 
float getRotateAngle ()
 
void setRotateAngle (float value)
 
int getDPI ()
 
void setDPI (int dpi)
 
int getImgMargin ()
 
void setImgMargin (int value)
 
void draw (String code) throws ErrYubinBadChar
 
void draw (String code, float x, float y) throws ErrYubinBadChar
 
void draw (String code, float x, float y, float point) throws ErrYubinBadChar
 
void draw (String code, float x, float y, float point, String filePath) throws ErrYubinBadChar
 
float getDrawWidth (String code, float point) throws ErrYubinBadChar
 

詳解

Class YubinCustomer is a barcode library used to generate barcode with YubinCustomer method

著者
PAO

構築子と解体子

pao.barcode.YubinCustomer.YubinCustomer ( Graphics2D  g)

Creates a new instance for YubinCustomer

引数
gGraphics where the barcode is going to be generated in
pao.barcode.YubinCustomer.YubinCustomer ( String  filepath)

Creates a new instance for YubinCustomer

引数
filePathoutput image file path

メソッド詳解

void pao.barcode.YubinCustomer.draw ( String  code) throws ErrYubinBadChar

Draws barcode without specific position

引数
codeText to be generated as barcode
例外
ErrYubinBadCharif code contains unknown character
void pao.barcode.YubinCustomer.draw ( String  code,
float  x,
float  y 
) throws ErrYubinBadChar

Draws barcode with specific position

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
例外
ErrYubinBadCharif code contains unknown character
void pao.barcode.YubinCustomer.draw ( String  code,
float  x,
float  y,
float  point 
) throws ErrYubinBadChar

Draws barcode with specific position

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
pointValue indicating barcode's size
例外
ErrYubinBadCharif code contains unknown character
void pao.barcode.YubinCustomer.draw ( String  code,
float  x,
float  y,
float  point,
String  filePath 
) throws ErrYubinBadChar

Draws barcode with specific position

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
pointValue indicating barcode's size
filePathimage file path
例外
ErrYubinBadCharif code contains unknown character
int pao.barcode.YubinCustomer.getDPI ( )

Get DPI for fine adjustment of black bars.(The defined value is 600DPI.)

戻り値
DPI
int pao.barcode.YubinCustomer.getImgMargin ( )

Get Pixel of Image Margin

  • 戻り値
    Pixel of Image Margin
float pao.barcode.YubinCustomer.getRotateAngle ( )

Returns barcode angle

戻り値
barcode angle
void pao.barcode.YubinCustomer.setDPI ( int  dpi)

Set DPI for fine adjustment of black bars.(The defined value is 600DPI.)

引数
dpiDPI
void pao.barcode.YubinCustomer.setImgMargin ( int  value)

Set Pixel of Image Margin

引数
valuePixelof Image Margin
void pao.barcode.YubinCustomer.setRotateAngle ( float  value)

Sets barcode angle

引数
valueBarcode angle

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