ColoredStroke
Inheritance: java.lang.Object
public class ColoredStroke
Represents the colored stroke.
Constructors
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
color | java.awt.Color | The color. |
ColoredStroke(Color color, float width)
public ColoredStroke(Color color, float width)
Creates a new instance.
Parameters:
Parameter | Type | Description |
---|---|---|
color | java.awt.Color | The color. |
width | float | The 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:
Parameter | Type | Description |
---|---|---|
color | java.awt.Color | The color. |
width | float | The line width. |
startCap | int | The line start cap. |
endCap | int | The line end cap. |
join | int | The 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:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color | The 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:
Parameter | Type | Description |
---|---|---|
value | float | the 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:
Parameter | Type | Description |
---|---|---|
value | int | The 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:
Parameter | Type | Description |
---|---|---|
value | float | The 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:
Parameter | Type | Description |
---|---|---|
value | int | The 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:
Parameter | Type | Description |
---|---|---|
value | int | The 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:
Parameter | Type | Description |
---|---|---|
value | float[] | 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:
Parameter | Type | Description |
---|---|---|
value | float | The 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:
Parameter | Type | Description |
---|---|---|
value | int | The dash cap. |