com.aspose.pdf.operators

Class SetLineWidth



  • public class SetLineWidth
    extends Operator

    Class representing w operator (set line width).

    • Constructor Detail

      • SetLineWidth

        public SetLineWidth(int index,
                            com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)

        Constructor for operator class.

        Parameters:
        index - Index of operator.
        command - Operator command.
      • SetLineWidth

        public SetLineWidth(double width)

        Initializes operator with width value.

        Parameters:
        width - Value of width.
    • Method Detail

      • 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:
        value - width of the line.
      • accept

        public void accept(IOperatorSelector visitor)

        Accepts visitor object to process operator.

        Specified by:
        accept in class Operator
        Parameters:
        visitor - Visitor object.
      • toString

        public String toString()

        Returns text representation of operator.

        Overrides:
        toString in class Operator
        Returns:
        Text representation of operator.