TextDevice

Inheritance: java.lang.Object, com.aspose.page.Device

All Implemented Interfaces: com.aspose.page.IMultiPageDevice

public class TextDevice extends Device implements IMultiPageDevice

コンストラクタ

コンストラクタ説明
TextDevice()

フィールド

フィールド説明
DEFAULT_SIZE
EMIT_ERRORS
EMIT_WARNINGS
VERSION現在のデバイスバージョンです。

メソッド

メソッド説明
closePage()
create()
dispose()
draw(Shape path)パスを描画します。
drawArc(float x, float y, float width, float height, float startAngle, float arcAngle)円弧を描画します。
drawImage(BufferedImage image, AffineTransform transform, Color bkg)割り当てられた変換と背景で画像を描画します。
drawLine(float x1, float y1, float x2, float y2)線分を描画します。
drawOval(float x, float y, float width, float height)楕円を描画します。
drawPolygon(float[] xPoints, float[] yPoints, int nPoints)多角形を描画します。
drawPolygon(int[] xPoints, int[] yPoints, int nPoints)多角形を描画します。
drawPolyline(float[] xPoints, float[] yPoints, int nPoints)ポリラインを描画します。
drawPolyline(int[] xPoints, int[] yPoints, int nPoints)ポリラインを描画します。
drawRect(float x, float y, float width, float height)矩形を描画します。
drawRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)丸角長方形を描画します。
drawString(String str, float x, float y)
endDocument()
equals(Object arg0)
fill(Shape path)パスを塗りつぶします。
fillArc(float x, float y, float width, float height, float startAngle, float arcAngle)円弧を塗りつぶします。
fillOval(float x, float y, float width, float height)楕円を塗りつぶします。
fillPolygon(float[] xPoints, float[] yPoints, int nPoints)多角形を塗りつぶします。
fillPolygon(int[] xPoints, int[] yPoints, int nPoints)多角形を塗りつぶします。
fillRect(float x, float y, float width, float height)長方形を塗りつぶします。
fillRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)丸角長方形を描画します。
getBackground()ページの現在の背景を取得します。
getCharTM()現在の文字変換を取得します。
getClass()
getCreator()結果として得られるデバイス出力の作成者を取得します。
getCurrentPageNumber()
getFont()現在のフォントを取得します。
getOpacity()現在の不透明度を取得します。
getOpacityMask()現在の不透明度マスクを取得します。
getPages()
getPaint()現在のペイントを取得します。
getProperties()メタデータを含むデバイスプロパティを取得します。
getProperty(String key)文字列プロパティの値を取得します。
getPropertyColor(String key)色プロパティの値を取得します。
getPropertyDouble(String key)double プロパティの値を取得します。
getPropertyInt(String key)整数プロパティの値を取得します。
getPropertyMargins(String key)余白プロパティの値を取得します。
getPropertyMatrix(String key)行列プロパティの値を取得します。
getPropertyRectangle(String key)長方形プロパティの値を取得します。
getPropertySize(String key)サイズプロパティの値を取得します。
getSaveOptions()保存オプションを返します。
getSize()ページのサイズを取得します。
getStroke()現在のストロークを取得します。
getText()
getText(int startPage, int endPage)
getTextRenderingMode()現在のテキスト描画モードを取得します。
getTextStrokeWidth()現在のテキストストローク幅を取得します。
getTransform()現在の変換を取得します。
hashCode()
initClip()デバイスのクリップを初期化します。
initPageNumbers()
isDirectRGB()
isMainDocument()
isProperty(String key)ブールプロパティの値を取得します。
notify()
notifyAll()
openPage(float width, float height)
openPage(String title)
renew()
renewForMerge(boolean mainDocument)
reset()
reset(boolean zeroPageNumbers)
rotate(double theta)現在の変換行列を回転させます。
rotate(double theta, double x, double y)現在の変換行列を点の周りで回転させます。
scale(double x, double y)現在の変換行列を拡大縮小します。
setBackground(Color background)ページの現在の背景を指定します。
setCharTM(AffineTransform charTM)文字の変換を指定します。
setClip(Shape clipPath)デバイスのクリップを指定します。
setCreator(String creator)結果として得られるデバイス出力の作成者を指定します。
setFont(ITrFont font)フォントを指定します。
setOpacity(float opacity)不透明度を指定します。
setOpacityMask(Paint opacityMask)不透明度マスクを指定します。
setPaint(Paint paint)ペイントを指定します。
setProperties(UserProperties props)メタデータを含むデバイスプロパティを指定します。
setSaveOptions(SaveOptions options)レンダリングプロセスの管理オプションを指定します。
setSize(Dimension size)
setStroke(Stroke stroke)ストロークを指定します。
setTextRenderingMode(TextRenderingMode textRenderingMode)テキスト描画モードを指定します。
setTextStrokeWidth(float textStrokeWidth)テキストストローク幅を指定します。
setTransform(AffineTransform transform)現在の変換を指定します。
shear(double shx, double shy)現在の変換行列をせん断します。
startDocument()
toString()
transform(AffineTransform transform)現在の変換行列を変換します。
translate(double x, double y)現在の変換行列を平行移動します。
updatePageParameters(IMultiPageDevice device)
wait()
wait(long arg0)
wait(long arg0, int arg1)
writeComment(String comment)コメントを書き込みます。
writeString(ITrFont font, String str)指定されたフォントで文字列を書き出します。
writeWarning(String warning)

