SetLineWidth

Inheritance: java.lang.Object, com.aspose.pdf.Operator

public class SetLineWidth extends Operator

Class representing w operator (set line width).

Constructors

ConstructorDescription
SetLineWidth(int index, ICommand command)Constructor for operator class.
SetLineWidth(double width)Initializes operator with width value.

Methods

MethodDescription
getWidth()Gets width of the line.
setWidth(double value)Sets width of the line.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
toString()Returns text representation of operator.

SetLineWidth(int index, ICommand command)

public SetLineWidth(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

SetLineWidth(double width)

public SetLineWidth(double width)

Initializes operator with width value.

Parameters:

ParameterTypeDescription
widthdoubleValue of width.

getWidth()

public double getWidth()

Gets width of the line.

Returns: double - width of the line.

setWidth(double value)

public void setWidth(double value)

Sets width of the line.

Parameters:

ParameterTypeDescription
valuedoublewidth of the line.

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

toString()

public String toString()

Returns text representation of operator.

Returns: java.lang.String - Text representation of operator.