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 |
getDashCap()
Gets the dash cap.
|
float |
getDashOffset()
Gets the dash offset (phase).
|
float[] |
getDashPattern()
Gets the dash pattern.
|
int |
getEndCap()
Gets the line end cap.
|
int |
getLineJoin()
Gets the line join.
|
float |
getLineWidth()
Gets the line width.
|
float |
getMiterLimit()
Gets the miter limit.
|
int |
getStartCap()
Gets the line start cap.
|
void |
setColor(Color value)
Sets the color.
|
void |
setDashCap(int value)
Sets the dash cap.
|
void |
setDashOffset(float value)
Sets the dash offset (phase).
|
void |
setDashPattern(float[] value)
Sets the dash pattern.
|
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 |
setMiterLimit(float value)
Sets the miter limit.
|
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 float getMiterLimit()
Gets the miter limit.
public void setMiterLimit(float value)
Sets the miter limit.
value
- The miter limit.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.public float[] getDashPattern()
Gets the dash pattern.
public void setDashPattern(float[] value)
Sets the dash pattern.
value
- The dash pattern.public float getDashOffset()
Gets the dash offset (phase).
public void setDashOffset(float value)
Sets the dash offset (phase).
value
- The dash offset (phase).public int getDashCap()
Gets the dash cap.
public void setDashCap(int value)
Sets the dash cap.
value
- The dash cap.Copyright © 2022 Aspose. All Rights Reserved.