TextDevice()

public TextDevice()

DEFAULT_SIZE

public static final Dimension DEFAULT_SIZE

EMIT_ERRORS

public static final String EMIT_ERRORS

EMIT_WARNINGS

public static final String EMIT_WARNINGS

VERSION

public static String VERSION

現在のデバイスバージョンです。

closePage()

public void closePage()

ページがレンダリングされた後、デバイスの必要な準備を行います。

create()

public Device create()

このデバイスのコピーを作成します。

Returns: Device

dispose()

public void dispose()

デバイスを破棄します。

draw(Shape path)

public void draw(Shape path)

パスを描画します。

Parameters:

パラメータ説明
pathjava.awt.Shape描画するパス。

drawArc(float x, float y, float width, float height, float startAngle, float arcAngle)

public void drawArc(float x, float y, float width, float height, float startAngle, float arcAngle)

円弧を描画します。

Parameters:

パラメータ説明
xfloat弧の中心のX座標。
yfloat弧の中心のY座標。
widthfloat外接矩形の幅。
heightfloat外接矩形の高さ。
startAnglefloat弧の開始角度。
arcAnglefloat弧の角度。

drawImage(BufferedImage image, AffineTransform transform, Color bkg)

public void drawImage(BufferedImage image, AffineTransform transform, Color bkg)

割り当てられた変換と背景で画像を描画します。

Parameters:

パラメータ説明
imagejava.awt.image.BufferedImage描画する画像。
transformjava.awt.geom.AffineTransform変換。
bkgjava.awt.Color背景色。

drawLine(float x1, float y1, float x2, float y2)

public void drawLine(float x1, float y1, float x2, float y2)

線分を描画します。

Parameters:

パラメータ説明
x1floatセグメントの開始点のX座標。
y1floatセグメントの開始点のY座標。
x2floatセグメントの終了点のX座標。
y2floatセグメントの終了点のY座標。

drawOval(float x, float y, float width, float height)

public void drawOval(float x, float y, float width, float height)

楕円を描画します。

Parameters:

パラメータ説明
xfloat楕円の中心のX座標。
yfloat楕円の中心のY座標。
widthfloat外接矩形の幅。
heightfloat外接矩形の高さ。

drawPolygon(float[] xPoints, float[] yPoints, int nPoints)

public void drawPolygon(float[] xPoints, float[] yPoints, int nPoints)

多角形を描画します。

Parameters:

