SetDash

遗产: java.lang.Object, com.aspose.pdf.Operator

public class SetDash extends Operator

表示 d 运算符的类(设置虚线模式)。

构造函数

构造函数描述
SetDash(int index, ICommand command)运算符类的构造函数。
SetDash(int[] pattern, int phase)创建集破折号模式运算符。

方法

方法描述
accept(IOperatorSelector visitor)接受访问者对象到流程操作员。
equals(Object arg0)
fromCommand(ICommand command)
getClass()
getCommand()获取命令
getCommandName()获取操作员名称。
getIndex()获取页面操作符列表中的操作符索引。
getParameters()获取运算符参数数组。
getPattern()破折号模式。
getPhase()破折号阶段。
hashCode()
isTextShowOperator(Operator op)判断操作符是否为负责文本输出的操作符(Tj、TJ等)
notify()
notifyAll()
reset()仅供内部使用
setIndex(int value)在页面操作符列表中设置操作符索引。
setPattern(int[] value)破折号模式。
setPhase(int value)破折号阶段。
toCommand()
toString()获取运算符字符串表示形式。
toString(IPdfPrimitive primitive)根据 PDF 规范返回 Pdf 原语(字符串、数组、字典等)的文本表示。
wait()
wait(long arg0)
wait(long arg0, int arg1)

SetDash(int index, ICommand command)

public SetDash(int index, ICommand command)

运算符类的构造函数。

参数:

范围类型描述
indexint运算符索引。
commandICommand操作员命令。

SetDash(int[] pattern, int phase)

public SetDash(int[] pattern, int phase)

创建集破折号模式运算符。

参数:

范围类型描述
patternint[]定义虚线模式的数组。
phaseint破折号阶段。

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

接受访问者对象到流程操作员。

参数:

范围类型描述
visitorIOperatorSelector访客对象。

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

fromCommand(ICommand command)

public void fromCommand(ICommand command)

参数:

范围类型描述
commandICommand

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getCommand()

public ICommand getCommand()

获取命令

退货: ICommand ICommand 对象

getCommandName()

public String getCommandName()

获取操作员名称。

退货: java.lang.String - 字符串值

getIndex()

public int getIndex()

获取页面操作符列表中的操作符索引。

退货: int - 整数值

getParameters()

public ArrayList<CommandParameter> getParameters()

获取运算符参数数组。

退货: java.util.ArrayList<com.aspose.pdf.engine.commondata.pagecontent.operators.commands.CommandParameter> - CommandParameter 值的 ArrayList

getPattern()

public int[] getPattern()

破折号模式。数组的元素应为指定交替破折号和间隙长度的数字。在一个元素数组的情况下,破折号和间隙长度相等。

退货: 整数[] - 整数数组

getPhase()

public int getPhase()

破折号阶段。在开始绘制路径之前,应循环破折号数组,将破折号和间隙的长度相加。当累积长度等于破折号阶段指定的值时,路径的描边应开始,破折号数组应从该点开始循环使用。

退货: int - 整数值

hashCode()

public native int hashCode()

退货: 整数

isTextShowOperator(Operator op)

public static boolean isTextShowOperator(Operator op)

判断操作符是否为负责文本输出的操作符(Tj、TJ等)

参数:

范围类型描述
opOperator运算符对象

退货: boolean - 如果这是文本输出运算符则为真

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

reset()

public void reset()

仅供内部使用

setIndex(int value)

public void setIndex(int value)

在页面操作符列表中设置操作符索引。

参数:

范围类型描述
valueint整数值

setPattern(int[] value)

public void setPattern(int[] value)

破折号模式。数组的元素应为指定交替破折号和间隙长度的数字。在一个元素数组的情况下,破折号和间隙长度相等。

参数:

范围类型描述
valueint[]整型数组

setPhase(int value)

public void setPhase(int value)

破折号阶段。在开始绘制路径之前,应循环破折号数组,将破折号和间隙的长度相加。当累积长度等于破折号阶段指定的值时,路径的描边应开始,破折号数组应从该点开始循环使用。

参数:

范围类型描述
valueint整数值

toCommand()

public ICommand toCommand()

退货: ICommand

toString()

public String toString()

获取运算符字符串表示形式。

退货: java.lang.String -[x1 x2] yd,其中 x1 - 破折号长度,x2 - 间隙长度,y - 相位。

toString(IPdfPrimitive primitive)

public static String toString(IPdfPrimitive primitive)

根据 PDF 规范返回 Pdf 原语(字符串、数组、字典等)的文本表示。

参数:

范围类型描述
primitiveIPdf原始Primitive

退货: java.lang.String - 原语的文本表示

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int