SetLineWidth

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

public class SetLineWidth extends Operator

Class representing w operator (set line width).

Constructors

ConstructorDescription
SetLineWidthInitializes operator with width value.
SetLineWidthConstructor for operator class.

Methods

MethodDescription
acceptAccepts visitor object to process operator.
getWidthGets width of the line.
setWidthSets width of the line.
toStringReturns text representation of operator.

SetLineWidth

public SetLineWidth(double width)

Initializes operator with width value.

Parameters:

ParameterTypeDescription
widthValue of width.

SetLineWidth

Constructor for operator class.

accept

Accepts visitor object to process operator.

getWidth

public double getWidth()

Gets width of the line.

Returns: width of the line.

setWidth

public void setWidth(double value)

Sets width of the line.

Parameters:

ParameterTypeDescription
valuewidth of the line.

toString

public String toString()

Returns text representation of operator.

Returns: Text representation of operator.