PageAPI

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.xps.features.EventBasedModifications.IModificationAPI

public class PageAPI implements EventBasedModifications.IModificationAPI

Page 要素の変更 API。

メソッド

メソッド説明
add(T element)コンテンツ要素(Canvas、Path、または Glyphs)を追加します
insert(int index, T element)ページのインデックス位置に要素(Canvas、Path、または Glyphs)を挿入します。
remove(T element)ページから要素を削除します。
addCanvas()ページに新しいキャンバスを追加します。
addGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)ページに新しいグリフを追加します。
addGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)ページに新しいグリフを追加します。
addOutlineEntry(String description, int outlineLevel, int targetPageNumber)ドキュメントにアウトラインエントリを追加します。
addPath(XpsPathGeometry data)ページに新しいパスを追加します。
createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection)新しいストロークされた楕円弧セグメントを作成します。
createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection, boolean isStroked)新しい楕円弧セグメントを作成します。
createCanvas()新しいキャンバスを作成します。
createColor(XpsIccProfile iccProfile, float[] components)ICCベースのカラースペースで新しい色を作成します。
createColor(float r, float g, float b)scRGB カラースペースで新しい色を作成します。
createColor(float a, float r, float g, float b)scRGB カラースペースで新しい色を作成します。
createColor(int r, int g, int b)sRGB カラースペースで新しい色を作成します。
createColor(int a, int r, int g, int b)sRGB カラースペースで新しい色を作成します。
createColor(Color color)新しい色を作成します。
createColor(String path, float[] components)ICCベースのカラースペースで新しい色を作成します。
createGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)新しいグリフを作成します。
createGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)新しいグリフを作成します。
createGradientStop(XpsColor color, float offset)新しいグラデーションストップを作成します。
createGradientStop(Color color, float offset)新しいグラデーションストップを作成します。
createImageBrush(XpsImage image, Rectangle2D viewbox, Rectangle2D viewport)新しいイメージブラシを作成します。
createImageBrush(String imagePath, Rectangle2D viewbox, Rectangle2D viewport)新しいイメージブラシを作成します。
createLinearGradientBrush(Point2D startPoint, Point2D endPoint)新しい線形グラデーションブラシを作成します。
createLinearGradientBrush(List gradientStops, Point2D startPoint, Point2D endPoint)新しい線形グラデーションブラシを作成します。
createMatrix(float m11, float m12, float m21, float m22, float m31, float m32)新しいアフィン変換行列を作成します。
createPath(XpsPathGeometry data)新しいパスを作成します。
createPathFigure(Point2D startPoint)新しいオープンパス図形を作成します。
createPathFigure(Point2D startPoint, boolean isClosed)新しいパス図形を作成します。
createPathFigure(Point2D startPoint, List segments)新しいオープンパス図形を作成します。
createPathFigure(Point2D startPoint, List segments, boolean isClosed)新しいパス図形を作成します。
createPathGeometry()新しいパスジオメトリを作成します。
createPathGeometry(String abbreviatedGeometry)省略形で指定された新しいパスジオメトリを作成します。
createPathGeometry(List pathFigures)指定されたパス図形のリストで新しいパスジオメトリを作成します。
createPolyBezierSegment(Point2D[] points)ストロークされた立方ベジエ曲線の新しいセットを作成します。
createPolyBezierSegment(Point2D[] points, boolean isStroked)立方ベジエ曲線の新しいセットを作成します。
createPolyLineSegment(Point2D[] points)任意の数の個々の頂点を含む新しいストロークされた多角形描画を作成します。
createPolyLineSegment(Point2D[] points, boolean isStroked)任意の数の個々の頂点を含む新しい多角形描画を作成します。
createPolyQuadraticBezierSegment(Point2D[] points)パス図形の前の点から指定された制御点を使用して頂点のセットを通過する、ストロークされた二次ベジエ曲線の新しいセットを作成します。
createPolyQuadraticBezierSegment(Point2D[] points, boolean isStroked)パス図形の前の点から指定された制御点を使用して頂点のセットを通過する、二次ベジエ曲線の新しいセットを作成します。
createRadialGradientBrush(Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)新しい放射状グラデーションブラシを作成します。
createRadialGradientBrush(List gradientStops, Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)新しい放射状グラデーションブラシを作成します。
createSolidColorBrush(XpsColor color)新しい単色ブラシを作成します。
createSolidColorBrush(Color color)新しい単色ブラシを作成します。
createVisualBrush(XpsContentElement element, Rectangle2D viewbox, Rectangle2D viewport)新しいビジュアルブラシを作成します。
equals(Object arg0)
getClass()
getHeight()ページの高さを、実座標空間の単位で実数として返します。
getPageCount()アクティブなドキュメントのページ数を返します。
getTotalPageCount()XPS ドキュメント内のすべてのドキュメントの総ページ数を返します。
getUtils()正式な XPS 操作 API を超えるユーティリティを提供するオブジェクトを取得します。
getWidth()ページの幅を、実座標空間の単位で実数として返します。
hashCode()
insertCanvas(int index)ページの index 位置に新しいキャンバスを挿入します。
insertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, String unicodeString)ページの index 位置に新しいグリフを挿入します。
insertGlyphs(int index, String fontFamily, float fontSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)ページの index 位置に新しいグリフを挿入します。
insertPath(int index, XpsPathGeometry data)ページの index 位置に新しいパスを挿入します。
notify()
notifyAll()
removeAt(int index)ページの index 位置から要素を削除します。
setHeight(float value)ページの高さを、実座標空間の単位で実数として設定します。
setWidth(float value)ページの幅を、実座標空間の単位で実数として設定します。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

