|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.CustomLineCap
public class CustomLineCap
Encapsulates a custom user-defined line cap.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
int |
getBaseCap()
Gets the LineCap enumeration on which this CustomLineCap is based. |
float |
getBaseInset()
Gets the distance between the cap and the line. |
void |
getStrokeCaps(int[] startCap,
int[] endCap)
Gets the caps used to start and end lines that make up this custom cap. |
int |
getStrokeJoin()
Gets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined. |
float |
getWidthScale()
Gets the amount by which to scale this CustomLineCap Class object with respect to the width of the Pen object. |
void |
setBaseCap(int value)
Sets the LineCap enumeration on which this CustomLineCap is based. |
void |
setBaseInset(float value)
Sets the distance between the cap and the line. |
void |
setStrokeCaps(int startCap,
int endCap)
Sets the caps used to start and end lines that make up this custom cap. |
void |
setStrokeJoin(int value)
Sets the LineJoin enumeration that determines how lines that compose this CustomLineCap object are joined. |
void |
setWidthScale(float value)
Sets the amount by which to scale this CustomLineCap Class object with respect to the width of the Pen object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomLineCap(GraphicsPath fillPath, GraphicsPath strokePath)
Initializes a new instance of the CustomLineCap
class with the specified outline and fill.
fillPath
- A GraphicsPath
object that defines the fill for the custom cap.strokePath
- A GraphicsPath
object that defines the outline of the custom cap.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.
fillPath
- A GraphicsPath
object that defines the fill for the custom cap.strokePath
- A GraphicsPath
object that defines the outline of the custom cap.baseCap
- The line cap from which to create the custom cap.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.
fillPath
- A GraphicsPath
object that defines the fill for the custom cap.strokePath
- A GraphicsPath
object that defines the outline of the custom cap.baseCap
- The line cap from which to create the custom cap.baseInset
- The distance between the cap and the line.Method Detail |
---|
public int getBaseCap()
Gets the LineCap
enumeration on which this CustomLineCap
is based.
LineCap
enumeration on which this CustomLineCap
is based.
public float getBaseInset()
Gets the distance between the cap and the line.
Value: The distance between the beginning of the cap and the end of the line.
public void getStrokeCaps(int[] startCap, int[] endCap)
Gets the caps used to start and end lines that make up this custom cap.
startCap
- The LineCap
enumeration used at the beginning of a line within this cap.endCap
- The LineCap
enumeration used at the end of a line within this cap.public int getStrokeJoin()
Gets the LineJoin
enumeration that determines how lines that compose this CustomLineCap
object are joined.
LineJoin
enumeration this CustomLineCap
object uses to join lines.
public float getWidthScale()
Gets the amount by which to scale this CustomLineCap
Class object with respect to the width of the Pen object.
public void setBaseCap(int value)
Sets the LineCap
enumeration on which this CustomLineCap
is based.
LineCap
enumeration on which this CustomLineCap
is based.
public void setBaseInset(float value)
Sets the distance between the cap and the line.
Value: The distance between the beginning of the cap and the end of the line.
public void setStrokeCaps(int startCap, int endCap)
Sets the caps used to start and end lines that make up this custom cap.
startCap
- The LineCap
enumeration used at the beginning of a line within this cap.endCap
- The LineCap
enumeration used at the end of a line within this cap.public void setStrokeJoin(int value)
Sets the LineJoin
enumeration that determines how lines that compose this CustomLineCap
object are joined.
LineJoin
enumeration this CustomLineCap
object uses to join lines.
public void setWidthScale(float value)
Sets the amount by which to scale this CustomLineCap
Class object with respect to the width of the Pen object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |