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 | 現在のデバイスバージョンです。 |
メソッド
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:
| パラメータ | 型 | 説明 |
|---|---|---|
| path | java.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:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | float | 弧の中心のX座標。 |
| y | float | 弧の中心のY座標。 |
| width | float | 外接矩形の幅。 |
| height | float | 外接矩形の高さ。 |
| startAngle | float | 弧の開始角度。 |
| arcAngle | float | 弧の角度。 |
drawImage(BufferedImage image, AffineTransform transform, Color bkg)
public void drawImage(BufferedImage image, AffineTransform transform, Color bkg)
割り当てられた変換と背景で画像を描画します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| image | java.awt.image.BufferedImage | 描画する画像。 |
| transform | java.awt.geom.AffineTransform | 変換。 |
| bkg | java.awt.Color | 背景色。 |
drawLine(float x1, float y1, float x2, float y2)
public void drawLine(float x1, float y1, float x2, float y2)
線分を描画します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| x1 | float | セグメントの開始点のX座標。 |
| y1 | float | セグメントの開始点のY座標。 |
| x2 | float | セグメントの終了点のX座標。 |
| y2 | float | セグメントの終了点のY座標。 |
drawOval(float x, float y, float width, float height)
public void drawOval(float x, float y, float width, float height)
楕円を描画します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | float | 楕円の中心のX座標。 |
| y | float | 楕円の中心のY座標。 |
| width | float | 外接矩形の幅。 |
| height | float | 外接矩形の高さ。 |
drawPolygon(float[] xPoints, float[] yPoints, int nPoints)
public void drawPolygon(float[] xPoints, float[] yPoints, int nPoints)
多角形を描画します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| xPoints | float[] | 点のX座標。 |
| yPoints | float[] | 点のY座標。 |
| nPoints | int | 点の数です。 |
drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void drawPolygon(int[] xPoints, int[] yPoints, int nPoints)
多角形を描画します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| xPoints | int[] | 点のX座標。 |
| yPoints | int[] | 点のY座標。 |
| nPoints | int | 点の数です。 |
drawPolyline(float[] xPoints, float[] yPoints, int nPoints)
public void drawPolyline(float[] xPoints, float[] yPoints, int nPoints)
ポリラインを描画します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| xPoints | float[] | 点のX座標。 |
| yPoints | float[] | 点のY座標。 |
| nPoints | int | 点の数です。 |
drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints)
ポリラインを描画します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| xPoints | int[] | 点のX座標。 |
| yPoints | int[] | 点のY座標。 |
| nPoints | int | 点の数です。 |
drawRect(float x, float y, float width, float height)
public void drawRect(float x, float y, float width, float height)
矩形を描画します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | float | 矩形の左上隅のX座標。 |
| y | float | 矩形の左上隅のY座標。 |
| width | float | 矩形の幅。 |
| height | float | 矩形の高さ。 |
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:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | float | 矩形の左上隅のX座標。 |
| y | float | 矩形の左上隅のY座標。 |
| width | float | 矩形の幅。 |
| height | float | 矩形の高さ。 |
| arcWidth | float | 矩形の角を丸める弧の外接矩形の幅。 |
| arcHeight | float | 矩形の角を丸める弧の外接矩形の高さ。 |
drawString(String str, float x, float y)
public void drawString(String str, float x, float y)
指定された点に文字列を描画します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| str | java.lang.String | |
| x | float | |
| y | float |
endDocument()
public void endDocument()
ドキュメントがレンダリングされた後、デバイスの必要な準備を行います。
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
fill(Shape path)
public void fill(Shape path)
パスを塗りつぶします。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| path | java.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:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | float | 弧の中心のX座標。 |
| y | float | 弧の中心のY座標。 |
| width | float | 外接矩形の幅。 |
| height | float | 外接矩形の高さ。 |
| startAngle | float | 弧の開始角度。 |
| arcAngle | float | 弧の角度。 |
fillOval(float x, float y, float width, float height)
public void fillOval(float x, float y, float width, float height)
楕円を塗りつぶします。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | float | 楕円の中心のX座標。 |
| y | float | 楕円の中心のY座標。 |
| width | float | 外接矩形の幅。 |
| height | float | 外接矩形の高さ。 |
fillPolygon(float[] xPoints, float[] yPoints, int nPoints)
public void fillPolygon(float[] xPoints, float[] yPoints, int nPoints)
多角形を塗りつぶします。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| xPoints | float[] | 点のX座標。 |
| yPoints | float[] | 点のY座標。 |
| nPoints | int | 点の数です。 |
fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints)
多角形を塗りつぶします。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| xPoints | int[] | 点のX座標。 |
| yPoints | int[] | 点のY座標。 |
| nPoints | int | 点の数です。 |
fillRect(float x, float y, float width, float height)
public void fillRect(float x, float y, float width, float height)
長方形を塗りつぶします。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | float | 矩形の左上隅のX座標。 |
| y | float | 矩形の左上隅のY座標。 |
| width | float | 矩形の幅。 |
| height | float | 矩形の高さ。 |
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:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | float | 矩形の左上隅のX座標。 |
| y | float | 矩形の左上隅のY座標。 |
| width | float | 矩形の幅。 |
| height | float | 矩形の高さ。 |
| arcWidth | float | 矩形の角を丸める弧の外接矩形の幅。 |
| arcHeight | float | 矩形の角を丸める弧の外接矩形の高さ。 |
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:
| パラメータ | 型 | 説明 |
|---|---|---|
| startPage | int | |
| endPage | int |
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:
| パラメータ | 型 | 説明 |
|---|---|---|
| width | float | |
| height | float |
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:
| パラメータ | 型 | 説明 |
|---|---|---|
| mainDocument | boolean |
reset()
public void reset()
ページの初期状態にデバイスをリセットします。
reset(boolean zeroPageNumbers)
public void reset(boolean zeroPageNumbers)
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| zeroPageNumbers | boolean |
rotate(double theta)
public void rotate(double theta)
現在の変換行列を回転させます。writeTransform(Transform) を呼び出します。正の角度 theta で回転させると、正の x 軸上の点が正の y 軸方向へ回転します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| theta | double | 回転させるラジアン単位の角度。 |
rotate(double theta, double x, double y)
public void rotate(double theta, double x, double y)
現在の変換行列を点の周りで回転させます。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| theta | double | ラジアン単位の回転角。 |
| x | double | 点の X 座標。 |
| y | double | 点のY座標。 |
scale(double x, double y)
public void scale(double x, double y)
現在の変換行列をスケールします。Calls writeTransform(Transform).
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | double | X軸のスケール。 |
| y | double | Y軸のスケール。 |
setBackground(Color background)
public void setBackground(Color background)
ページの現在の背景を指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| 背景 | java.awt.Color | ページの背景。 |
setCharTM(AffineTransform charTM)
public void setCharTM(AffineTransform charTM)
文字の変換を指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| charTM | java.awt.geom.AffineTransform | \u0421haracters 変換。 |
setClip(Shape clipPath)
public void setClip(Shape clipPath)
デバイスのクリップを指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| clipPath | java.awt.Shape | クリッピングパス。 |
setCreator(String creator)
public void setCreator(String creator)
結果として得られるデバイス出力の作成者を指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| 作成者 | java.lang.String | 作成者の値。 |
setFont(ITrFont font)
public void setFont(ITrFont font)
フォントを指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| font | ITrFont | フォント。 |
setOpacity(float opacity)
public void setOpacity(float opacity)
不透明度を指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| 不透明度 | float | 不透明度。 |
setOpacityMask(Paint opacityMask)
public void setOpacityMask(Paint opacityMask)
不透明度マスクを指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| opacityMask | java.awt.Paint | 不透明度マスク。 |
setPaint(Paint paint)
public void setPaint(Paint paint)
ペイントを指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| paint | java.awt.Paint | ペイント。 |
setProperties(UserProperties props)
public void setProperties(UserProperties props)
メタデータを含むデバイスプロパティを指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| props | UserProperties | デバイスプロパティ。 |
setSaveOptions(SaveOptions options)
public void setSaveOptions(SaveOptions options)
レンダリングプロセスの管理オプションを指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| options | SaveOptions | レンダリングプロセスを管理するオプション。 |
setSize(Dimension size)
public void setSize(Dimension size)
ページのサイズを指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| size | java.awt.Dimension |
setStroke(Stroke stroke)
public void setStroke(Stroke stroke)
ストロークを指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| stroke | java.awt.Stroke | ストローク。 |
setTextRenderingMode(TextRenderingMode textRenderingMode)
public void setTextRenderingMode(TextRenderingMode textRenderingMode)
テキスト描画モードを指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| textRenderingMode | TextRenderingMode | テキストレンダリングモード。 |
setTextStrokeWidth(float textStrokeWidth)
public void setTextStrokeWidth(float textStrokeWidth)
テキストストローク幅を指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| textStrokeWidth | float | テキストストローク幅。 |
setTransform(AffineTransform transform)
public void setTransform(AffineTransform transform)
現在の変換を指定します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| transform | java.awt.geom.AffineTransform | 変換.. |
shear(double shx, double shy)
public void shear(double shx, double shy)
現在の変換行列をシアーします。writeTransform(Transform) を呼び出します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| shx | double | X 軸のシアー。 |
| shy | double | Y 軸のシアー。 |
startDocument()
public void startDocument()
ドキュメントのレンダリング開始前にデバイスの必要な準備を行います。
toString()
public String toString()
デバイスタイプの名前を返します。
Returns: java.lang.String
transform(AffineTransform transform)
public void transform(AffineTransform transform)
現在の変換行列を変換します。writeTransform(Transform) を呼び出します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| transform | java.awt.geom.AffineTransform | 適用される変換。 |
translate(double x, double y)
public void translate(double x, double y)
現在の変換行列を平行移動します。writeTransform(Transform) を呼び出します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| x | double | X 軸の平行移動。 |
| y | double | Y 軸の平行移動。 |
updatePageParameters(IMultiPageDevice device)
public void updatePageParameters(IMultiPageDevice device)
他のマルチページデバイスからページパラメータを更新します。
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| device | IMultiPageDevice |
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| arg0 | long | |
| arg1 | int |
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:
| パラメータ | 型 | 説明 |
|---|---|---|
| font | ITrFont | 指定されたフォント。 |
| str | java.lang.String | 文字列。 |
writeWarning(String warning)
public void writeWarning(String warning)
Parameters:
| パラメータ | 型 | 説明 |
|---|---|---|
| 警告 | java.lang.String |