com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class OfficeLineFormat



  • public 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.

        Returns:
        The default value is Color.Black.
      • setColor

        public final void setColor(Color value)

        Sets the color of the line.

        Parameters:
        value - The default value is Color.Black.
      • 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.

        Returns:
        The default value is OfficeDashStyle.Solid.
      • setDashStyle

        public final void setDashStyle(int value)

        Sets the dot and dash pattern for a line.

        Parameters:
        value - The default value is OfficeDashStyle.Solid.
      • getLineStyle

        public final int getLineStyle()

        Gets the line style.

        Returns:
        The default value is OfficeLineStyle.Single.
      • setLineStyle

        public final void setLineStyle(int value)

        Sets the line style.

        Parameters:
        value - The default value is OfficeLineStyle.Single.