パラメータ説明
xPointsfloat[]点のX座標。
yPointsfloat[]点のY座標。
nPointsint点の数です。

drawPolygon(int[] xPoints, int[] yPoints, int nPoints)

public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)

多角形を描画します。

Parameters:

パラメータ説明
xPointsint[]点のX座標。
yPointsint[]点のY座標。
nPointsint点の数です。

drawPolyline(float[] xPoints, float[] yPoints, int nPoints)

public void drawPolyline(float[] xPoints, float[] yPoints, int nPoints)

ポリラインを描画します。

Parameters:

パラメータ説明
xPointsfloat[]点のX座標。
yPointsfloat[]点のY座標。
nPointsint点の数です。

drawPolyline(int[] xPoints, int[] yPoints, int nPoints)

public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)

ポリラインを描画します。

Parameters:

パラメータ説明
xPointsint[]点のX座標。
yPointsint[]点のY座標。
nPointsint点の数です。

drawRect(float x, float y, float width, float height)

public void drawRect(float x, float y, float width, float height)

矩形を描画します。

Parameters:

パラメータ説明
xfloat矩形の左上隅のX座標。
yfloat矩形の左上隅のY座標。
widthfloat矩形の幅。
heightfloat矩形の高さ。

drawRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)

public void drawRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)

丸角長方形を描画します。

Parameters:

パラメータ説明
xfloat矩形の左上隅のX座標。
yfloat矩形の左上隅のY座標。
widthfloat矩形の幅。
heightfloat矩形の高さ。
arcWidthfloat矩形の角を丸める弧の外接矩形の幅。
arcHeightfloat矩形の角を丸める弧の外接矩形の高さ。

drawString(String str, float x, float y)

public void drawString(String str, float x, float y)

指定された点に文字列を描画します。

Parameters:

パラメータ説明
strjava.lang.String
xfloat
yfloat

endDocument()

public void endDocument()

ドキュメントがレンダリングされた後、デバイスの必要な準備を行います。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメータ説明
arg0java.lang.Object

Returns: boolean

fill(Shape path)

public void fill(Shape path)

パスを塗りつぶします。

Parameters:

パラメータ説明
pathjava.awt.Shape塗りつぶすパス。

fillArc(float x, float y, float width, float height, float startAngle, float arcAngle)

public void fillArc(float x, float y, float width, float height, float startAngle, float arcAngle)

円弧を塗りつぶします。

Parameters:

パラメータ説明
xfloat弧の中心のX座標。
yfloat弧の中心のY座標。
widthfloat外接矩形の幅。
heightfloat外接矩形の高さ。
startAnglefloat弧の開始角度。
arcAnglefloat弧の角度。

fillOval(float x, float y, float width, float height)

public void fillOval(float x, float y, float width, float height)

楕円を塗りつぶします。

Parameters:

パラメータ説明
xfloat楕円の中心のX座標。
yfloat楕円の中心のY座標。
widthfloat外接矩形の幅。
heightfloat外接矩形の高さ。

fillPolygon(float[] xPoints, float[] yPoints, int nPoints)

public void fillPolygon(float[] xPoints, float[] yPoints, int nPoints)

多角形を塗りつぶします。

Parameters:

パラメータ説明
xPointsfloat[]点のX座標。
yPointsfloat[]点のY座標。
nPointsint点の数です。

fillPolygon(int[] xPoints, int[] yPoints, int nPoints)

public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)

多角形を塗りつぶします。

Parameters:

パラメータ説明
xPointsint[]点のX座標。
yPointsint[]点のY座標。
nPointsint点の数です。

fillRect(float x, float y, float width, float height)

public void fillRect(float x, float y, float width, float height)

長方形を塗りつぶします。

Parameters:

パラメータ説明
xfloat矩形の左上隅のX座標。
yfloat矩形の左上隅のY座標。
widthfloat矩形の幅。
heightfloat矩形の高さ。

fillRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)

public void fillRoundRect(float x, float y, float width, float height, float arcWidth, float arcHeight)

