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