add(T element)

public T <T>add(T element)

コンテンツ要素(Canvas、Path、または Glyphs)を追加します

Parameters:

パラメータ説明
要素T追加する要素です。

Returns: T - 追加された要素。

insert(int index, T element)

public T <T>insert(int index, T element)

ページのインデックス位置に要素(Canvas、Path、または Glyphs)を挿入します。

Parameters:

パラメータ説明
インデックスint要素を挿入すべき位置。
要素T挿入する要素。

Returns: T - 挿入された要素。

remove(T element)

public T <T>remove(T element)

ページから要素を削除します。

Parameters:

パラメータ説明
要素T削除する要素。

Returns: T - 削除された要素。

addCanvas()

public XpsCanvas addCanvas()

ページに新しいキャンバスを追加します。

Returns: XpsCanvas - Added canvas.

addGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)

public XpsGlyphs addGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)

ページに新しいグリフを追加します。

Parameters:

パラメータ説明
fontXpsFontフォントリソース。
fontRenderingEmSizefloatフォントサイズ。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - Added glyphs.

addGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

public XpsGlyphs addGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

ページに新しいグリフを追加します。

Parameters:

パラメータ説明
fontFamilyjava.lang.Stringフォントファミリー。
fontRenderingEmSizefloatフォントサイズ。
fontStyleXpsFontStyleフォントスタイル。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - Added glyphs.

addOutlineEntry(String description, int outlineLevel, int targetPageNumber)

public void addOutlineEntry(String description, int outlineLevel, int targetPageNumber)

ドキュメントにアウトラインエントリを追加します。

Parameters:

パラメータ説明
説明java.lang.Stringエントリの説明。
outlineLevelintアウトラインレベル。
targetPageNumberint対象ページ番号。

addPath(XpsPathGeometry data)

public XpsPath addPath(XpsPathGeometry data)

ページに新しいパスを追加します。

Parameters:

パラメータ説明
dataXpsPathGeometryパスのジオメトリ。

Returns: XpsPath - Added path.

createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection)

public XpsArcSegment createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection)

新しいストロークされた楕円弧セグメントを作成します。

