![]() |
Barcode.jar ver 5.0.0
Java 開発者向け バーコード作成ライブラリ(SVG出力・Base64出力対応)
|
クラス | |
| enum | DatabarType |
公開メンバ関数 | |
| Gs1Databar14 (Graphics2D g) | |
| Gs1Databar14 (String filePath) | |
| Gs1Databar14 () | |
| Gs1Databar14 (String imgFormat, boolean useStream) | |
| boolean | getTextWrite () |
| void | setTextWrite (boolean value) |
| boolean | getTextKintou () |
| void | setTextKintou (boolean value) |
| boolean | getTextEvenSpacing () |
| void | setTextEvenSpacing (boolean value) |
| Font | getTextFont () |
| void | setTextFont (Font value) |
| float | getRotateAngle () |
| void | setRotateAngle (float value) |
| int | getKuroBarChousei () |
| void | setKuroBarChousei (int value) |
| int | getBlackBarAdjusterByDot () |
| void | setBlackBarAdjusterByDot (int value) |
| int | getDPI () |
| void | setDPI (int dpi) |
| int | getImgMargin () |
| void | setImgMargin (int value) |
| ByteArrayOutputStream | getImageStream () |
| void | setImageStream (ByteArrayOutputStream value) |
| String | getImageBase64 () |
| String | getImageFormat () |
| void | setImageFormat (String value) |
| Color | getForeColor () |
| void | setForeColor (Color value) |
| Color | getBackColor () |
| void | setBackColor (Color 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) |
| String | writeSVGToString (String code, float x, float y, float width, float height) |
限定公開メンバ関数 | |
| void | setLinkageFlag () |
| void | unsetLinkageFlag () |
Class Gs1Databar14 is a barcode library used to generate barcode with GS1 Databar Omni-directional (GS1-RSS 14) method
| pao.barcode.Gs1Databar14.Gs1Databar14 | ( | Graphics2D | g | ) |
GS1 Databarのインスタンスを作成します
| g | バーコードを描画するGraphicsオブジェクト |
| pao.barcode.Gs1Databar14.Gs1Databar14 | ( | String | filePath | ) |
GS1 Databarのインスタンスを作成します
| filePath | 出力画像ファイルパス |
| pao.barcode.Gs1Databar14.Gs1Databar14 | ( | ) |
GS1 Databar (Omnidirectional)のインスタンスを作成します。 画像形式はデフォルトでPNGが設定されます。
このコンストラクタは以下の用途で使用できます:
Graphics2Dやファイルパスを指定せずに、シンプルにバーコードを生成できます。
| pao.barcode.Gs1Databar14.Gs1Databar14 | ( | String | imgFormat, |
| boolean | useStream ) |
GS1 Databar (Omnidirectional)のインスタンスを作成します(メモリストリーム出力用)。
このコンストラクタは、ファイルに保存せずにメモリ上で画像データを取得したい場合に使用します。 生成後、以下のメソッドで画像データを取得できます:
| imgFormat | 出力画像フォーマット("png", "jpeg", "bmp"など)。 nullや空文字、または無効な形式が指定された場合は"png"が使用されます。 |
| useStream | ストリーム出力を使用する場合はtrue。 falseの場合はストリーム機能は無効となり、getImageBase64等は空を返します。 |
| void pao.barcode.Gs1Databar14.draw | ( | String | code | ) |
| void pao.barcode.Gs1Databar14.draw | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height ) |
バーコードを描画します
| code | バーコードとして生成するテキスト |
| x | バーコードのX座標 |
| y | バーコードのY座標 |
| width | バーコードの幅 |
| height | バーコードの高さ |
pao.barcode.IBarCodeを実装しています。
| void pao.barcode.Gs1Databar14.draw | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| GraphicsUnit | gu, | ||
| int | dpi ) |
バーコードを描画します
| code | バーコードとして生成するテキスト |
| x | バーコードのX座標 |
| y | バーコードのY座標 |
| width | バーコードの幅 |
| height | バーコードの高さ |
| gu | グラフィックス単位(mm、Inch、Point、Pixel) |
| dpi | 出力デバイスのDPI |
pao.barcode.IBarCodeを実装しています。
| void pao.barcode.Gs1Databar14.draw | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| String | filePath ) |
バーコードを描画します
| code | バーコードとして生成するテキスト |
| x | バーコードのX座標 |
| y | バーコードのY座標 |
| width | バーコードの幅 |
| height | バーコードの高さ |
| filePath | 画像ファイルパス |
| void pao.barcode.Gs1Databar14.drawDelicate | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | minLineWidth, | ||
| float | height ) |
最小線幅を指定してバーコードを描画します
| code | バーコードとして生成するテキスト |
| x | バーコードのX座標 |
| y | バーコードのY座標 |
| minLineWidth | バーコードの最小線幅 |
| height | バーコードの高さ |
| Exception |
pao.barcode.IBarCodeを実装しています。
| void pao.barcode.Gs1Databar14.drawDelicate | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | minLineWidth, | ||
| float | height, | ||
| String | filePath ) |
最小線幅を指定してバーコードを描画します
| code | バーコードとして生成するテキスト |
| x | バーコードのX座標 |
| y | バーコードのY座標 |
| minLineWidth | バーコードの最小線幅 |
| height | バーコードの高さ |
| filePath | 画像ファイルパス |
| Exception |
| void pao.barcode.Gs1Databar14.drawDirect | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height ) |
ピクセル単位で直接バーコードを描画します
| code | バーコードとして生成するテキスト |
| x | バーコードのX座標 |
| y | バーコードのY座標 |
| width | バーコードの幅 |
| height | バーコードの高さ |
pao.barcode.IBarCodeを実装しています。
| void pao.barcode.Gs1Databar14.drawDirect | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| GraphicsUnit | gu, | ||
| int | dpi ) |
ピクセル単位で直接バーコードを描画します
| code | バーコードとして生成するテキスト |
| x | バーコードのX座標 |
| y | バーコードのY座標 |
| width | バーコードの幅 |
| height | バーコードの高さ |
| gu | グラフィックス単位(mm、Inch、Point、Pixel) |
| dpi | 出力デバイスのDPI |
pao.barcode.IBarCodeを実装しています。
| void pao.barcode.Gs1Databar14.drawDirect | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| GraphicsUnit | gu, | ||
| int | dpi, | ||
| boolean | roundDecimalPoint ) |
ピクセル単位で直接バーコードを描画します
| code | バーコードとして生成するテキスト |
| x | バーコードのX座標 |
| y | バーコードのY座標 |
| width | バーコードの幅 |
| height | バーコードの高さ |
| gu | グラフィックス単位(mm、Inch、Point、Pixel) |
| dpi | 出力デバイスのDPI |
| roundDecimalPoint | 小数点を丸めるかどうか |
pao.barcode.IBarCodeを実装しています。
| void pao.barcode.Gs1Databar14.drawDirect | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height, | ||
| String | filePath ) |
ピクセル単位で直接バーコードを描画します
| code | バーコードとして生成するテキスト |
| x | バーコードのX座標 |
| y | バーコードのY座標 |
| width | バーコードの幅 |
| height | バーコードの高さ |
| filePath | 画像ファイルパス |
| Color pao.barcode.Gs1Databar14.getBackColor | ( | ) |
| int pao.barcode.Gs1Databar14.getBlackBarAdjusterByDot | ( | ) |
| boolean pao.barcode.Gs1Databar14.getDispStartStopCode | ( | ) |
| int pao.barcode.Gs1Databar14.getDPI | ( | ) |
| float pao.barcode.Gs1Databar14.getDrawDelicateWidth | ( | String | code, |
| float | minLineWidth ) |
DrawDelicate時のバーコード幅を取得します
| code | バーコードとして生成するテキスト |
| minLineWidth | バーコードの最小線幅 |
pao.barcode.IBarCodeを実装しています。
| float pao.barcode.Gs1Databar14.getDrawDirectWidth | ( | String | code, |
| float | width ) |
DrawDirect時のバーコード幅を取得します
| code | バーコードとして生成するテキスト |
| width | バーコードの幅 |
pao.barcode.IBarCodeを実装しています。
| Color pao.barcode.Gs1Databar14.getForeColor | ( | ) |
| String pao.barcode.Gs1Databar14.getImageBase64 | ( | ) |
| String pao.barcode.Gs1Databar14.getImageFormat | ( | ) |
出力画像フォーマットを取得します
| ByteArrayOutputStream pao.barcode.Gs1Databar14.getImageStream | ( | ) |
画像ストリームを取得します
| int pao.barcode.Gs1Databar14.getImgMargin | ( | ) |
| int pao.barcode.Gs1Databar14.getKuroBarChousei | ( | ) |
| float pao.barcode.Gs1Databar14.getRotateAngle | ( | ) |
| DatabarType pao.barcode.Gs1Databar14.getSymbolType | ( | ) |
databar 14 シンボルタイプ 取得 (標準型・二層型・標準二層型)
| boolean pao.barcode.Gs1Databar14.getTextEvenSpacing | ( | ) |
テキスト均等配置設定を取得します(getTextKintouのエイリアス)
pao.barcode.IBarCodeを実装しています。
| Font pao.barcode.Gs1Databar14.getTextFont | ( | ) |
| boolean pao.barcode.Gs1Databar14.getTextKintou | ( | ) |
| boolean pao.barcode.Gs1Databar14.getTextWrite | ( | ) |
| void pao.barcode.Gs1Databar14.setBackColor | ( | Color | value | ) |
背景色を設定します。 画像データ保存時のみ有効です。直接描画する場合、背景色は透明になります。 nullを指定すると透明になります。
| value | 背景色 |
pao.barcode.IBarCodeを実装しています。
| void pao.barcode.Gs1Databar14.setBlackBarAdjusterByDot | ( | int | value | ) |
| void pao.barcode.Gs1Databar14.setDispStartStopCode | ( | boolean | value | ) |
スタート・ストップコードを表示するかどうかを設定します
| value | スタート・ストップコードを表示する場合はtrue、しない場合はfalse |
pao.barcode.IBarCodeを実装しています。
| void pao.barcode.Gs1Databar14.setDPI | ( | int | dpi | ) |
| void pao.barcode.Gs1Databar14.setForeColor | ( | Color | value | ) |
| void pao.barcode.Gs1Databar14.setImageFormat | ( | String | value | ) |
出力画像フォーマットを設定します
| value | 画像フォーマット("png", "jpeg", "bmp"など)。空文字やnullの場合はpngがデフォルト。 |
| void pao.barcode.Gs1Databar14.setImageStream | ( | ByteArrayOutputStream | value | ) |
画像ストリームを設定します
| value | 画像データを格納したByteArrayOutputStream |
| void pao.barcode.Gs1Databar14.setImgMargin | ( | int | value | ) |
| void pao.barcode.Gs1Databar14.setKuroBarChousei | ( | int | value | ) |
| void pao.barcode.Gs1Databar14.setRotateAngle | ( | float | value | ) |
| void pao.barcode.Gs1Databar14.setSymbolType | ( | DatabarType | val | ) |
databar 14 シンボルタイプ セット (標準型・二層型・標準二層型)
| val | symbol type(標準型・二層型・標準二層型) |
| void pao.barcode.Gs1Databar14.setTextEvenSpacing | ( | boolean | value | ) |
テキスト均等配置設定を設定します(setTextKintouのエイリアス)
| value | true: 全体幅に均等配置、false: バーに対応する位置に配置 |
pao.barcode.IBarCodeを実装しています。
| void pao.barcode.Gs1Databar14.setTextFont | ( | Font | value | ) |
| void pao.barcode.Gs1Databar14.setTextKintou | ( | boolean | value | ) |
| void pao.barcode.Gs1Databar14.setTextWrite | ( | boolean | value | ) |
| String pao.barcode.Gs1Databar14.writeSVGToString | ( | String | code, |
| float | x, | ||
| float | y, | ||
| float | width, | ||
| float | height ) |
Generates the barcode as an SVG string. バーコードをSVG文字列として生成します。
| code | Text to be generated as barcode |
| x | X position |
| y | Y position |
| width | Width of barcode |
| height | Height of barcode |