Skip to main content

PathClipNode Class

A clipping node that uses graphics paths to specify a clipping region.

Declaration

public class PathClipNode extends ClipNode

Remarks

The PathClipNode class specifies a clipping region based on one or more GraphicsPath objects. Use the setPaths() method to specify paths that define the clipping boundary.

The setNonZeroWindingRule(boolean value) method specifies the fill rule used to determine the visible area inside clipping paths.

Call the setTransform() method to apply a transformation matrix to clipping paths.

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
JavaObject
ClipNode
PathClipNode

PathClipNode()

Initializes a new instance of the PathClipNode class.

Declaration

public PathClipNode()

Methods

getNonZeroWindingRule() Method

Returns whether the non-zero winding rule is used to calculate the clipping region.

Declaration

public boolean getNonZeroWindingRule()

Returns

Type Description
boolean

true if the non-zero winding rule is used; otherwise, false.

getPaths() Method

Returns a collection of graphics paths that define the clipping region.

Declaration

public List<GraphicsPath> getPaths()

Returns

Type Description
java.util.List<GraphicsPath>

Graphic paths.

getTransform() Method

Returns the transformation matrix applied to the clipping paths.

Declaration

public DXMatrix getTransform()

Returns

Type Description
DXMatrix

A DXMatrix object that specifies the transformation.

setNonZeroWindingRule(boolean value) Method

Sets whether the non-zero winding rule is used to calculate the clipping region.

Declaration

public void setNonZeroWindingRule(boolean value)

Parameters

Name Type Description
value boolean

true to use the non-zero winding rule; otherwise, false.

setPaths(List<GraphicsPath> value) Method

Sets a collection of graphics paths that define the clipping region.

Declaration

public void setPaths(List<GraphicsPath> value)

Parameters

Name Type Description
value java.util.List<GraphicsPath>

Graphic paths.

setTransform(DXMatrix value) Method

Sets the transformation matrix applied to the clipping paths.

Declaration

public void setTransform(DXMatrix value)

Parameters

Name Type Description
value DXMatrix

A DXMatrix object that specifies the transformation.