CustomLineCap

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IDisposable

public class CustomLineCap implements System.IDisposable

Encapsulates a custom user-defined line cap.

Constructors

ConstructorDescription
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.

Methods

MethodDescription
getStrokeJoin()Gets or sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.
setStrokeJoin(int value)Gets or sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.
getBaseCap()Gets or sets the LineCap enumeration on which this CustomLineCap is based.
setBaseCap(int value)Gets or sets the LineCap enumeration on which this CustomLineCap is based.
getBaseInset()Gets or sets the distance between the cap and the line.
setBaseInset(float value)Gets or sets the distance between the cap and the line.
getWidthScale()Gets or sets the amount by which to scale this CustomLineCap Class object with respect to the width of the Pen object.
setWidthScale(float value)Gets or sets the amount by which to scale this CustomLineCap Class object with respect to the width of the Pen object.
dispose()Releases all resources used by this CustomLineCap object.
deepClone()Creates an exact copy of this CustomLineCap.
setStrokeCaps(int startCap, int endCap)Sets the caps used to start and end lines that make up this custom cap.
getStrokeCaps(int[] startCap, int[] endCap)Gets the caps used to start and end lines that make up this custom cap.
getFillPath()
getStrokePath()Gets the object that defines the outline of the custom cap.

CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)

public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)

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

Parameters:

ParameterTypeDescription
fillPathGraphicsPathA GraphicsPath object that defines the fill for the custom cap.
strokePathGraphicsPathA GraphicsPath object that defines the outline of the custom cap.

CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath, int baseCap)

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:

ParameterTypeDescription
fillPathGraphicsPathA GraphicsPath object that defines the fill for the custom cap.
strokePathGraphicsPathA GraphicsPath object that defines the outline of the custom cap.
baseCapintThe line cap from which to create the custom cap.

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

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:

ParameterTypeDescription
fillPathGraphicsPathA GraphicsPath object that defines the fill for the custom cap.
strokePathGraphicsPathA GraphicsPath object that defines the outline of the custom cap.
baseCapintThe line cap from which to create the custom cap.
baseInsetfloatThe distance between the cap and the line.

getStrokeJoin()

public final int getStrokeJoin()

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

Returns: int

setStrokeJoin(int value)

public final void setStrokeJoin(int value)

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

Parameters:

ParameterTypeDescription
valueint

getBaseCap()

public final int getBaseCap()

Gets or sets the LineCap enumeration on which this CustomLineCap is based.

Returns: int

setBaseCap(int value)

public final void setBaseCap(int value)

Gets or sets the LineCap enumeration on which this CustomLineCap is based.

Parameters:

ParameterTypeDescription
valueint

getBaseInset()

public final float getBaseInset()

Gets or sets the distance between the cap and the line.

Returns: float

setBaseInset(float value)

public final void setBaseInset(float value)

Gets or sets the distance between the cap and the line.

Parameters:

ParameterTypeDescription
valuefloat

getWidthScale()

public final float getWidthScale()

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

Returns: float

setWidthScale(float value)

public final void setWidthScale(float value)

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

Parameters:

ParameterTypeDescription
valuefloat

dispose()

public final void dispose()

Releases all resources used by this CustomLineCap object.

deepClone()

public final Object deepClone()

Creates an exact copy of this CustomLineCap.

Returns: java.lang.Object - The CustomLineCap this method creates, cast as an object.

setStrokeCaps(int startCap, int endCap)

public final void setStrokeCaps(int startCap, int endCap)

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

Parameters:

ParameterTypeDescription
startCapintThe LineCap enumeration used at the beginning of a line within this cap.
endCapintThe LineCap enumeration used at the end of a line within this cap.

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

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

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

Parameters:

ParameterTypeDescription
startCapint[]The LineCap enumeration used at the beginning of a line within this cap.
endCapint[]The LineCap enumeration used at the end of a line within this cap.

getFillPath()

public GraphicsPath getFillPath()

Returns: GraphicsPath

getStrokePath()

public GraphicsPath getStrokePath()

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

Returns: GraphicsPath - The object that defines the outline of the custom cap.