public class ColoredStroke extends Object
Represents the colored stroke.
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor()
Gets the color.
|
int |
getEndCap()
Gets the line end cap.
|
int |
getLineJoin()
Gets the line join.
|
float |
getLineWidth()
Gets the line width.
|
int |
getStartCap()
Gets the line start cap.
|
void |
setColor(Color value)
Sets the color.
|
void |
setEndCap(int value)
Sets the line end cap.
|
void |
setLineJoin(int value)
Sets the line join.
|
void |
setLineWidth(float value)
Sets the line width.
|
void |
setStartCap(int value)
Sets the line start cap.
|
public ColoredStroke(Color color)
Creates a new instance.
color - The color.public ColoredStroke(Color color, float width)
Creates a new instance.
color - The color.width - The line width.public ColoredStroke(Color color, float width, int startCap, int endCap, int join)
Creates a new instance.
color - The color.width - The line width.startCap - The line start cap.endCap - The line end cap.join - The line join.public Color getColor()
Gets the color.
public void setColor(Color value)
Sets the color.
value - The color.public float getLineWidth()
Gets the line width.
public void setLineWidth(float value)
Sets the line width.
value - the line width.public int getLineJoin()
Gets the line join.
public void setLineJoin(int value)
Sets the line join.
value - The line join.public int getStartCap()
Gets the line start cap.
public void setStartCap(int value)
Sets the line start cap.
value - The line start cap.public int getEndCap()
Gets the line end cap.
public void setEndCap(int value)
Sets the line end cap.
value - The line end cap.Copyright © 2021 Aspose. All Rights Reserved.