Barcode.jar ver 5.0.0
Java 開発者向け バーコード作成ライブラリ(SVG出力・Base64出力対応)
読み取り中…
検索中…
一致する文字列を見つけられません
pao.barcode.Common クラス

公開メンバ関数

 Common ()
void fillRect_float (Graphics2D g, float x, float y, float width, float height)
float cmTo (Graphics2D g, float cm)
float cmTo (int dpi, float cm)
float mm2Pixel (int dpi, float mm)
float inch2Pixel (int dpi, float inch)
float point2Pixel (int dpi, float point)
float toCm (Graphics g, float hatena)
float pointTo (Graphics g, float point)
boolean isNumeric (String hoge)
boolean isParseAbleInteger (String s, int i1, int i2)
float ToPixel (Graphics g, float Hatena)
Graphics2D getCanvasAndGraphics (float width, float height, boolean textWrite, Font soejiFont, int rowCnt, IBarCodeImg bar)
Graphics2D getCanvasAndGraphics (float width, float height, IBarCodeImg bar)
Graphics2D getCanvasAndGraphics (float x, float y, float width, float height, boolean textWrite, Font soejiFont, int rowCnt, IBarCodeImg bar)
Graphics2D getCanvasAndGraphics (float x, float y, float width, float height, boolean textWrite, Font soejiFont, int rowCnt, IBarCodeImg bar, Color backColor)
Graphics2D getCanvasAndGraphics (float x, float y, float width, float height, IBarCodeImg bar)
Graphics2D getCanvasAndGraphics (float x, float y, float width, float height, IBarCodeImg bar, Color backColor)
String bin2pat (String bin)
String getSuffix (String fileName)
void drawTrialOverlay (Graphics2D g, float x, float y, float height)
void drawTrialOverlay2D (Graphics2D g, float x, float y, float size)
void drawTrialOverlayYubin (Graphics2D g, float x, float y, float height)
String svgTrialOverlay (float x, float y, float height)
String svgTrialOverlay2D (float x, float y, float size)
String svgTrialOverlayYubin (float x, float y, float height)

静的公開メンバ関数

static String colorToHex (Color color)

限定公開メンバ関数

AffineTransform setToRotation (double theta, double x, double y)

詳解

著者
PAO

構築子と解体子

◆ Common()

pao.barcode.Common.Common ( )

Creates an instance for Common

メソッド詳解

◆ cmTo()

float pao.barcode.Common.cmTo ( Graphics2D g,
float cm )

Converts cm to pixel

引数
gGraphics
cmValue in cm
戻り値
Value in pixel

◆ colorToHex()

String pao.barcode.Common.colorToHex ( Color color)
static

ColorをSVG用の16進数RGB文字列に変換します。

引数
color変換するColorオブジェクト
戻り値
"#RRGGBB"形式の文字列、colorがnullの場合は"none"

◆ drawTrialOverlay()

void pao.barcode.Common.drawTrialOverlay ( Graphics2D g,
float x,
float y,
float height )

Graphics2D用: バーコードの左上に試用版テキストをオーバーレイ描画(一次元バーコード用)

引数
gGraphics2D
xバーコードのX座標
yバーコードのY座標
heightバーコードの高さ

◆ drawTrialOverlay2D()

void pao.barcode.Common.drawTrialOverlay2D ( Graphics2D g,
float x,
float y,
float size )

Graphics2D用: 二次元バーコード用(QRCode, DataMatrix) 面積を考慮して高さの1/4程度のフォントサイズ

引数
gGraphics2D
xバーコードのX座標
yバーコードのY座標
sizeバーコードのサイズ(幅=高さ)

◆ drawTrialOverlayYubin()

void pao.barcode.Common.drawTrialOverlayYubin ( Graphics2D g,
float x,
float y,
float height )

Graphics2D用: 郵便カスタマバーコード用(小さめ固定)

引数
gGraphics2D
xバーコードのX座標
yバーコードのY座標
heightバーコードの高さ

