XpsPathGeometry
Inheritance: java.lang.Object, com.aspose.xps.XpsObject, com.aspose.xps.XpsArray
All Implemented Interfaces: com.aspose.xps.ITransformableProperty
public final class XpsPathGeometry extends XpsArray<XpsPathFigure> implements ITransformableProperty
封装 PathGeometry 属性元素特性的类。此元素包含一组路径图形,可通过 Figures 属性或子 PathFigure 元素指定。
方法
| 方法 | 描述 |
|---|---|
| add(T obj) | 向数组中添加新对象。 |
| addSegment(XpsPathSegment segment) | 向最后一个路径图形的子段列表添加路径段。 |
| deepClone() | 克隆此路径几何体。 |
| equals(Object arg0) | |
| get(int i) | 提供通过索引 i 访问数组元素的方式。 |
| getClass() | |
| getFillRule() | 返回指定几何形状相交区域如何组合成区域的值。 |
| getPathFigures() | 返回子路径图形的列表。 |
| getTransform() | 返回仿射变换矩阵,该矩阵建立了在路径几何体用于填充、裁剪或描边之前,应用于所有子元素和后代元素的局部矩阵变换。 |
| hashCode() | |
| insert(int index, T obj) | 在指定位置向数组插入新对象。 |
| insertSegment(int index, XpsPathSegment segment) | 在索引位置将路径段插入最后一个路径图形的子段列表中。 |
| notify() | |
| notifyAll() | |
| remove(T obj) | 从数组中移除对象。 |
| removeAt(int index) | 在指定位置从数组中移除对象。 |
| removeSegment(XpsPathSegment segment) | 从最后一个路径图形的子段列表中移除路径段。 |
| removeSegmentAt(int index) | 在索引位置从最后一个路径图形的子段列表中移除路径段。 |
| setFillRule(XpsFillRule value) | 设置指定几何形状相交区域如何组合成区域的值。 |
| setTransform(XpsMatrix value) | 设置仿射变换矩阵,该矩阵建立了在路径几何体用于填充、裁剪或描边之前,应用于所有子元素和后代元素的局部矩阵变换。 |
| size() | 返回元素数量。 |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
add(T obj)
public T add(T obj)
向数组中添加新对象。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 对象 | T | 要添加的对象。 |
Returns: T - 已添加的对象。
addSegment(XpsPathSegment segment)
public XpsPathSegment addSegment(XpsPathSegment segment)
向最后一个路径图形的子段列表添加路径段。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| segment | XpsPathSegment | 要添加的路径段。 |
Returns: XpsPathSegment - Added path segment.
deepClone()
public XpsPathGeometry deepClone()
克隆此路径几何体。
Returns: XpsPathGeometry - Clone of this path geometry.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
get(int i)
public T get(int i)
提供通过索引 i 访问数组元素的方式。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| i | int | 元素的索引。 |
Returns: T - 位于 i 位置的元素。
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getFillRule()
public XpsFillRule getFillRule()
返回指定几何形状相交区域如何组合成区域的值。
Returns: XpsFillRule - The value specifying how the intersecting areas of geometric shapes are combined to form a region.
getPathFigures()
public List<XpsPathFigure> getPathFigures()
返回子路径图形的列表。
Returns: java.util.List<com.aspose.xps.XpsPathFigure> - 子路径图形的列表。
getTransform()
public XpsMatrix getTransform()
返回仿射变换矩阵,该矩阵建立了在路径几何体用于填充、裁剪或描边之前,应用于所有子元素和后代元素的局部矩阵变换。
Returns: XpsMatrix - The affine transformation matrix.
hashCode()
public native int hashCode()
Returns: int
insert(int index, T obj)
public T insert(int index, T obj)
在指定位置向数组插入新对象。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 索引 | int | 要插入对象的位置。 |
| 对象 | T | 要插入的对象。 |
Returns: T - 已插入的对象。
insertSegment(int index, XpsPathSegment segment)
public XpsPathSegment insertSegment(int index, XpsPathSegment segment)
在索引位置将路径段插入最后一个路径图形的子段列表中。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 索引 | int | 应插入段的位置信息。 |
| segment | XpsPathSegment | 要插入的路径段。 |
Returns: XpsPathSegment - Inserted path segment.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
remove(T obj)
public T remove(T obj)
从数组中移除对象。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 对象 | T | 要删除的对象。 |
Returns: T - 已删除的对象。
removeAt(int index)
public T removeAt(int index)
在指定位置从数组中移除对象。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 索引 | int | 要删除对象的位置。 |
Returns: T - 已删除的对象。
removeSegment(XpsPathSegment segment)
public XpsPathSegment removeSegment(XpsPathSegment segment)
从最后一个路径图形的子段列表中移除路径段。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| segment | XpsPathSegment | 要移除的路径段。 |
Returns: XpsPathSegment - Removed path segment.
removeSegmentAt(int index)
public XpsPathSegment removeSegmentAt(int index)
在索引位置从最后一个路径图形的子段列表中移除路径段。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 索引 | int | 应移除路径段的位置信息。 |
Returns: XpsPathSegment - Removed path segment.
setFillRule(XpsFillRule value)
public void setFillRule(XpsFillRule value)
设置指定几何形状相交区域如何组合成区域的值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | XpsFillRule | 指定几何形状相交区域如何组合成区域的值。 |
setTransform(XpsMatrix value)
public void setTransform(XpsMatrix value)
设置仿射变换矩阵,该矩阵建立了在路径几何体用于填充、裁剪或描边之前,应用于所有子元素和后代元素的局部矩阵变换。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | XpsMatrix | 仿射变换矩阵。 |
size()
public int size()
返回元素数量。
Returns: int - 元素的数量。
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |