DocumentUtils
Inheritance: java.lang.Object
public class DocumentUtils
Bu sınıf, resmi XPS manipülasyon API’sinin ötesinde yardımcı araçlar sağlar.
Yöntemler
createCircle(Point2D center, float radius)
public XpsPathGeometry createCircle(Point2D center, float radius)
Bir daireyi temsil eden bir yol geometrisi oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| merkez | java.awt.geom.Point2D | Dairenin merkez noktası. |
| yarıçap | float | Dairenin yarıçapı. |
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)
İki açı arasındaki dairesel bir segmenti temsil eden bir yol geometrisi oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| merkez | java.awt.geom.Point2D | Dairenin merkezi. |
| yarıçap | float | Dairenin yarıçapı. |
| startAngle | float | Başlangıç ışınının açısı (derece). |
| endAngle | float | Bitiş ışınının açısı (derece). |
Returns: XpsPathGeometry - The XPS path geometry.
createEllipse(Point2D center, float radiusX, float radiusY)
public XpsPathGeometry createEllipse(Point2D center, float radiusX, float radiusY)
Bir elipsi temsil eden bir yol geometrisi oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| merkez | java.awt.geom.Point2D | Elipsin merkez noktası. |
| radiusX | float | Elipsin yatay yarıçapı. |
| radiusY | float | Elipsin dikey yarıçapı. |
Returns: XpsPathGeometry - The XPS path geometry.
createImage(String fileName, Rectangle2D imageBox)
public XpsPath createImage(String fileName, Rectangle2D imageBox)
Bir görüntüyle doldurulmuş dikdörtgen bir yol oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| fileName | java.lang.String | Görüntü dosyasının adı. |
| imageBox | java.awt.geom.Rectangle2D | Görüntü ile doldurulacak görüntü kutusu. |
Returns: XpsPath - The XPS path.
createImage(String fileName, Rectangle2D imageBox, ImageMode mode)
public XpsPath createImage(String fileName, Rectangle2D imageBox, ImageMode mode)
Bir görüntüyle doldurulmuş dikdörtgen bir yol oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| fileName | java.lang.String | Görüntü dosyasının adı. |
| imageBox | java.awt.geom.Rectangle2D | Görüntü ile doldurulacak görüntü kutusu. |
| mode | ImageMode | Görüntü sığdırma modu. |
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)
İki radyal ışın arasındaki daire dilimini temsil eden bir yol geometrisi oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| merkez | java.awt.geom.Point2D | Dairenin merkezi. |
| yarıçap | float | Dairenin yarıçapı. |
| startAngle | float | Başlangıç ışınının açısı (derece). |
| endAngle | float | Bitiş ışınının açısı (derece). |
Returns: XpsPathGeometry - The XPS path geometry.
createRectangle(Rectangle2D rectangle)
public XpsPathGeometry createRectangle(Rectangle2D rectangle)
Bir dikdörtgeni temsil eden bir yol geometrisi oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| dikdörtgen | java.awt.geom.Rectangle2D | Dikdörtgen. |
Returns: XpsPathGeometry - The XPS path geometry.
createRegularCircumscribedNGon(int n, Point2D center, float radius)
public XpsPathGeometry createRegularCircumscribedNGon(int n, Point2D center, float radius)
Bir daire etrafına dışbükey çizilmiş düzenli n-gon’u temsil eden bir yol geometrisi oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| n | int | Köşe sayısı. |
| merkez | java.awt.geom.Point2D | Dairenin merkezi. |
| yarıçap | float | Dairenin yarıçapı. |
Returns: XpsPathGeometry - The XPS path geometry.
createRegularInscribedNGon(int n, Point2D center, float radius)
public XpsPathGeometry createRegularInscribedNGon(int n, Point2D center, float radius)
Bir daire içinde içbükey çizilmiş düzenli n-gon’u temsil eden bir yol geometrisi oluşturur.
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| n | int | Köşe sayısı. |
| merkez | java.awt.geom.Point2D | Dairenin merkezi. |
| yarıçap | float | Dairenin yarıçapı. |
Returns: XpsPathGeometry - The XPS path geometry.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| 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:
| Parametre | Tür | Açıklama |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parametre | Tür | Açıklama |
|---|---|---|
| arg0 | long | |
| arg1 | int |