XpsGlyphs
Inheritance: java.lang.Object, com.aspose.xps.XpsObject, com.aspose.xps.XpsElement, com.aspose.xps.XpsHyperlinkElement, com.aspose.xps.XpsContentElement
public final class XpsGlyphs extends XpsContentElement
封装 Glyphs 元素特性的类。此元素表示来自单一字体的统一格式文本序列。它提供准确渲染所需的信息,并支持查看器中的搜索和选择功能。
方法
deepClone()
public XpsGlyphs deepClone()
克隆此字形。
Returns: XpsGlyphs - Clone of this glyphs.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
get(int i)
public XpsContentElement get(int i)
提供通过索引 i 访问元素子项的功能。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| i | int | 子元素的索引。 |
Returns: XpsContentElement - Child element at i position.
getBidiLevel()
public int getBidiLevel()
返回指定 Unicode 算法双向嵌套级别的值。偶数值表示从左到右布局,奇数值表示从右到左布局。右到左布局将运行原点放置在第一个字形的右侧,正的前进宽度(表示向左的前进)会将后续字形放置在前一个字形的左侧。
Returns: int - 指定 Unicode 算法双向嵌套级别的值。
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getClip()
public XpsPathGeometry getClip()
返回限制元素渲染区域的路径几何体。
Returns: XpsPathGeometry - The path geometry limiting the rendered region of the element.
getFill()
public XpsBrush getFill()
返回用于填充已渲染字形形状的画刷。
Returns: XpsBrush - The brush used to fill the shape of the rendered glyphs.
getFont()
public XpsFont getFont()
返回用于排版元素文本的 TrueType 字体资源。
Returns: XpsFont - The font resource for the TrueType font used to typeset elements text.
getFontRenderingEmSize()
public float getFontRenderingEmSize()
返回以绘图表面单位表示的字体大小,作为有效坐标空间单位的浮点数。
Returns: float - 字体大小。
getHyperlinkTarget()
public XpsHyperlinkTarget getHyperlinkTarget()
返回超链接目标对象。
Returns: XpsHyperlinkTarget - Hyperlink target object.
getOpacity()
public float getOpacity()
返回定义元素统一透明度的值。
Returns: float - 定义元素统一透明度的值。
getOpacityMask()
public XpsBrush getOpacityMask()
返回指定 alpha 值掩码的画刷,该掩码以与 Opacity 属性相同的方式应用于元素,但允许元素不同区域使用不同的 alpha 值。
Returns: XpsBrush - The brush specifying a mask.
getOriginX()
public float getOriginX()
返回运行中第一个字形的 x 坐标,单位为有效坐标空间。
Returns: float - 运行中第一个字形的 x 坐标,单位为有效坐标空间。
getOriginY()
public float getOriginY()
返回运行中第一个字形的 y 坐标,单位为有效坐标空间。
Returns: float - 运行中第一个字形的 y 坐标,单位为有效坐标空间。
getRenderTransform()
public XpsMatrix getRenderTransform()
返回仿射变换矩阵,为元素的所有属性以及所有子元素(如果有)建立新的坐标系。
Returns: XpsMatrix - The affine transformation matrix.
getStyleSimulations()
public XpsStyleSimulations getStyleSimulations()
返回指定样式仿真的值。
Returns: XpsStyleSimulations - The value specifying a style simulation.
getUnicodeString()
public String getUnicodeString()
返回由 Glyphs 元素渲染的文本字符串。文本以 Unicode 代码点指定。
Returns: java.lang.String - 由 Glyphs 元素渲染的文本字符串。
hashCode()
public native int hashCode()
Returns: int
isSideways()
public boolean isSideways()
返回指示字形已侧转的值,原点定义为未侧转字形的顶部中心。
Returns: boolean - 表示字形已倾斜的值。
iterator()
public Iterator<XpsContentElement> iterator()
实现 Iterable 接口。
Returns: java.util.Iterator<com.aspose.xps.XpsContentElement> - 返回列表的枚举器。
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setBidiLevel(int value)
public void setBidiLevel(int value)
设置指定 Unicode 算法双向嵌套级别的值。偶数值表示从左到右布局,奇数值表示从右到左布局。右到左布局将运行起点放在第一个字形的右侧,正的前进宽度(表示向左的前进)会将后续字形放置在前一个字形的左侧。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | int | 指定 Unicode 算法双向嵌套级别的值。 |
setClip(XpsPathGeometry value)
public void setClip(XpsPathGeometry value)
设置限制元素渲染区域的路径几何体。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | XpsPathGeometry | 限制元素渲染区域的路径几何体。 |
setFill(XpsBrush value)
public void setFill(XpsBrush value)
设置用于填充已渲染字形形状的画刷。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | XpsBrush | 用于填充已渲染字形形状的画刷。 |
setFontRenderingEmSize(float value)
public void setFontRenderingEmSize(float value)
设置以绘图表面单位表示的字体大小,作为有效坐标空间单位的浮点数。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | float | 字体大小。 |
setHyperlinkTarget(XpsHyperlinkTarget value)
public void setHyperlinkTarget(XpsHyperlinkTarget value)
设置超链接目标对象。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | XpsHyperlinkTarget | 超链接目标对象。 |
setOpacity(float value)
public void setOpacity(float value)
设置定义元素统一透明度的值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | float | 定义元素统一透明度的值。 |
setOpacityMask(XpsBrush value)
public void setOpacityMask(XpsBrush value)
设置画刷,指定一组 alpha 值的掩码,该掩码以与 Opacity 属性相同的方式应用于元素,但允许元素的不同区域使用不同的 alpha 值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | XpsBrush | 指定掩码的画刷。 |
setOriginX(float value)
public void setOriginX(float value)
设置运行中第一个字形的 x 坐标,单位为有效坐标空间。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | float | 运行中第一个字形的 x 坐标,单位为有效坐标空间。 |
setOriginY(float value)
public void setOriginY(float value)
设置运行中第一个字形的 y 坐标,单位为有效坐标空间。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | float | 运行中第一个字形的 y 坐标,单位为有效坐标空间。 |
setRenderTransform(XpsMatrix value)
public void setRenderTransform(XpsMatrix value)
设置仿射变换矩阵,为元素的所有属性以及所有子元素(如果有)建立新的坐标系。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | XpsMatrix | 仿射变换矩阵。 |
setSideways(boolean value)
public void setSideways(boolean value)
设置指示字形已侧转的值,原点定义为未侧转字形的顶部中心。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | boolean | 表示字形已倾斜的值。 |
setStyleSimulations(XpsStyleSimulations value)
public void setStyleSimulations(XpsStyleSimulations value)
设置指定样式仿真的值。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | XpsStyleSimulations | 指定样式仿真的值。 |
setUnicodeString(String value)
public void setUnicodeString(String value)
设置由 Glyphs 元素渲染的文本字符串。文本以 Unicode 代码点指定。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | java.lang.String | 由 Glyphs 元素渲染的文本字符串。 |
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 |