Skip to main content

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

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object

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 ShapePath instance.

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

true if the shape path is stroked; otherwise, false.

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

true if the shape path is stroked; otherwise, false.

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.