丸角長方形を描画します。

Parameters:

パラメータ説明
xfloat矩形の左上隅のX座標。
yfloat矩形の左上隅のY座標。
widthfloat矩形の幅。
heightfloat矩形の高さ。
arcWidthfloat矩形の角を丸める弧の外接矩形の幅。
arcHeightfloat矩形の角を丸める弧の外接矩形の高さ。

getBackground()

public Color getBackground()

ページの現在の背景を取得します。

Returns: java.awt.Color - ページの現在の背景

getCharTM()

public AffineTransform getCharTM()

現在の文字変換を取得します。

Returns: java.awt.geom.AffineTransform - 現在の文字変換。

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCreator()

public String getCreator()

結果として得られるデバイス出力の作成者を取得します。

Returns: java.lang.String - 作成者の値。

getCurrentPageNumber()

public int getCurrentPageNumber()

現在のページ番号を取得します。

Returns: int

getFont()

public ITrFont getFont()

現在のフォントを取得します。

Returns: ITrFont - Current font.

getOpacity()

public float getOpacity()

現在の不透明度を取得します。

Returns: float - 現在の不透明度。

getOpacityMask()

public Paint getOpacityMask()

現在の不透明度マスクを取得します。

Returns: java.awt.Paint - 現在の不透明度マスク。

getPages()

public List<String> getPages()

Returns: java.util.List<java.lang.String>

getPaint()

public Paint getPaint()

現在のペイントを取得します。

Returns: java.awt.Paint - 現在の塗料です。

getProperties()

public UserProperties getProperties()

メタデータを含むデバイスプロパティを取得します。

Returns: UserProperties - Device properties.

getProperty(String key)

public String getProperty(String key)

文字列プロパティの値を取得します。

Parameters:

パラメータ説明
キーjava.lang.Stringプロパティの名前です。

Returns: java.lang.String - プロパティの値。

getPropertyColor(String key)

public Color getPropertyColor(String key)

色プロパティの値を取得します。

Parameters:

パラメータ説明
キーjava.lang.Stringプロパティの名前です。

Returns: java.awt.Color - プロパティの値。

getPropertyDouble(String key)

public double getPropertyDouble(String key)

double プロパティの値を取得します。

Parameters:

パラメータ説明
キーjava.lang.Stringプロパティの名前です。

Returns: double - プロパティの値。

getPropertyInt(String key)

public int getPropertyInt(String key)

整数プロパティの値を取得します。

Parameters:

パラメータ説明
キーjava.lang.Stringプロパティの名前です。

Returns: int - プロパティの値。

getPropertyMargins(String key)

public Insets getPropertyMargins(String key)

余白プロパティの値を取得します。

Parameters:

パラメータ説明
キーjava.lang.Stringプロパティの名前です。

Returns: java.awt.Insets - プロパティの値。

getPropertyMatrix(String key)

public AffineTransform getPropertyMatrix(String key)

行列プロパティの値を取得します。

Parameters:

パラメータ説明
キーjava.lang.Stringプロパティの名前です。

Returns: java.awt.geom.AffineTransform - プロパティの値。

getPropertyRectangle(String key)

public Rectangle getPropertyRectangle(String key)

長方形プロパティの値を取得します。

Parameters:

パラメータ説明
キーjava.lang.Stringプロパティの名前です。

Returns: java.awt.Rectangle - プロパティの値。

getPropertySize(String key)

public Dimension getPropertySize(String key)

サイズプロパティの値を取得します。

Parameters:

パラメータ説明
キーjava.lang.Stringプロパティの名前です。

Returns: java.awt.Dimension - プロパティの値。

getSaveOptions()

public SaveOptions getSaveOptions()

保存オプションを返します。

Returns: SaveOptions - The save options.

getSize()

public Dimension getSize()

ページのサイズを取得します。

Returns: java.awt.Dimension - ページのサイズ。

getStroke()

public Stroke getStroke()

現在のストロークを取得します。

