DocumentUtils
Inheritance: java.lang.Object
public class DocumentUtils
Esta clase proporciona utilidades más allá de la API formal de manipulación de XPS.
Métodos
createCircle(Point2D center, float radius)
public XpsPathGeometry createCircle(Point2D center, float radius)
Crea una geometría de ruta que representa un círculo.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| center | java.awt.geom.Point2D | El punto central del círculo. |
| radio | float | El radio del círculo. |
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)
Crea una geometría de ruta que representa un segmento circular entre dos ángulos.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| center | java.awt.geom.Point2D | El centro del círculo. |
| radio | float | El radio del círculo. |
| startAngle | float | El ángulo (grados) del rayo inicial. |
| endAngle | float | El ángulo (grados) del rayo final. |
Returns: XpsPathGeometry - The XPS path geometry.
createEllipse(Point2D center, float radiusX, float radiusY)
public XpsPathGeometry createEllipse(Point2D center, float radiusX, float radiusY)
Crea una geometría de ruta que representa una elipse.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| center | java.awt.geom.Point2D | El punto central de la elipse. |
| radiusX | float | El radio horizontal de la elipse. |
| radiusY | float | El radio vertical de la elipse. |
Returns: XpsPathGeometry - The XPS path geometry.
createImage(String fileName, Rectangle2D imageBox)
public XpsPath createImage(String fileName, Rectangle2D imageBox)
Crea una ruta rectangular rellena con una imagen.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| fileName | java.lang.String | El nombre del archivo de imagen. |
| imageBox | java.awt.geom.Rectangle2D | El cuadro de imagen para rellenar con la imagen. |
Returns: XpsPath - The XPS path.
createImage(String fileName, Rectangle2D imageBox, ImageMode mode)
public XpsPath createImage(String fileName, Rectangle2D imageBox, ImageMode mode)
Crea una ruta rectangular rellena con una imagen.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| fileName | java.lang.String | El nombre del archivo de imagen. |
| imageBox | java.awt.geom.Rectangle2D | El cuadro de imagen para rellenar con la imagen. |
| mode | ImageMode | Modo de ajuste de imagen. |
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)
Crea una geometría de ruta que representa una porción de círculo entre dos rayos radiales.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| center | java.awt.geom.Point2D | El centro del círculo. |
| radio | float | El radio del círculo. |
| startAngle | float | El ángulo (grados) del rayo inicial. |
| endAngle | float | El ángulo (grados) del rayo final. |
Returns: XpsPathGeometry - The XPS path geometry.
createRectangle(Rectangle2D rectangle)
public XpsPathGeometry createRectangle(Rectangle2D rectangle)
Crea una geometría de ruta que representa un rectángulo.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| rectángulo | java.awt.geom.Rectangle2D | El rectángulo. |
Returns: XpsPathGeometry - The XPS path geometry.
createRegularCircumscribedNGon(int n, Point2D center, float radius)
public XpsPathGeometry createRegularCircumscribedNGon(int n, Point2D center, float radius)
Crea una geometría de ruta que representa un n-gono regular circunscrito alrededor de un círculo.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| n | int | El número de vértices. |
| center | java.awt.geom.Point2D | El centro del círculo. |
| radio | float | El radio del círculo. |
Returns: XpsPathGeometry - The XPS path geometry.
createRegularInscribedNGon(int n, Point2D center, float radius)
public XpsPathGeometry createRegularInscribedNGon(int n, Point2D center, float radius)
Crea una geometría de ruta que representa un n-gono regular inscrito en un círculo.
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| n | int | El número de vértices. |
| center | java.awt.geom.Point2D | El centro del círculo. |
| radio | float | El radio del círculo. |
Returns: XpsPathGeometry - The XPS path geometry.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| 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:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long | |
| arg1 | int |