ColoredStroke

Inheritance: java.lang.Object

public class ColoredStroke

Represents the colored stroke.

Constructors

ConstructorDescription
ColoredStroke(Color color)Creates a new instance.
ColoredStroke(Color color, float width)Creates a new instance.
ColoredStroke(Color color, float width, int startCap, int endCap, int join)Creates a new instance.

Methods

MethodDescription
getColor()Gets the color.
setColor(Color value)Sets the color.
getLineWidth()Gets the line width.
setLineWidth(float value)Sets the line width.
getLineJoin()Gets the line join.
setLineJoin(int value)Sets the line join.
getMiterLimit()Gets the miter limit.
setMiterLimit(float value)Sets the miter limit.
getStartCap()Gets the line start cap.
setStartCap(int value)Sets the line start cap.
getEndCap()Gets the line end cap.
setEndCap(int value)Sets the line end cap.
getDashPattern()Gets the dash pattern.
setDashPattern(float[] value)Sets the dash pattern.
getDashOffset()Gets the dash offset (phase).
setDashOffset(float value)Sets the dash offset (phase).
getDashCap()Gets the dash cap.
setDashCap(int value)Sets the dash cap.

ColoredStroke(Color color)

public ColoredStroke(Color color)

Creates a new instance.

Parameters:

ParameterTypeDescription
colorjava.awt.ColorThe color.

ColoredStroke(Color color, float width)

public ColoredStroke(Color color, float width)

Creates a new instance.

Parameters:

ParameterTypeDescription
colorjava.awt.ColorThe color.
widthfloatThe line width.

ColoredStroke(Color color, float width, int startCap, int endCap, int join)

public ColoredStroke(Color color, float width, int startCap, int endCap, int join)

Creates a new instance.

Parameters:

ParameterTypeDescription
colorjava.awt.ColorThe color.
widthfloatThe line width.
startCapintThe line start cap.
endCapintThe line end cap.
joinintThe line join.

getColor()

public Color getColor()

Gets the color.

Returns: java.awt.Color - The color.

setColor(Color value)

public void setColor(Color value)

Sets the color.

Parameters:

ParameterTypeDescription
valuejava.awt.ColorThe color.

getLineWidth()

public float getLineWidth()

Gets the line width.

Returns: float - The line width.

setLineWidth(float value)

public void setLineWidth(float value)

Sets the line width.

Parameters:

ParameterTypeDescription
valuefloatthe line width.

getLineJoin()

public int getLineJoin()

Gets the line join.

Returns: int - The line join.

setLineJoin(int value)

public void setLineJoin(int value)

Sets the line join.

Parameters:

ParameterTypeDescription
valueintThe line join.

getMiterLimit()

public float getMiterLimit()

Gets the miter limit.

Returns: float - The miter limit.

setMiterLimit(float value)

public void setMiterLimit(float value)

Sets the miter limit.

Parameters:

ParameterTypeDescription
valuefloatThe miter limit.

getStartCap()

public int getStartCap()

Gets the line start cap.

Returns: int - The line start cap.

setStartCap(int value)

public void setStartCap(int value)

Sets the line start cap.

Parameters:

ParameterTypeDescription
valueintThe line start cap.

getEndCap()

public int getEndCap()

Gets the line end cap.

Returns: int - The line end cap.

setEndCap(int value)

public void setEndCap(int value)

Sets the line end cap.

Parameters:

ParameterTypeDescription
valueintThe line end cap.

getDashPattern()

public float[] getDashPattern()

Gets the dash pattern.

Returns: float[] - The dash pattern.

setDashPattern(float[] value)

public void setDashPattern(float[] value)

Sets the dash pattern.

Parameters:

ParameterTypeDescription
valuefloat[]The dash pattern.

getDashOffset()

public float getDashOffset()

Gets the dash offset (phase).

Returns: float - The dash offset (phase).

setDashOffset(float value)

public void setDashOffset(float value)

Sets the dash offset (phase).

Parameters:

ParameterTypeDescription
valuefloatThe dash offset (phase).

getDashCap()

public int getDashCap()

Gets the dash cap.

Returns: int - The dash cap.

setDashCap(int value)

public void setDashCap(int value)

Sets the dash cap.

Parameters:

ParameterTypeDescription
valueintThe dash cap.