Returns: java.awt.Stroke - 現在のストローク。

getText()

public String getText()

Returns: java.lang.String

getText(int startPage, int endPage)

public String getText(int startPage, int endPage)

Parameters:

パラメータ説明
startPageint
endPageint

Returns: java.lang.String

getTextRenderingMode()

public TextRenderingMode getTextRenderingMode()

現在のテキスト描画モードを取得します。

Returns: TextRenderingMode - Current text rendering mode.

getTextStrokeWidth()

public float getTextStrokeWidth()

現在のテキストストローク幅を取得します。

Returns: float - 現在のテキストストローク幅。

getTransform()

public AffineTransform getTransform()

現在の変換を取得します。

Returns: java.awt.geom.AffineTransform - 現在の変換。

hashCode()

public native int hashCode()

Returns: int

initClip()

public void initClip()

デバイスのクリップを初期化します。

initPageNumbers()

public void initPageNumbers()

レンダリングするページ数を初期化します。

isDirectRGB()

public boolean isDirectRGB()

デバイスが直接RGBモード(RGB)を使用しているかどうかを示します。

Returns: boolean

isMainDocument()

public boolean isMainDocument()

Returns: boolean

isProperty(String key)

public boolean isProperty(String key)

ブールプロパティの値を取得します。

Parameters:

パラメータ説明
キーjava.lang.Stringプロパティの名前です。

Returns: boolean - プロパティの値。

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

openPage(float width, float height)

public boolean openPage(float width, float height)

ページのレンダリング前にデバイスの必要な準備を行います。

Parameters:

パラメータ説明
widthfloat
heightfloat

Returns: boolean

openPage(String title)

public boolean openPage(String title)

ページのレンダリング前にデバイスの必要な準備を行います。

Parameters:

パラメータ説明
タイトルjava.lang.String

Returns: boolean

renew()

public void renew()

ドキュメント全体の初期状態にデバイスをリセットします。出力ストリームのリセットに使用されます。

renewForMerge(boolean mainDocument)

public void renewForMerge(boolean mainDocument)

Parameters:

パラメータ説明
mainDocumentboolean

reset()

public void reset()

ページの初期状態にデバイスをリセットします。

reset(boolean zeroPageNumbers)

public void reset(boolean zeroPageNumbers)

Parameters:

パラメータ説明
zeroPageNumbersboolean

rotate(double theta)

public void rotate(double theta)

現在の変換行列を回転させます。writeTransform(Transform) を呼び出します。正の角度 theta で回転させると、正の x 軸上の点が正の y 軸方向へ回転します。

Parameters:

パラメータ説明
thetadouble回転させるラジアン単位の角度。

rotate(double theta, double x, double y)

public void rotate(double theta, double x, double y)

現在の変換行列を点の周りで回転させます。

Parameters:

パラメータ説明
thetadoubleラジアン単位の回転角。
xdouble点の X 座標。
ydouble点のY座標。

scale(double x, double y)

public void scale(double x, double y)

現在の変換行列をスケールします。Calls writeTransform(Transform).

Parameters:

パラメータ説明
xdoubleX軸のスケール。
ydoubleY軸のスケール。

setBackground(Color background)

public void setBackground(Color background)

ページの現在の背景を指定します。

Parameters:

パラメータ説明
背景java.awt.Colorページの背景。

setCharTM(AffineTransform charTM)

public void setCharTM(AffineTransform charTM)

文字の変換を指定します。

Parameters:

パラメータ説明
charTMjava.awt.geom.AffineTransform\u0421haracters 変換。

setClip(Shape clipPath)

public void setClip(Shape clipPath)

デバイスのクリップを指定します。

Parameters:

パラメータ説明
clipPathjava.awt.Shapeクリッピングパス。

setCreator(String creator)

public void setCreator(String creator)

結果として得られるデバイス出力の作成者を指定します。

Parameters:

パラメータ説明
作成者java.lang.String作成者の値。

setFont(ITrFont font)