Parameters:

パラメータ説明
ポイントjava.awt.geom.Point2D楕円弧の終点。
sizejava.awt.geom.Dimension2D楕円弧の x と y の半径(x,y のペア)。
rotationAnglefloat楕円が現在の座標系に対してどのように回転しているかを示します。
isLargeArcboolean弧が 180 度以上のスイープで描画されるかどうかを決定します。
sweepDirectionXpsSweepDirection弧が描画される方向。

Returns: XpsArcSegment - New elliptical arc segment.

createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection, boolean isStroked)

public XpsArcSegment createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection, boolean isStroked)

新しい楕円弧セグメントを作成します。

Parameters:

パラメータ説明
ポイントjava.awt.geom.Point2D楕円弧の終点。
sizejava.awt.geom.Dimension2D楕円弧の x と y の半径(x,y のペア)。
rotationAnglefloat楕円が現在の座標系に対してどのように回転しているかを示します。
isLargeArcboolean弧が 180 度以上のスイープで描画されるかどうかを決定します。
sweepDirectionXpsSweepDirection弧が描画される方向。
isStrokedbooleanパスのこのセグメントのストロークが描画されるかどうかを指定します。

Returns: XpsArcSegment - New elliptical arc segment.

createCanvas()

public XpsCanvas createCanvas()

新しいキャンバスを作成します。

Returns: XpsCanvas - New canvas.

createColor(XpsIccProfile iccProfile, float[] components)

public XpsColor createColor(XpsIccProfile iccProfile, float[] components)

ICCベースのカラースペースで新しい色を作成します。

Parameters:

パラメータ説明
iccProfileXpsIccProfileICC プロファイルリソース。
componentsfloat[]色コンポーネント。

Returns: XpsColor - New color.

createColor(float r, float g, float b)

public XpsColor createColor(float r, float g, float b)

scRGB カラースペースで新しい色を作成します。

Parameters:

パラメータ説明
rfloat赤色コンポーネント。
gfloat緑色コンポーネント。
bfloat青色コンポーネント。

Returns: XpsColor - New color.

createColor(float a, float r, float g, float b)

public XpsColor createColor(float a, float r, float g, float b)

scRGB カラースペースで新しい色を作成します。

Parameters:

パラメータ説明
afloatアルファ色コンポーネント。
rfloat赤色コンポーネント。
gfloat緑色コンポーネント。
bfloat青色コンポーネント。

Returns: XpsColor - New color.

createColor(int r, int g, int b)

public XpsColor createColor(int r, int g, int b)

sRGB カラースペースで新しい色を作成します。

Parameters:

パラメータ説明
rint赤色コンポーネント。
gint緑色コンポーネント。
bint青色コンポーネント。

Returns: XpsColor - New color.

createColor(int a, int r, int g, int b)

public XpsColor createColor(int a, int r, int g, int b)

sRGB カラースペースで新しい色を作成します。

Parameters:

パラメータ説明
aintアルファ色コンポーネント。
rint赤色コンポーネント。
gint緑色コンポーネント。
bint青色コンポーネント。

Returns: XpsColor - New color.

createColor(Color color)

public XpsColor createColor(Color color)

新しい色を作成します。

Parameters:

パラメータ説明
colorjava.awt.ColorRGB カラー用のネイティブカラーインスタンスです。

Returns: XpsColor - New color.

createColor(String path, float[] components)

public XpsColor createColor(String path, float[] components)

ICCベースのカラースペースで新しい色を作成します。

Parameters:

パラメータ説明
pathjava.lang.StringICC プロファイルへのパスです。
componentsfloat[]色コンポーネント。

Returns: XpsColor - New color.

createGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)

public XpsGlyphs createGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)

新しいグリフを作成します。

Parameters:

パラメータ説明
fontXpsFontフォントリソース。
fontRenderingEmSizefloatフォントサイズ。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - New glyphs.

createGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

