CustomLineCap

Inheritance: java.lang.Object

public class CustomLineCap

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
equals(Object arg0)
getBaseCap()Gets the LineCap enumeration on which this CustomLineCap is based.
getBaseInset()Gets the distance between the cap and the line.
getClass()
getFillPath()Gets the object that defines the fill for the custom cap.
getStrokeCaps(int[] startCap, int[] endCap)Gets the caps used to start and end lines that make up this custom cap.
getStrokeJoin()Gets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.
getStrokePath()Gets the object that defines the outline of the custom cap.
getWidthScale()Gets the amount by which to scale this CustomLineCap Class object with respect to the width of the System.Drawing.Pen object.
hashCode()
notify()
notifyAll()
setBaseCap(int value)Sets the LineCap enumeration on which this CustomLineCap is based.
setBaseInset(float value)Sets the distance between the cap and the line.
setFillPath(GraphicsPath value)Sets the object that defines the fill for the custom cap.
setStrokeCaps(int startCap, int endCap)Sets the caps used to start and end lines that make up this custom cap.
setStrokeJoin(int value)Sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined.
setStrokePath(GraphicsPath value)Sets the object that defines the outline of the custom cap.
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.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

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.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getBaseCap()

public int getBaseCap()

Gets the LineCap enumeration on which this CustomLineCap is based.

Returns: int - The LineCap enumeration on which this CustomLineCap is based.

getBaseInset()

public float getBaseInset()

Gets the distance between the cap and the line.

Returns: float - The distance between the beginning of the cap and the end of the line.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getFillPath()

public GraphicsPath getFillPath()

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

Returns: GraphicsPath - The object that defines the fill for the custom cap.

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

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

getStrokeJoin()

public int getStrokeJoin()

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

Returns: int - The LineJoin enumeration this CustomLineCap object uses to join lines.

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.

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: float - The amount by which to scale the cap.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setBaseCap(int value)

public void setBaseCap(int value)

Sets the LineCap enumeration on which this CustomLineCap is based.

Parameters:

ParameterTypeDescription
valueintThe LineCap enumeration on which this CustomLineCap is based.

setBaseInset(float value)

public void setBaseInset(float value)

Sets the distance between the cap and the line.

Parameters:

ParameterTypeDescription
valuefloatThe distance between the beginning of the cap and the end of the line.

setFillPath(GraphicsPath value)

public void setFillPath(GraphicsPath value)

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

Parameters:

ParameterTypeDescription
valueGraphicsPathThe object that defines the fill for the custom cap.

setStrokeCaps(int startCap, int endCap)

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

setStrokeJoin(int value)

public void setStrokeJoin(int value)

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

Parameters:

ParameterTypeDescription
valueintThe LineJoin enumeration this CustomLineCap object uses to join lines.

setStrokePath(GraphicsPath value)

public void setStrokePath(GraphicsPath value)

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

Parameters:

ParameterTypeDescription
valueGraphicsPathThe object that defines the outline of the custom cap.

setWidthScale(float value)

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:

ParameterTypeDescription
valuefloatThe amount by which to scale the cap.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int