com.groupdocs.watermark.contents

Interfaces

Classes

com.groupdocs.watermark.contents

Class OfficeLineFormat



  • public final class OfficeLineFormat
    extends Object

    Represents a shape line format.

    • Constructor Detail

      • OfficeLineFormat

        public OfficeLineFormat()
        Initializes a new instance of the OfficeLineFormat class.
    • Method Detail

      • getWeight

        public final double getWeight()

        Gets the brush thickness that strokes the path of a shape.

        Returns:
        The line thickness in points. The default value is 0.75.
      • setWeight

        public final void setWeight(double value)

        Sets the brush thickness that strokes the path of a shape.

        Parameters:
        value - The line thickness in points. The default value is 0.75.
      • getColor

        public final Color getColor()
        Gets the color of the line.

        The default value is Color.getBlack().

        Returns:
        The color of the line.
      • setColor

        public final void setColor(Color value)
        Sets the color of the line.

        The default value is Color.getBlack().

        Parameters:
        value - The color of the line.
      • getOpacity

        public final double getOpacity()

        Gets the line opacity.

        Returns:
        The value should be between 0 and 1. Default value is 1.
      • setOpacity

        public final void setOpacity(double value)

        Sets the line opacity.

        Parameters:
        value - The value should be between 0 and 1. Default value is 1.
      • getEnabled

        public final boolean getEnabled()

        Gets a value indicating whether a shape will be stroked.

        Returns:
        The default value is false.
      • setEnabled

        public final void setEnabled(boolean value)

        Sets a value indicating whether a shape will be stroked.

        Parameters:
        value - The default value is false.
      • getDashStyle

        public final int getDashStyle()
        Gets the dot and dash pattern for a line.

      • setDashStyle

        public final void setDashStyle(int value)
        Sets the dot and dash pattern for a line.
      • getLineStyle

        public final int getLineStyle()
        Gets the line style.

        The default value is OfficeLineStyle.Single.

        Returns:
        The line style.
      • setLineStyle

        public final void setLineStyle(int value)
        Sets the line style.

        The default value is OfficeLineStyle.Single.

        Parameters:
        value - The line style.