DocumentUtils

Inheritance: java.lang.Object

public class DocumentUtils

Cette classe fournit des utilitaires au‑delà de l’API officielle de manipulation XPS.

Méthodes

MéthodeDescription
createCircle(Point2D center, float radius)Crée une géométrie de chemin représentant un cercle.
createCircularSegment(Point2D center, float radius, float startAngle, float endAngle)Crée une géométrie de chemin représentant un segment circulaire entre deux angles.
createEllipse(Point2D center, float radiusX, float radiusY)Crée une géométrie de chemin représentant une ellipse.
createImage(String fileName, Rectangle2D imageBox)Crée un chemin rectangulaire rempli d’une image.
createImage(String fileName, Rectangle2D imageBox, ImageMode mode)Crée un chemin rectangulaire rempli d’une image.
createPieSlice(Point2D center, float radius, float startAngle, float endAngle)Crée une géométrie de chemin représentant une tranche de cercle entre deux rayons radiaux.
createRectangle(Rectangle2D rectangle)Crée une géométrie de chemin représentant un rectangle.
createRegularCircumscribedNGon(int n, Point2D center, float radius)Crée une géométrie de chemin représentant un n-gone régulier circonscrit autour d’un cercle.
createRegularInscribedNGon(int n, Point2D center, float radius)Crée une géométrie de chemin représentant un n-gone régulier inscrit dans un cercle.
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)

Crée une géométrie de chemin représentant un cercle.

Parameters:

ParamètreTypeDescription
centerjava.awt.geom.Point2DLe point central du cercle.
rayonfloatLe rayon du cercle.

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)

Crée une géométrie de chemin représentant un segment circulaire entre deux angles.

Parameters:

ParamètreTypeDescription
centerjava.awt.geom.Point2DLe centre du cercle.
rayonfloatLe rayon du cercle.
startAnglefloatL’angle (degrés) du rayon de départ.
endAnglefloatL’angle (degrés) du rayon final.

Returns: XpsPathGeometry - The XPS path geometry.

createEllipse(Point2D center, float radiusX, float radiusY)

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

Crée une géométrie de chemin représentant une ellipse.

Parameters:

ParamètreTypeDescription
centerjava.awt.geom.Point2DLe point central de l’ellipse.
radiusXfloatLe rayon horizontal de l’ellipse.
radiusYfloatLe rayon vertical de l’ellipse.

Returns: XpsPathGeometry - The XPS path geometry.

createImage(String fileName, Rectangle2D imageBox)

public XpsPath createImage(String fileName, Rectangle2D imageBox)

Crée un chemin rectangulaire rempli d’une image.

Parameters:

ParamètreTypeDescription
fileNamejava.lang.StringLe nom du fichier image.
imageBoxjava.awt.geom.Rectangle2DLa zone d’image à remplir avec l’image.

Returns: XpsPath - The XPS path.

createImage(String fileName, Rectangle2D imageBox, ImageMode mode)

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

Crée un chemin rectangulaire rempli d’une image.

Parameters:

ParamètreTypeDescription
fileNamejava.lang.StringLe nom du fichier image.
imageBoxjava.awt.geom.Rectangle2DLa zone d’image à remplir avec l’image.
modeImageModeMode d’ajustement de l’image.

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)

Crée une géométrie de chemin représentant une tranche de cercle entre deux rayons radiaux.

Parameters:

ParamètreTypeDescription
centerjava.awt.geom.Point2DLe centre du cercle.
rayonfloatLe rayon du cercle.
startAnglefloatL’angle (degrés) du rayon de départ.
endAnglefloatL’angle (degrés) du rayon final.

Returns: XpsPathGeometry - The XPS path geometry.

createRectangle(Rectangle2D rectangle)

public XpsPathGeometry createRectangle(Rectangle2D rectangle)

Crée une géométrie de chemin représentant un rectangle.

Parameters:

ParamètreTypeDescription
rectanglejava.awt.geom.Rectangle2DLe rectangle.

Returns: XpsPathGeometry - The XPS path geometry.

createRegularCircumscribedNGon(int n, Point2D center, float radius)

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

Crée une géométrie de chemin représentant un n-gone régulier circonscrit autour d’un cercle.

Parameters:

ParamètreTypeDescription
nintLe nombre de sommets.
centerjava.awt.geom.Point2DLe centre du cercle.
rayonfloatLe rayon du cercle.

Returns: XpsPathGeometry - The XPS path geometry.

createRegularInscribedNGon(int n, Point2D center, float radius)

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

Crée une géométrie de chemin représentant un n-gone régulier inscrit dans un cercle.

Parameters:

ParamètreTypeDescription
nintLe nombre de sommets.
centerjava.awt.geom.Point2DLe centre du cercle.
rayonfloatLe rayon du cercle.

Returns: XpsPathGeometry - The XPS path geometry.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParamètreTypeDescription
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:

ParamètreTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParamètreTypeDescription
arg0long
arg1int