public void setFont(ITrFont font)

フォントを指定します。

Parameters:

パラメータ説明
fontITrFontフォント。

setOpacity(float opacity)

public void setOpacity(float opacity)

不透明度を指定します。

Parameters:

パラメータ説明
不透明度float不透明度。

setOpacityMask(Paint opacityMask)

public void setOpacityMask(Paint opacityMask)

不透明度マスクを指定します。

Parameters:

パラメータ説明
opacityMaskjava.awt.Paint不透明度マスク。

setPaint(Paint paint)

public void setPaint(Paint paint)

ペイントを指定します。

Parameters:

パラメータ説明
paintjava.awt.Paintペイント。

setProperties(UserProperties props)

public void setProperties(UserProperties props)

メタデータを含むデバイスプロパティを指定します。

Parameters:

パラメータ説明
propsUserPropertiesデバイスプロパティ。

setSaveOptions(SaveOptions options)

public void setSaveOptions(SaveOptions options)

レンダリングプロセスの管理オプションを指定します。

Parameters:

パラメータ説明
optionsSaveOptionsレンダリングプロセスを管理するオプション。

setSize(Dimension size)

public void setSize(Dimension size)

ページのサイズを指定します。

Parameters:

パラメータ説明
sizejava.awt.Dimension

setStroke(Stroke stroke)

public void setStroke(Stroke stroke)

ストロークを指定します。

Parameters:

パラメータ説明
strokejava.awt.Strokeストローク。

setTextRenderingMode(TextRenderingMode textRenderingMode)

public void setTextRenderingMode(TextRenderingMode textRenderingMode)

テキスト描画モードを指定します。

Parameters:

パラメータ説明
textRenderingModeTextRenderingModeテキストレンダリングモード。

setTextStrokeWidth(float textStrokeWidth)

public void setTextStrokeWidth(float textStrokeWidth)

テキストストローク幅を指定します。

Parameters:

パラメータ説明
textStrokeWidthfloatテキストストローク幅。

setTransform(AffineTransform transform)

public void setTransform(AffineTransform transform)

現在の変換を指定します。

Parameters:

パラメータ説明
transformjava.awt.geom.AffineTransform変換..

shear(double shx, double shy)

public void shear(double shx, double shy)

現在の変換行列をシアーします。writeTransform(Transform) を呼び出します。

Parameters:

パラメータ説明
shxdoubleX 軸のシアー。
shydoubleY 軸のシアー。

startDocument()

public void startDocument()

ドキュメントのレンダリング開始前にデバイスの必要な準備を行います。

toString()

public String toString()

デバイスタイプの名前を返します。

Returns: java.lang.String

transform(AffineTransform transform)

public void transform(AffineTransform transform)

現在の変換行列を変換します。writeTransform(Transform) を呼び出します。

Parameters:

パラメータ説明
transformjava.awt.geom.AffineTransform適用される変換。

translate(double x, double y)

public void translate(double x, double y)

現在の変換行列を平行移動します。writeTransform(Transform) を呼び出します。

Parameters:

パラメータ説明
xdoubleX 軸の平行移動。
ydoubleY 軸の平行移動。

updatePageParameters(IMultiPageDevice device)

public void updatePageParameters(IMultiPageDevice device)

他のマルチページデバイスからページパラメータを更新します。

Parameters:

パラメータ説明
deviceIMultiPageDevice

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

パラメータ説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメータ説明
arg0long
arg1int

writeComment(String comment)

public void writeComment(String comment)

コメントを書き込みます。

Parameters:

パラメータ説明
コメントjava.lang.String書き込むコメント。

writeString(ITrFont font, String str)

public void writeString(ITrFont font, String str)

指定されたフォントで文字列を書き出します。

Parameters:

パラメータ説明
fontITrFont指定されたフォント。
strjava.lang.String文字列。

writeWarning(String warning)

public void writeWarning(String warning)

Parameters:

パラメータ説明
警告java.lang.String