public class ShapePath
extends java.lang.Object
| Constructor and Description |
|---|
ShapePath()
Initializes a new instance of the
ShapePath class. |
| Modifier and Type | Method and Description |
|---|---|
void |
arcTo(float wR,
float hR,
float stAng,
float swAng)
Appends an elliptical arc to the current figure.
|
void |
close()
Closes the current figure and starts a new figure.
|
void |
cubicBezierTo(float ctrX1,
float ctrY1,
float ctrX2,
float ctrY2,
float endX,
float endY)
Appends a cubic B茅zier curve to the current figure.
|
int |
getHeightPixel()
Gets the height of this path in unit of pixels.
|
ShapeSegmentPathCollection |
getPathSegementList()
Gets
ShapeSegmentPathCollection list |
int |
getWidthPixel()
Gets the width of this path in unit of pixels.
|
void |
lineTo(float x,
float y)
Appends a line segment to the current figure.
|
void |
moveTo(float x,
float y)
Starts a new figure from the specified point without closing the current figure.
|
void |
setHeightPixel(int value)
Gets the height of this path in unit of pixels.
|
void |
setWidthPixel(int value)
Gets the width of this path in unit of pixels.
|
public ShapePath()
ShapePath class.public ShapeSegmentPathCollection getPathSegementList()
ShapeSegmentPathCollection listpublic int getWidthPixel()
public void setWidthPixel(int value)
public int getHeightPixel()
public void setHeightPixel(int value)
public void moveTo(float x,
float y)
x - The x-coordinate of the starting point of the figure(Unit: Pixel).y - The y-coordinate of the starting point of the figure(Unit: Pixel).public void lineTo(float x,
float y)
x - The x-coordinate of the endpoint of the line segment(Unit: Pixel).y - The y-coordinate of the endpoint of the line segment(Unit: Pixel).public void cubicBezierTo(float ctrX1,
float ctrY1,
float ctrX2,
float ctrY2,
float endX,
float endY)
ctrX1 - The x-coordinate of the first control point for the curve(Unit: Pixel).ctrY1 - The y-coordinate of the first control point for the curve(Unit: Pixel).ctrX2 - The x-coordinate of the second control point for the curve(Unit: Pixel).ctrY2 - The y-coordinate of the second control point for the curve(Unit: Pixel).endX - The x-coordinate of the endpoint of the curve(Unit: Pixel).endY - The y-coordinate of the endpoint of the curve(Unit: Pixel).public void arcTo(float wR,
float hR,
float stAng,
float swAng)
wR - The half-width of the rectangular area of 鈥嬧€媡he ellipse that draws the arc(Unit: Pixel).hR - The half-height of the rectangular area of 鈥嬧€媡he ellipse that draws the arc(Unit: Pixel).stAng - The starting angle of the arc, measured in degrees clockwise from the x-axis(Unit: Degree). This angle will specify what angle along the supposed circle path will be used as the start position for drawing the arc. This start angle will be locked to the last known pen position in the shape path. Thus guaranteeing a continuos shape path.swAng - The swing angle for an arc. This angle will specify how far angle-wise along the supposed cicle path the arc will be extended. The extension from the start angle will always be in the clockwise direction around the supposed circle.(Unit: Degree)public void close()
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.