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