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