DocumentUtils

Inheritance: java.lang.Object

public class DocumentUtils

이 클래스는 공식 XPS 조작 API를 넘어서는 유틸리티를 제공합니다.

메서드

메서드설명
createCircle(Point2D center, float radius)원을 나타내는 경로 기하학을 생성합니다.
createCircularSegment(Point2D center, float radius, float startAngle, float endAngle)두 각도 사이의 원호 구간을 나타내는 경로 기하학을 생성합니다.
createEllipse(Point2D center, float radiusX, float radiusY)타원을 나타내는 경로 기하학을 생성합니다.
createImage(String fileName, Rectangle2D imageBox)이미지로 채워진 사각형 경로를 생성합니다.
createImage(String fileName, Rectangle2D imageBox, ImageMode mode)이미지로 채워진 사각형 경로를 생성합니다.
createPieSlice(Point2D center, float radius, float startAngle, float endAngle)두 방사선 사이의 원 조각을 나타내는 경로 기하학을 생성합니다.
createRectangle(Rectangle2D rectangle)사각형을 나타내는 경로 기하학을 생성합니다.
createRegularCircumscribedNGon(int n, Point2D center, float radius)원을 외접하는 정n각형을 나타내는 경로 기하학을 생성합니다.
createRegularInscribedNGon(int n, Point2D center, float radius)원을 내접하는 정n각형을 나타내는 경로 기하학을 생성합니다.
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)

원을 나타내는 경로 기하학을 생성합니다.

Parameters:

매개변수유형설명
centerjava.awt.geom.Point2D원의 중심점.
반지름float원의 반지름.

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)

두 각도 사이의 원호 구간을 나타내는 경로 기하학을 생성합니다.

Parameters:

매개변수유형설명
centerjava.awt.geom.Point2D원의 중심.
반지름float원의 반지름.
startAnglefloat시작 광선의 각도(도).
endAnglefloat끝 광선의 각도(도).

Returns: XpsPathGeometry - The XPS path geometry.

createEllipse(Point2D center, float radiusX, float radiusY)

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

타원을 나타내는 경로 기하학을 생성합니다.

Parameters:

매개변수유형설명
centerjava.awt.geom.Point2D타원의 중심점.
radiusXfloat타원의 가로 반지름.
radiusYfloat타원의 세로 반지름.

Returns: XpsPathGeometry - The XPS path geometry.

createImage(String fileName, Rectangle2D imageBox)

public XpsPath createImage(String fileName, Rectangle2D imageBox)

이미지로 채워진 사각형 경로를 생성합니다.

Parameters:

매개변수유형설명
fileNamejava.lang.String이미지 파일의 이름.
imageBoxjava.awt.geom.Rectangle2D이미지를 채울 이미지 박스.

Returns: XpsPath - The XPS path.

createImage(String fileName, Rectangle2D imageBox, ImageMode mode)

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

이미지로 채워진 사각형 경로를 생성합니다.

Parameters:

매개변수유형설명
fileNamejava.lang.String이미지 파일의 이름.
imageBoxjava.awt.geom.Rectangle2D이미지를 채울 이미지 박스.
modeImageMode이미지 맞춤 모드.

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)

두 방사선 사이의 원 조각을 나타내는 경로 기하학을 생성합니다.

Parameters:

매개변수유형설명
centerjava.awt.geom.Point2D원의 중심.
반지름float원의 반지름.
startAnglefloat시작 광선의 각도(도).
endAnglefloat끝 광선의 각도(도).

Returns: XpsPathGeometry - The XPS path geometry.

createRectangle(Rectangle2D rectangle)

public XpsPathGeometry createRectangle(Rectangle2D rectangle)

사각형을 나타내는 경로 기하학을 생성합니다.

Parameters:

매개변수유형설명
rectanglejava.awt.geom.Rectangle2D사각형.

Returns: XpsPathGeometry - The XPS path geometry.

createRegularCircumscribedNGon(int n, Point2D center, float radius)

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

원을 외접하는 정n각형을 나타내는 경로 기하학을 생성합니다.

Parameters:

매개변수유형설명
nint정점의 수.
centerjava.awt.geom.Point2D원의 중심.
반지름float원의 반지름.

Returns: XpsPathGeometry - The XPS path geometry.

createRegularInscribedNGon(int n, Point2D center, float radius)

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

원을 내접하는 정n각형을 나타내는 경로 기하학을 생성합니다.

Parameters:

매개변수유형설명
nint정점의 수.
centerjava.awt.geom.Point2D원의 중심.
반지름float원의 반지름.

Returns: XpsPathGeometry - The XPS path geometry.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

매개변수유형설명
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:

매개변수유형설명
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

매개변수유형설명
arg0long
arg1int