public XpsGlyphs createGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

新しいグリフを作成します。

Parameters:

パラメータ説明
fontFamilyjava.lang.Stringフォントファミリー。
fontRenderingEmSizefloatフォントサイズ。
fontStyleXpsFontStyleフォントスタイル。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - New glyphs.

createGradientStop(XpsColor color, float offset)

public XpsGradientStop createGradientStop(XpsColor color, float offset)

新しいグラデーションストップを作成します。

Parameters:

パラメータ説明
colorXpsColorグラデーションストップカラーです。
オフセットfloatグラデーションのオフセットです。

Returns: XpsGradientStop - New gradient stop.

createGradientStop(Color color, float offset)

public XpsGradientStop createGradientStop(Color color, float offset)

新しいグラデーションストップを作成します。

Parameters:

パラメータ説明
colorjava.awt.Colorグラデーションストップカラーです。
オフセットfloatグラデーションのオフセットです。

Returns: XpsGradientStop - New gradient stop.

createImageBrush(XpsImage image, Rectangle2D viewbox, Rectangle2D viewport)

public XpsImageBrush createImageBrush(XpsImage image, Rectangle2D viewbox, Rectangle2D viewport)

新しいイメージブラシを作成します。

Parameters:

パラメータ説明
imageXpsImage画像リソースです。
ビュー ボックスjava.awt.geom.Rectangle2Dブラシのソースコンテンツの位置とサイズです。
ビューポートjava.awt.geom.Rectangle2Dプライムブラシタイルが含まれる座標空間内の領域で、(必要に応じて繰り返し)ブラシが適用される領域を埋めるために適用される領域です。

Returns: XpsImageBrush - New image brush.

createImageBrush(String imagePath, Rectangle2D viewbox, Rectangle2D viewport)

public XpsImageBrush createImageBrush(String imagePath, Rectangle2D viewbox, Rectangle2D viewport)

新しいイメージブラシを作成します。

Parameters:

パラメータ説明
イメージパスjava.lang.Stringブラシタイルとして使用する画像へのパスです。
ビュー ボックスjava.awt.geom.Rectangle2Dブラシのソースコンテンツの位置とサイズです。
ビューポートjava.awt.geom.Rectangle2Dプライムブラシタイルが含まれる座標空間内の領域で、(必要に応じて繰り返し)ブラシが適用される領域を埋めるために適用される領域です。

Returns: XpsImageBrush - New image brush.

createLinearGradientBrush(Point2D startPoint, Point2D endPoint)

public XpsLinearGradientBrush createLinearGradientBrush(Point2D startPoint, Point2D endPoint)

新しい線形グラデーションブラシを作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2D線形グラデーションの開始点です。
終了点java.awt.geom.Point2D線形グラデーションの終了点です。

Returns: XpsLinearGradientBrush - New linear gradient brush.

createLinearGradientBrush(List gradientStops, Point2D startPoint, Point2D endPoint)

public XpsLinearGradientBrush createLinearGradientBrush(List<XpsGradientStop> gradientStops, Point2D startPoint, Point2D endPoint)

新しい線形グラデーションブラシを作成します。

Parameters:

パラメータ説明
グラデーションストップjava.util.List<com.aspose.xps.XpsGradientStop>グラデーションストップのリストです。
開始点java.awt.geom.Point2D線形グラデーションの開始点です。
終了点java.awt.geom.Point2D線形グラデーションの終了点です。

Returns: XpsLinearGradientBrush - New linear gradient brush.

createMatrix(float m11, float m12, float m21, float m22, float m31, float m32)

public XpsMatrix createMatrix(float m11, float m12, float m21, float m22, float m31, float m32)

新しいアフィン変換行列を作成します。

Parameters:

パラメータ説明
m11float要素 11です。
m12float要素 12です。
m21float要素 21です。
m22float要素 22です。
m31float要素 31。
m32float要素 32。

