DocumentUtils
Inheritance: java.lang.Object
public class DocumentUtils
Cette classe fournit des utilitaires au‑delà de l’API officielle de manipulation XPS.
Méthodes
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ètre | Type | Description |
|---|---|---|
| center | java.awt.geom.Point2D | Le point central du cercle. |
| rayon | float | Le 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ètre | Type | Description |
|---|---|---|
| center | java.awt.geom.Point2D | Le centre du cercle. |
| rayon | float | Le rayon du cercle. |
| startAngle | float | L’angle (degrés) du rayon de départ. |
| endAngle | float | L’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ètre | Type | Description |
|---|---|---|
| center | java.awt.geom.Point2D | Le point central de l’ellipse. |
| radiusX | float | Le rayon horizontal de l’ellipse. |
| radiusY | float | Le 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ètre | Type | Description |
|---|---|---|
| fileName | java.lang.String | Le nom du fichier image. |
| imageBox | java.awt.geom.Rectangle2D | La 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ètre | Type | Description |
|---|---|---|
| fileName | java.lang.String | Le nom du fichier image. |
| imageBox | java.awt.geom.Rectangle2D | La zone d’image à remplir avec l’image. |
| mode | ImageMode | Mode 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ètre | Type | Description |
|---|---|---|
| center | java.awt.geom.Point2D | Le centre du cercle. |
| rayon | float | Le rayon du cercle. |
| startAngle | float | L’angle (degrés) du rayon de départ. |
| endAngle | float | L’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ètre | Type | Description |
|---|---|---|
| rectangle | java.awt.geom.Rectangle2D | Le 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ètre | Type | Description |
|---|---|---|
| n | int | Le nombre de sommets. |
| center | java.awt.geom.Point2D | Le centre du cercle. |
| rayon | float | Le 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ètre | Type | Description |
|---|---|---|
| n | int | Le nombre de sommets. |
| center | java.awt.geom.Point2D | Le centre du cercle. |
| rayon | float | Le rayon du cercle. |
Returns: XpsPathGeometry - The XPS path geometry.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.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ètre | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |