ShapePath Class
A creation path that consists of a series of moves, lines and curves that when combined forms a geometric shape.
Declaration
public class ShapePath extends PresentationObject
Inherited Members
Inheritance
ShapePath(long width, long height, boolean stroke)
Initializes a new instance of the ShapePath class with specified settings.
Declaration
public ShapePath(long width, long height, boolean stroke)
Parameters
| Name | Type | Description |
|---|---|---|
| width | long | The path width. |
| height | long | The path height. |
| stroke | boolean | Indicates whether the path is stroked. |
Methods
deepClone() Method
Clones the current ShapePath instance.
Declaration
public ShapePath deepClone()
Returns
| Type | Description |
|---|---|
ShapePath |
The cloned |
getFillMode() Method
Returns the shape path’s fill mode.
Declaration
public FillMode getFillMode()
Returns
| Type | Description |
|---|---|
| FillMode | The shape path fill mode. |
getHeight() Method
Returns the shape path’s height.
Declaration
public long getHeight()
Returns
| Type | Description |
|---|---|
| long | The shape path’s height. |
getSegments() Method
Returns a collection of segments that form the shape path.
Declaration
public IPathSegmentCollection getSegments()
Returns
| Type | Description |
|---|---|
| IPathSegmentCollection | A collection of segments that form the shape path. |
getStroke() Method
Returns a value that indicates whether the shape path is stroked.
Declaration
public boolean getStroke()
Returns
| Type | Description |
|---|---|
| boolean |
|
getWidth() Method
Returns the shape path’s width.
Declaration
public long getWidth()
Returns
| Type | Description |
|---|---|
| long | The shape path’s width. |
setFillMode(FillMode value) Method
Sets the shape path’s fill mode.
Declaration
public void setFillMode(FillMode value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | FillMode | The shape path fill mode. |
setHeight(long value) Method
Sets the shape path’s height.
Declaration
public void setHeight(long value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | long | The shape path’s height. |
setStroke(boolean value) Method
Sets a value that indicates whether the shape path is stroked.
Declaration
public void setStroke(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setWidth(long value) Method
Sets the shape path’s width.
Declaration
public void setWidth(long value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | long | The shape path’s width. |