Returns: XpsMatrix - New affine transformation matrix.

createPath(XpsPathGeometry data)

public XpsPath createPath(XpsPathGeometry data)

新しいパスを作成します。

Parameters:

パラメータ説明
dataXpsPathGeometryパスのジオメトリ。

Returns: XpsPath - New path.

createPathFigure(Point2D startPoint)

public XpsPathFigure createPathFigure(Point2D startPoint)

新しいオープンパス図形を作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2Dパス図形の最初のセグメントの開始点。

Returns: XpsPathFigure - New path figure.

createPathFigure(Point2D startPoint, boolean isClosed)

public XpsPathFigure createPathFigure(Point2D startPoint, boolean isClosed)

新しいパス図形を作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2Dパス図形の最初のセグメントの開始点。
isClosedbooleanパスが閉じているかどうかを指定します。true に設定すると、ストロークは “closed” と描画され、つまりパス図形の最後のセグメントの最後の点が StartPoint 属性で指定された点と接続されます。false の場合、ストロークは “open” と描画され、最後の点は開始点と接続されません。これは、ストロークを指定する Path 要素でパス図形が使用されている場合にのみ適用されます。

Returns: XpsPathFigure - New path figure.

createPathFigure(Point2D startPoint, List segments)

public XpsPathFigure createPathFigure(Point2D startPoint, List<XpsPathSegment> segments)

新しいオープンパス図形を作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2Dパス図形の最初のセグメントの開始点。
segmentsjava.util.List<com.aspose.xps.XpsPathSegment>パスセグメントのリスト。

Returns: XpsPathFigure - New path figure.

createPathFigure(Point2D startPoint, List segments, boolean isClosed)

public XpsPathFigure createPathFigure(Point2D startPoint, List<XpsPathSegment> segments, boolean isClosed)

新しいパス図形を作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2Dパス図形の最初のセグメントの開始点。
segmentsjava.util.List<com.aspose.xps.XpsPathSegment>パスセグメントのリスト。
isClosedbooleanパスが閉じているかどうかを指定します。true に設定すると、ストロークは “closed” と描画され、つまりパス図形の最後のセグメントの最後の点が StartPoint 属性で指定された点と接続されます。false の場合、ストロークは “open” と描画され、最後の点は開始点と接続されません。これは、ストロークを指定する Path 要素でパス図形が使用されている場合にのみ適用されます。

Returns: XpsPathFigure - New path figure.

createPathGeometry()

public XpsPathGeometry createPathGeometry()

新しいパスジオメトリを作成します。

Returns: XpsPathGeometry - New path geometry.

createPathGeometry(String abbreviatedGeometry)

public XpsPathGeometry createPathGeometry(String abbreviatedGeometry)

省略形で指定された新しいパスジオメトリを作成します。

Parameters:

パラメータ説明
abbreviatedGeometryjava.lang.Stringパスジオメトリの省略形。

Returns: XpsPathGeometry - New path geometry.

createPathGeometry(List pathFigures)

public XpsPathGeometry createPathGeometry(List<XpsPathFigure> pathFigures)

指定されたパス図形のリストで新しいパスジオメトリを作成します。

Parameters:

パラメータ説明
pathFiguresjava.util.List<com.aspose.xps.XpsPathFigure>パス図形のリスト。

Returns: XpsPathGeometry - New path geometry.

createPolyBezierSegment(Point2D[] points)

public XpsPolyBezierSegment createPolyBezierSegment(Point2D[] points)

ストロークされた立方ベジエ曲線の新しいセットを作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]複数のベジエセグメントの制御点。

Returns: XpsPolyBezierSegment - New cubic B?zier curves segment.

createPolyBezierSegment(Point2D[] points, boolean isStroked)

public XpsPolyBezierSegment createPolyBezierSegment(Point2D[] points, boolean isStroked)

立方ベジエ曲線の新しいセットを作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]複数のベジエセグメントの制御点。
isStrokedbooleanパスのこのセグメントのストロークが描画されるかどうかを指定します。