◆ fillRect_float()

void pao.barcode.Common.fillRect_float ( Graphics2D g,
float x,
float y,
float width,
float height )

Fill rectangle by float

引数
gGraphics
x
x
width
height

◆ getCanvasAndGraphics() [1/2]

Graphics2D pao.barcode.Common.getCanvasAndGraphics ( float x,
float y,
float width,
float height,
boolean textWrite,
Font soejiFont,
int rowCnt,
IBarCodeImg bar,
Color backColor )

背景色を指定してキャンバスとグラフィックスを取得します。

引数
xX座標
yY座標
width
height高さ
textWriteテキスト出力するかどうか
soejiFont添え字フォント
rowCnt行数
barバーコード画像オブジェクト
backColor背景色(nullの場合は透明)
戻り値
Graphics2Dオブジェクト

◆ getCanvasAndGraphics() [2/2]

Graphics2D pao.barcode.Common.getCanvasAndGraphics ( float x,
float y,
float width,
float height,
IBarCodeImg bar,
Color backColor )

背景色を指定してキャンバスとグラフィックスを取得します。

引数
xX座標
yY座標
width
height高さ
barバーコード画像オブジェクト
backColor背景色(nullの場合は透明)
戻り値
Graphics2Dオブジェクト

◆ inch2Pixel()

float pao.barcode.Common.inch2Pixel ( int dpi,
float inch )

Converts inch to pixel

引数
gGraphics
inchValue in inch
戻り値
Value in pixel

◆ isNumeric()

boolean pao.barcode.Common.isNumeric ( String hoge)

Number Check Of String

引数
hogeString
戻り値
true if string is number, false is not number

◆ isParseAbleInteger()

boolean pao.barcode.Common.isParseAbleInteger ( String s,
int i1,
int i2 )

Checks whether string s is parseable to integer or not

引数
sString
i1First index in string to be parsed
i2Last index in string to be parsed
戻り値
true if string could be parsed, false otherwise

◆ mm2Pixel()

float pao.barcode.Common.mm2Pixel ( int dpi,
float mm )

Converts mm to pixel

引数
gGraphics
mmValue in mm
戻り値
Value in pixel

◆ point2Pixel()

float pao.barcode.Common.point2Pixel ( int dpi,
float point )

Converts point to pixel

引数
gGraphics
pintValue in point
戻り値
Value in pixel

◆ pointTo()

float pao.barcode.Common.pointTo ( Graphics g,
float point )

Converts point to pixel

引数
gGraphics
pointValue in point
戻り値
Value in pixel

◆ setToRotation()

AffineTransform pao.barcode.Common.setToRotation ( double theta,
double x,
double y )
protected
引数
theta
x
y
戻り値

◆ svgTrialOverlay()

String pao.barcode.Common.svgTrialOverlay ( float x,
float y,
float height )

SVG用: 試用版テキストのSVG要素を生成(一次元バーコード用)

引数
xバーコードのX座標
yバーコードのY座標
heightバーコードの高さ
戻り値
SVGのtext要素文字列

◆ svgTrialOverlay2D()

String pao.barcode.Common.svgTrialOverlay2D ( float x,
float y,
float size )

SVG用: 二次元バーコード用(QRCode, DataMatrix)

引数
xバーコードのX座標
yバーコードのY座標
sizeバーコードのサイズ(幅=高さ)
戻り値
SVGのtext要素文字列

◆ svgTrialOverlayYubin()

String pao.barcode.Common.svgTrialOverlayYubin ( float x,
float y,
float height )

SVG用: 郵便カスタマバーコード用(小さめ固定)

引数
xバーコードのX座標
yバーコードのY座標
heightバーコードの高さ
戻り値
SVGのtext要素文字列

◆ toCm()

float pao.barcode.Common.toCm ( Graphics g,
float hatena )

Converts pixel to cm

引数
gGraphics
hatenaValue in pixel
戻り値
Value in cm

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