Packages

 

com.aspose.imaging

Interfaces

Classes

Exceptions

com.aspose.imaging

Class CustomLineCap



  • public class CustomLineCap
    extends Object

    Encapsulates a custom user-defined line cap.

    • Constructor Summary

      Constructors 
      Constructor and Description
      CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)
      Initializes a new instance of the CustomLineCap class with the specified outline and fill.
      CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap)
      Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline and fill.
      CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap, float baseInset)
      Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline, fill, and inset.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getBaseCap()
      Gets the LineCap enumeration on which this CustomLineCap is based.
      float getBaseInset()
      Gets the distance between the cap and the line.
      GraphicsPath getFillPath()
      Gets the object that defines the fill for the custom cap.
      void getStrokeCaps(int[] startCap, int[] endCap)
      Gets the caps used to start and end lines that make up this custom cap.
      int getStrokeJoin()
      Gets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.
      GraphicsPath getStrokePath()
      Gets the object that defines the outline of the custom cap.
      float getWidthScale()
      Gets the amount by which to scale this CustomLineCap Class object with respect to the width of the System.Drawing.Pen object.
      void setBaseCap(int value)
      Sets the LineCap enumeration on which this CustomLineCap is based.
      void setBaseInset(float value)
      Sets the distance between the cap and the line.
      void setFillPath(GraphicsPath value)
      Sets the object that defines the fill for the custom cap.
      void setStrokeCaps(int startCap, int endCap)
      Sets the caps used to start and end lines that make up this custom cap.
      void setStrokeJoin(int value)
      Sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.
      void setStrokePath(GraphicsPath value)
      Sets the object that defines the outline of the custom cap.
      void setWidthScale(float value)
      Sets the amount by which to scale this CustomLineCap Class object with respect to the width of the System.Drawing.Pen object.
    • Constructor Detail

      • CustomLineCap

        public CustomLineCap(GraphicsPath fillPath,
                             GraphicsPath strokePath)

        Initializes a new instance of the CustomLineCap class with the specified outline and fill.

        Parameters:
        fillPath - A GraphicsPath object that defines the fill for the custom cap.
        strokePath - A GraphicsPath object that defines the outline of the custom cap.
      • CustomLineCap

        public CustomLineCap(GraphicsPath fillPath,
                             GraphicsPath strokePath,
                             int baseCap)

        Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline and fill.

        Parameters:
        fillPath - A GraphicsPath object that defines the fill for the custom cap.
        strokePath - A GraphicsPath object that defines the outline of the custom cap.
        baseCap - The line cap from which to create the custom cap.
      • CustomLineCap

        public CustomLineCap(GraphicsPath fillPath,
                             GraphicsPath strokePath,
                             int baseCap,
                             float baseInset)

        Initializes a new instance of the CustomLineCap class from the specified existing LineCap enumeration with the specified outline, fill, and inset.

        Parameters:
        fillPath - A GraphicsPath object that defines the fill for the custom cap.
        strokePath - A GraphicsPath object that defines the outline of the custom cap.
        baseCap - The line cap from which to create the custom cap.
        baseInset - The distance between the cap and the line.
    • Method Detail

      • getFillPath

        public GraphicsPath getFillPath()

        Gets the object that defines the fill for the custom cap.

        Returns:
        The object that defines the fill for the custom cap.
      • setFillPath

        public void setFillPath(GraphicsPath value)

        Sets the object that defines the fill for the custom cap.

        Parameters:
        value - The object that defines the fill for the custom cap.
      • getStrokePath

        public GraphicsPath getStrokePath()

        Gets the object that defines the outline of the custom cap.

        Returns:
        The object that defines the outline of the custom cap.
      • setStrokePath

        public void setStrokePath(GraphicsPath value)

        Sets the object that defines the outline of the custom cap.

        Parameters:
        value - The object that defines the outline of the custom cap.
      • getStrokeJoin

        public int getStrokeJoin()

        Gets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.

        Returns:
        The LineJoin enumeration this CustomLineCap object uses to join lines.
      • setStrokeJoin

        public void setStrokeJoin(int value)

        Sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.

        Parameters:
        value - The LineJoin enumeration this CustomLineCap object uses to join lines.
      • getBaseCap

        public int getBaseCap()

        Gets the LineCap enumeration on which this CustomLineCap is based.

        Returns:
        The LineCap enumeration on which this CustomLineCap is based.
      • setBaseCap

        public void setBaseCap(int value)

        Sets the LineCap enumeration on which this CustomLineCap is based.

        Parameters:
        value - The LineCap enumeration on which this CustomLineCap is based.
      • getBaseInset

        public float getBaseInset()

        Gets the distance between the cap and the line.

        Returns:
        The distance between the beginning of the cap and the end of the line.
      • setBaseInset

        public void setBaseInset(float value)

        Sets the distance between the cap and the line.

        Parameters:
        value - The distance between the beginning of the cap and the end of the line.
      • getWidthScale

        public float getWidthScale()

        Gets the amount by which to scale this CustomLineCap Class object with respect to the width of the System.Drawing.Pen object.

        Returns:
        The amount by which to scale the cap.
      • setWidthScale

        public void setWidthScale(float value)

        Sets the amount by which to scale this CustomLineCap Class object with respect to the width of the System.Drawing.Pen object.

        Parameters:
        value - The amount by which to scale the cap.
      • setStrokeCaps

        public void setStrokeCaps(int startCap,
                                  int endCap)

        Sets the caps used to start and end lines that make up this custom cap.

        Parameters:
        startCap - The LineCap enumeration used at the beginning of a line within this cap.
        endCap - The LineCap enumeration used at the end of a line within this cap.
      • getStrokeCaps

        public void getStrokeCaps(int[] startCap,
                                  int[] endCap)

        Gets the caps used to start and end lines that make up this custom cap.

        Parameters:
        startCap - The LineCap enumeration used at the beginning of a line within this cap.
        endCap - The LineCap enumeration used at the end of a line within this cap.