Returns: XpsPolyBezierSegment - New cubic B?zier curves segment.

createPolyLineSegment(Point2D[] points)

public XpsPolyLineSegment createPolyLineSegment(Point2D[] points)

任意の数の個々の頂点を含む新しいストロークされた多角形描画を作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]ポリラインセグメントを定義する複数のセグメントの座標セット。

Returns: XpsPolyLineSegment - New polygonal drawing segment.

createPolyLineSegment(Point2D[] points, boolean isStroked)

public XpsPolyLineSegment createPolyLineSegment(Point2D[] points, boolean isStroked)

任意の数の個々の頂点を含む新しい多角形描画を作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]ポリラインセグメントを定義する複数のセグメントの座標セット。
isStrokedbooleanパスのこのセグメントのストロークが描画されるかどうかを指定します。

Returns: XpsPolyLineSegment - New polygonal drawing segment.

createPolyQuadraticBezierSegment(Point2D[] points)

public XpsPolyQuadraticBezierSegment createPolyQuadraticBezierSegment(Point2D[] points)

パス図形の前の点から指定された制御点を使用して頂点のセットを通過する、ストロークされた二次ベジエ曲線の新しいセットを作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]複数の二次ベジエセグメントの制御点。

Returns: XpsPolyQuadraticBezierSegment - New quadratic B?zier curves segment.

createPolyQuadraticBezierSegment(Point2D[] points, boolean isStroked)

public XpsPolyQuadraticBezierSegment createPolyQuadraticBezierSegment(Point2D[] points, boolean isStroked)

パス図形の前の点から指定された制御点を使用して頂点のセットを通過する、二次ベジエ曲線の新しいセットを作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]複数の二次ベジエセグメントの制御点。
isStrokedbooleanパスのこのセグメントのストロークが描画されるかどうかを指定します。

Returns: XpsPolyQuadraticBezierSegment - New quadratic B?zier curves segment.

createRadialGradientBrush(Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)

public XpsRadialGradientBrush createRadialGradientBrush(Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)

新しい放射状グラデーションブラシを作成します。

Parameters:

パラメータ説明
centerjava.awt.geom.Point2D放射状グラデーションの中心点(すなわち楕円の中心)。
gradientOriginjava.awt.geom.Point2D放射状グラデーションの起点。
radiusXfloat放射状グラデーションを定義する楕円の x 軸方向の半径です。
radiusYfloat放射状グラデーションを定義する楕円の y 軸方向の半径です。

Returns: XpsRadialGradientBrush - New radial gradient brush.

createRadialGradientBrush(List gradientStops, Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)

public XpsRadialGradientBrush createRadialGradientBrush(List<XpsGradientStop> gradientStops, Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)

新しい放射状グラデーションブラシを作成します。

Parameters:

パラメータ説明
グラデーションストップjava.util.List<com.aspose.xps.XpsGradientStop>グラデーションストップのリストです。
centerjava.awt.geom.Point2D放射状グラデーションの中心点(すなわち楕円の中心)。
gradientOriginjava.awt.geom.Point2D放射状グラデーションの起点。
radiusXfloat放射状グラデーションを定義する楕円の x 軸方向の半径です。
radiusYfloat放射状グラデーションを定義する楕円の y 軸方向の半径です。

Returns: XpsRadialGradientBrush - New radial gradient brush.

createSolidColorBrush(XpsColor color)

public XpsSolidColorBrush createSolidColorBrush(XpsColor color)

新しい単色ブラシを作成します。

Parameters:

パラメータ説明
colorXpsColor塗りつぶし要素の色です。

Returns: XpsSolidColorBrush - New solid color brush.

createSolidColorBrush(Color color)

public XpsSolidColorBrush createSolidColorBrush(Color color)

新しい単色ブラシを作成します。

Parameters:

