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

pao.barcode.IBarCodeを継承しています。

クラス

enum  DatabarType
 

公開メンバ関数

 Gs1Databar14 (Graphics2D g)
 
 Gs1Databar14 (String filePath)
 
boolean getTextWrite ()
 
void setTextWrite (boolean value)
 
boolean getTextKintou ()
 
void setTextKintou (boolean value)
 
Font getTextFont ()
 
void setTextFont (Font value)
 
float getRotateAngle ()
 
void setRotateAngle (float value)
 
int getKuroBarChousei ()
 
void setKuroBarChousei (int value)
 
int getDPI ()
 
void setDPI (int dpi)
 
int getImgMargin ()
 
void setImgMargin (int value)
 
boolean getDispStartStopCode ()
 
void setDispStartStopCode (boolean value)
 
String getImgFilePath ()
 
void setImgFilePath (String _imgFilePath)
 
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 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)
 
float getDrawDirectWidth (String code, float width)
 
float getDrawDelicateWidth (String code, float minLineWidth)
 
void setSymbolType (DatabarType val)
 
DatabarType getSymbolType ()
 
boolean encode (String content)
 

限定公開メンバ関数

void setLinkageFlag ()
 
void unsetLinkageFlag ()
 

詳解

Class Gs1Databar14 is a barcode library used to generate barcode with GS1 Databar Omni-directional (GS1-RSS 14) method

著者
PAO

構築子と解体子

pao.barcode.Gs1Databar14.Gs1Databar14 ( Graphics2D  g)

Creates a new instance for Gs1Databar14

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

Creates a new instance for Gs1Databar14

引数
filePathoutput image file path

メソッド詳解

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

Draws barcode without specific position, width, and height

引数
codeText to be generated as barcode
void pao.barcode.Gs1Databar14.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.Gs1Databar14.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.Gs1Databar14.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.Gs1Databar14.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
例外
Exception
void pao.barcode.Gs1Databar14.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
例外
Exception
void pao.barcode.Gs1Databar14.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.Gs1Databar14.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.Gs1Databar14.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.Gs1Databar14.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
boolean pao.barcode.Gs1Databar14.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.Gs1Databar14.getDPI ( )

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

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

Get Pixel of Image Margin

  • 戻り値
    Pixel of Image Margin
int pao.barcode.Gs1Databar14.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.Gs1Databar14.getRotateAngle ( )

Returns barcode angle

戻り値
Barcode angle
DatabarType pao.barcode.Gs1Databar14.getSymbolType ( )

databar 14 シンボルタイプ 取得 (標準型・二層型・標準二層型)

戻り値
symbol type (標準型・二層型・標準二層型)
Font pao.barcode.Gs1Databar14.getTextFont ( )

Gets the font used in writing text

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

Get drawing position drawing position (to fit a barcode to set width).

戻り値
true: Draw barcode within an overall width by equal spacing, false: Draw barcode at a bar meaning a code (default)
boolean pao.barcode.Gs1Databar14.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.Gs1Databar14.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.Gs1Databar14.setDPI ( int  dpi)

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

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

Set Pixel of Image Margin

引数
valuePixelof Image Margin
void pao.barcode.Gs1Databar14.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.Gs1Databar14.setRotateAngle ( float  value)

Sets barcode angle

引数
valueBarcode angle
void pao.barcode.Gs1Databar14.setSymbolType ( DatabarType  val)

databar 14 シンボルタイプ セット (標準型・二層型・標準二層型)

引数
valsymbol type(標準型・二層型・標準二層型)
void pao.barcode.Gs1Databar14.setTextFont ( Font  value)

Sets the font used in writing text

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

Set drawing position drawing position (to fit a barcode to set width).

引数
valuetrue: Draw barcode within an overall width by equal spacing, false: Draw barcode at a bar meaning a code (default)
void pao.barcode.Gs1Databar14.setTextWrite ( boolean  value)

Enables or disables text writing

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

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