SetGray
内容
[
隐藏
]遗产: java.lang.Object, com.aspose.pdf.Operator, com.aspose.pdf.operators.SetColorOperator
public class SetGray extends SetColorOperator
为非描边操作设置灰度级。
构造函数
构造函数 | 描述 |
---|---|
SetGray(int index, ICommand command) | 运算符类的构造函数。 |
SetGray(double gray) | 编写程序的构造函数。 |
方法
方法 | 描述 |
---|---|
accept(IOperatorSelector visitor) | 接受访问者对象到流程操作员。 |
equals(Object arg0) | |
getClass() | |
getColor() | 返回运算符指定的颜色。 |
getCommand() | 获取命令 |
getCommandName() | 获取操作员名称。 |
getIndex() | 获取页面操作符列表中的操作符索引。 |
getParameters() | 获取运算符参数数组。 |
hashCode() | |
isTextShowOperator(Operator op) | 判断操作符是否为负责文本输出的操作符(Tj、TJ等) |
notify() | |
notifyAll() | |
reset() | 仅供内部使用 |
setIndex(int value) | 在页面操作符列表中设置操作符索引。 |
toString() | 返回运算符的字符串表示。 |
toString(IPdfPrimitive primitive) | 根据 PDF 规范返回 Pdf 原语(字符串、数组、字典等)的文本表示。 |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
SetGray(int index, ICommand command)
public SetGray(int index, ICommand command)
运算符类的构造函数。
参数:
范围 | 类型 | 描述 |
---|---|---|
index | int | 运算符索引。 |
command | ICommand | 操作员命令。 |
SetGray(double gray)
public SetGray(double gray)
编写程序的构造函数。
参数:
范围 | 类型 | 描述 |
---|---|---|
gray | double | 灰度值的级别。 |
accept(IOperatorSelector visitor)
public void accept(IOperatorSelector visitor)
接受访问者对象到流程操作员。
参数:
范围 | 类型 | 描述 |
---|---|---|
visitor | IOperatorSelector | 访客对象。 |
equals(Object arg0)
public boolean equals(Object arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | java.lang.Object |
退货: 布尔值
getClass()
public final native Class<?> getClass()
退货: java.lang.Class
getColor()
public Color getColor()
返回运算符指定的颜色。
退货: Color - 操作员指定的颜色。
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
hashCode()
public native int hashCode()
退货: 整数
isTextShowOperator(Operator op)
public static boolean isTextShowOperator(Operator op)
判断操作符是否为负责文本输出的操作符(Tj、TJ等)
参数:
范围 | 类型 | 描述 |
---|---|---|
op | Operator | 运算符对象 |
退货: 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)
在页面操作符列表中设置操作符索引。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | int | 整数值 |
toString()
public String toString()
返回运算符的字符串表示。
退货: java.lang.String - 运算符的字符串表示。
toString(IPdfPrimitive primitive)
public static String toString(IPdfPrimitive primitive)
根据 PDF 规范返回 Pdf 原语(字符串、数组、字典等)的文本表示。
参数:
范围 | 类型 | 描述 |
---|---|---|
primitive | IPdf原始 | Primitive |
退货: java.lang.String - 原语的文本表示
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long | |
arg1 | int |