パラメータ説明
colorjava.awt.Color塗りつぶし要素の色です。

Returns: XpsSolidColorBrush - New solid color brush.

createVisualBrush(XpsContentElement element, Rectangle2D viewbox, Rectangle2D viewport)

public XpsVisualBrush createVisualBrush(XpsContentElement element, Rectangle2D viewbox, Rectangle2D viewport)

新しいビジュアルブラシを作成します。

Parameters:

パラメータ説明
elementXpsContentElementVisual プロパティのビジュアルブラシ用 XPS 要素(Canvas、Path、または Glyphs)。
ビュー ボックスjava.awt.geom.Rectangle2Dブラシのソースコンテンツの位置とサイズです。
ビューポートjava.awt.geom.Rectangle2Dプライムブラシタイルが含まれる座標空間内の領域で、(必要に応じて繰り返し)ブラシが適用される領域を埋めるために適用される領域です。

Returns: XpsVisualBrush - New visual brush.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

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

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getHeight()

public float getHeight()

ページの高さを、実座標空間の単位で実数として返します。

Returns: float - ページの高さです。

getPageCount()

public int getPageCount()

アクティブなドキュメントのページ数を返します。

Returns: int - アクティブなドキュメントのページ数です。

getTotalPageCount()

public int getTotalPageCount()

XPS ドキュメント内のすべてのドキュメントの総ページ数を返します。

Returns: int - XPS ドキュメント内のすべてのドキュメントの総ページ数です。

getUtils()

public DocumentUtils getUtils()

正式な XPS 操作 API を超えるユーティリティを提供するオブジェクトを取得します。

Returns: DocumentUtils - The object that provides utilities beyond the formal XPS manipulation API.

getWidth()

public float getWidth()

ページの幅を、実座標空間の単位で実数として返します。

Returns: float - ページの幅です。

hashCode()

public native int hashCode()

Returns: int

insertCanvas(int index)

public XpsCanvas insertCanvas(int index)

ページの index 位置に新しいキャンバスを挿入します。

Parameters:

パラメータ説明
インデックスint新しい Canvas を挿入すべき位置です。

Returns: XpsCanvas - Inserted canvas.

insertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, String unicodeString)

public XpsGlyphs insertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, String unicodeString)

ページの index 位置に新しいグリフを挿入します。

Parameters:

パラメータ説明
インデックスint新しい Glyphs を挿入すべき位置です。
fontXpsFontフォントリソース。
fontSizefloatフォントサイズ。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - Inserted glyphs.

insertGlyphs(int index, String fontFamily, float fontSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

public XpsGlyphs insertGlyphs(int index, String fontFamily, float fontSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

ページの index 位置に新しいグリフを挿入します。

Parameters:

パラメータ説明
インデックスint新しい Glyphs を挿入すべき位置です。
fontFamilyjava.lang.Stringフォントファミリー。
fontSizefloatフォントサイズ。
fontStyleXpsFontStyleフォントスタイル。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - Inserted glyphs.

insertPath(int index, XpsPathGeometry data)

public XpsPath insertPath(int index, XpsPathGeometry data)

ページの index 位置に新しいパスを挿入します。

Parameters:

パラメータ説明
インデックスint新しい Path を挿入すべき位置です。
dataXpsPathGeometryパスのジオメトリ。

Returns: XpsPath - Inserted path.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeAt(int index)

public XpsContentElement removeAt(int index)

ページの index 位置から要素を削除します。

Parameters:

パラメータ説明
インデックスint要素を削除すべき位置です。

Returns: XpsContentElement - Removed element.

setHeight(float value)

public void setHeight(float value)

ページの高さを、実座標空間の単位で実数として設定します。

Parameters:

パラメータ説明
valuefloatページの高さです。

setWidth(float value)

public void setWidth(float value)

ページの幅を、実座標空間の単位で実数として設定します。

Parameters:

パラメータ説明
valuefloatページの幅です。

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