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

公開メンバ関数

 EAN128 ()
 
 EAN128 (Graphics2D g)
 
 EAN128 (String filePath)
 
void SetGraphics (Graphics2D g)
 
void setTextWrite (boolean value)
 
boolean getTextWrite ()
 
void setTextKintou (boolean value)
 
boolean getTextKintou ()
 
void setTextFont (Font value)
 
Font getTextFont ()
 
void setRotateAngle (float value)
 
float getRotateAngle ()
 
int getKuroBarChousei ()
 
void setKuroBarChousei (int value)
 
int getDPI ()
 
void setDPI (int dpi)
 
int getImgMargin ()
 
void setImgMargin (int value)
 
boolean getDispStartStopCode ()
 
void setDispStartStopCode (boolean value)
 
CodeSet128 getCodeABC ()
 
void setCodeABC (CodeSet128 _codeABC)
 
void draw (String code)
 
void draw (String code, float x, float y, float width, float height)
 
void draw (String code, float x, float y, float width, float height, String filePath)
 
void draw (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi)
 
void draw (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi, boolean roundDecimalPoint)
 
void drawDelicate (String code, float x, float y, float minLineWidth, float height)
 
void drawDelicate (String code, float x, float y, float minLineWidth, float height, String filePath)
 
void drawDirect (String code, float x, float y, float width, float height)
 
void drawDirect (String code, float x, float y, float width, float height, String filePath)
 
void drawDirect (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi, boolean roundDecimalPoint)
 
void drawDirect (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi)
 
void drawConvenienceDelicate (String code, float x, float y, float minLineWidth, float height)
 
void drawConvenience (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi, boolean roundDecimalPoint)
 
void drawConvenienceDirect (String code, float x, float y, float width, float height, GraphicsUnit gu, int dpi, boolean roundDecimalPoint)
 
void pDrawConvenienceDelicate (String code, float mmX, float mmY, float mmHeight)
 
float getDrawDirectWidth (String code, float width)
 
float getDrawDelicateWidth (String code, float minLineWidth)
 
float getDrawConvenienceDelicateWidth (String code, float minLineWidth)
 

詳解

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

著者
PAO

構築子と解体子

pao.barcode.EAN128.EAN128 ( )

Creates a new instance for EAN128

pao.barcode.EAN128.EAN128 ( Graphics2D  g)

Creates a new instance for EAN128

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

Creates a new instance for EAN128

引数
filePathoutput image file path

メソッド詳解

void pao.barcode.EAN128.draw ( String  code)

Draws barcode without specific position, width, and height

引数
codeText to be generated as barcode
void pao.barcode.EAN128.draw ( String  code,
float  x,
float  y,
float  width,
float  height 
)

Draws barcode with specific position, 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
void pao.barcode.EAN128.draw ( String  code,
float  x,
float  y,
float  width,
float  height,
String  filePath 
)

Draws barcode with specific position, 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
void pao.barcode.EAN128.draw ( String  code,
float  x,
float  y,
float  width,
float  height,
GraphicsUnit  gu,
int  dpi 
)

Draws barcode with specific position, 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
guGraphics Unit (mm, Inch, Point, Pixel)
dpiOutput Device dpi
void pao.barcode.EAN128.draw ( String  code,
float  x,
float  y,
float  width,
float  height,
GraphicsUnit  gu,
int  dpi,
boolean  roundDecimalPoint 
)

Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
guGraphics Unit (mm, Inch, Point, Pixel)
dpiOutput Device dpi
roundDecimalRounding a decimal point
void pao.barcode.EAN128.drawConvenience ( String  code,
float  x,
float  y,
float  width,
float  height,
GraphicsUnit  gu,
int  dpi,
boolean  roundDecimalPoint 
)

Probably only use at convenience stores in Japan. draw 1 point line

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
guGraphics Unit (mm, Inch, Point, Pixel)
dpiOutput Device dpi
roundDecimalRounding a decimal point
void pao.barcode.EAN128.drawConvenienceDelicate ( String  code,
float  x,
float  y,
float  minLineWidth,
float  height 
)

Probably only use at convenience stores in Japan. draw 1 point line

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
minLineWidthMinimum line width(dot) of barcode
heightHeight of barcode
void pao.barcode.EAN128.drawConvenienceDirect ( String  code,
float  x,
float  y,
float  width,
float  height,
GraphicsUnit  gu,
int  dpi,
boolean  roundDecimalPoint 
)

