DocumentUtils

Inheritance: java.lang.Object

public class DocumentUtils

このクラスは、正式な XPS 操作 API を超えるユーティリティを提供します。

メソッド

メソッド説明
createCircle(Point2D center, float radius)円を表すパスジオメトリを作成します。
createCircularSegment(Point2D center, float radius, float startAngle, float endAngle)2 つの角度間の円弧セグメントを表すパスジオメトリを作成します。
createEllipse(Point2D center, float radiusX, float radiusY)楕円を表すパスジオメトリを作成します。
createImage(String fileName, Rectangle2D imageBox)画像で塗りつぶされた矩形パスを作成します。
createImage(String fileName, Rectangle2D imageBox, ImageMode mode)画像で塗りつぶされた矩形パスを作成します。
createPieSlice(Point2D center, float radius, float startAngle, float endAngle)2 本の放射線間の円スライスを表すパスジオメトリを作成します。
createRectangle(Rectangle2D rectangle)矩形を表すパスジオメトリを作成します。
createRegularCircumscribedNGon(int n, Point2D center, float radius)円に外接する正 n 角形を表すパスジオメトリを作成します。
createRegularInscribedNGon(int n, Point2D center, float radius)円に内接する正 n 角形を表すパスジオメトリを作成します。
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

createCircle(Point2D center, float radius)

public XpsPathGeometry createCircle(Point2D center, float radius)

円を表すパスジオメトリを作成します。

Parameters:

パラメータ説明
centerjava.awt.geom.Point2D円の中心点です。
半径float円の半径です。

Returns: XpsPathGeometry - The XPS path geometry.

createCircularSegment(Point2D center, float radius, float startAngle, float endAngle)

public XpsPathGeometry createCircularSegment(Point2D center, float radius, float startAngle, float endAngle)

2 つの角度間の円弧セグメントを表すパスジオメトリを作成します。

Parameters:

パラメータ説明
centerjava.awt.geom.Point2D円の中心です。
半径float円の半径です。
startAnglefloat開始光線の角度(度)。
endAnglefloat終了光線の角度(度)。

Returns: XpsPathGeometry - The XPS path geometry.

createEllipse(Point2D center, float radiusX, float radiusY)

public XpsPathGeometry createEllipse(Point2D center, float radiusX, float radiusY)

楕円を表すパスジオメトリを作成します。

Parameters:

パラメータ説明
centerjava.awt.geom.Point2D楕円の中心点です。
radiusXfloat楕円の水平半径です。
radiusYfloat楕円の垂直半径です。

Returns: XpsPathGeometry - The XPS path geometry.

createImage(String fileName, Rectangle2D imageBox)

public XpsPath createImage(String fileName, Rectangle2D imageBox)

画像で塗りつぶされた矩形パスを作成します。

Parameters:

パラメータ説明
fileNamejava.lang.String画像ファイルの名前です。
imageBoxjava.awt.geom.Rectangle2D画像で埋めるイメージボックスです。

Returns: XpsPath - The XPS path.

createImage(String fileName, Rectangle2D imageBox, ImageMode mode)

public XpsPath createImage(String fileName, Rectangle2D imageBox, ImageMode mode)

画像で塗りつぶされた矩形パスを作成します。

Parameters:

パラメータ説明
fileNamejava.lang.String画像ファイルの名前です。
imageBoxjava.awt.geom.Rectangle2D画像で埋めるイメージボックスです。
modeImageMode画像のフィットモードです。

Returns: XpsPath - The XPS path.

createPieSlice(Point2D center, float radius, float startAngle, float endAngle)

public XpsPathGeometry createPieSlice(Point2D center, float radius, float startAngle, float endAngle)

2 本の放射線間の円スライスを表すパスジオメトリを作成します。

Parameters:

パラメータ説明
centerjava.awt.geom.Point2D円の中心です。
半径float円の半径です。
startAnglefloat開始光線の角度(度)。
endAnglefloat終了光線の角度(度)。

Returns: XpsPathGeometry - The XPS path geometry.

createRectangle(Rectangle2D rectangle)

public XpsPathGeometry createRectangle(Rectangle2D rectangle)

矩形を表すパスジオメトリを作成します。

Parameters:

パラメータ説明
rectanglejava.awt.geom.Rectangle2D矩形です。

Returns: XpsPathGeometry - The XPS path geometry.

createRegularCircumscribedNGon(int n, Point2D center, float radius)

public XpsPathGeometry createRegularCircumscribedNGon(int n, Point2D center, float radius)

円に外接する正 n 角形を表すパスジオメトリを作成します。

Parameters:

パラメータ説明
nint頂点の数です。
centerjava.awt.geom.Point2D円の中心です。
半径float円の半径です。

Returns: XpsPathGeometry - The XPS path geometry.

createRegularInscribedNGon(int n, Point2D center, float radius)

public XpsPathGeometry createRegularInscribedNGon(int n, Point2D center, float radius)

円に内接する正 n 角形を表すパスジオメトリを作成します。

Parameters:

パラメータ説明
nint頂点の数です。
centerjava.awt.geom.Point2D円の中心です。
半径float円の半径です。

Returns: XpsPathGeometry - The XPS path geometry.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

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

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

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