Probably only use at convenience stores in Japan. draw 1 point line

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
guGraphics Unit (mm, Inch, Point, Pixel)
dpiOutput Device dpi
roundDecimalRounding a decimal point
void pao.barcode.EAN128.drawDelicate ( String  code,
float  x,
float  y,
float  minLineWidth,
float  height 
)

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)
minLineWidthMinimum line width of barcode
heightHeight of barcode
void pao.barcode.EAN128.drawDelicate ( String  code,
float  x,
float  y,
float  minLineWidth,
float  height,
String  filePath 
)

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)
minLineWidthMinimum line width of barcode
heightHeight of barcode
filePathimage file path
void pao.barcode.EAN128.drawDirect ( String  code,
float  x,
float  y,
float  width,
float  height 
)

Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
void pao.barcode.EAN128.drawDirect ( String  code,
float  x,
float  y,
float  width,
float  height,
String  filePath 
)

Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.

引数
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
void pao.barcode.EAN128.drawDirect ( String  code,
float  x,
float  y,
float  width,
float  height,
GraphicsUnit  gu,
int  dpi,
boolean  roundDecimalPoint 
)

Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
guGraphics Unit (mm, Inch, Point, Pixel)
dpiOutput Device dpi
roundDecimalRounding a decimal point
void pao.barcode.EAN128.drawDirect ( String  code,
float  x,
float  y,
float  width,
float  height,
GraphicsUnit  gu,
int  dpi 
)

Barcode is directly drawn within the width set in pixel. Accuracy and speed are better than Draw method, although the width cannot be fixed.

引数
codeText to be generated as barcode
xPosition of barcode (X axis)
yPosition of barcode (Y axis)
widthWidth of barcode
heightHeight of barcode
CodeSet128 pao.barcode.EAN128.getCodeABC ( )

Get CODE128 CODE-SET (AUTO, A, B, C)

  • 戻り値
    CODE-SET (AUTO, A, B, C)
boolean pao.barcode.EAN128.getDispStartStopCode ( )

Returns true if start-stop-code will be generated along with barcode (dummy for interface)

戻り値
true if start-stop-code will be generated along with barcode, false otherwise
int pao.barcode.EAN128.getDPI ( )

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

戻り値
DPI
float pao.barcode.EAN128.getDrawDirectWidth ( String  code,
float  width 
)
引数
point
戻り値
int pao.barcode.EAN128.getImgMargin ( )

Get Pixel of Image Margin

  • 戻り値
    Pixel of Image Margin
int pao.barcode.EAN128.getKuroBarChousei ( )

Set number of dot for fine adjustment of black bars.(The defined value of dot is 0.)

引数
valueThe number of dot for fine adjustment of black bars.
float pao.barcode.EAN128.getRotateAngle ( )

Returns barcode angle

戻り値
Barcode angle
Font pao.barcode.EAN128.getTextFont ( )

Gets the font used in writing text

戻り値
Font used in writing text
boolean pao.barcode.EAN128.getTextKintou ( )

Returns true if Text Kintou is enabled

戻り値
true if Text Kintou is enabled, false otherwise
boolean pao.barcode.EAN128.getTextWrite ( )

Returns true if text will be generated along with the barcode

戻り値
true if text will be generated along with the barcode, false otherwise
void pao.barcode.EAN128.pDrawConvenienceDelicate ( String  code,
float  mmX,
float  mmY,
float  mmHeight 
)

Probably only use at convenience stores in Japan.

引数
codeText to be generated as barcode
mmXPosition of barcode (X axis)
mmYPosition of barcode (Y axis)
mmHeightHeight of barcode
void pao.barcode.EAN128.setCodeABC ( CodeSet128  _codeABC)

Set CODE128 CODE-SET (AUTO, A, B, C)

引数
valueCODE-SET (AUTO, A, B, C)
void pao.barcode.EAN128.setDispStartStopCode ( boolean  value)

Enables or disables start-stop-code (dummy for interface)

引数
valuetrue to enable start-stop-code, false to disable it
void pao.barcode.EAN128.setDPI ( int  dpi)

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

引数
dpiDPI
void pao.barcode.EAN128.SetGraphics ( Graphics2D  g)

set graphics

引数
gGraphics where the barcode
void pao.barcode.EAN128.setImgMargin ( int  value)

Set Pixel of Image Margin

引数
valuePixelof Image Margin
void pao.barcode.EAN128.setKuroBarChousei ( int  value)

Set number of dot for fine adjustment of black bars.(The defined value of dot is 0.)

引数
valueThe number of dot for fine adjustment of black bars.
void pao.barcode.EAN128.setRotateAngle ( float  value)

Sets barcode angle

引数
valueBarcode angle
void pao.barcode.EAN128.setTextFont ( Font  value)

Sets the font used in writing text

引数
valueFont used in writing text
void pao.barcode.EAN128.setTextKintou ( boolean  value)

Enables or disables Text Kintou

引数
valuetrue to enable Text Kintou, false to disable it
void pao.barcode.EAN128.setTextWrite ( boolean  value)

Enables or disables text writing

引数
valuetrue to enable text writing, false to disable it

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