PathFragment Class
A visual fragment that contains one or more graphics paths with optional fill and outline settings.
Declaration
public class PathFragment extends VisualFragment
Inherited Members
Inheritance
PathFragment()
Initializes a new instance of the PathFragment class.
Declaration
public PathFragment()
Methods
getAction() Method
Returns the action that specifies how the path shape is rendered.
Declaration
public PathShapeAction getAction()
Returns
| Type | Description |
|---|---|
| PathShapeAction | The action associated with the path fragment. |
getFill() Method
Returns the fill settings used to render the path.
Declaration
public Fill getFill()
Returns
| Type | Description |
|---|---|
| Fill | The fill settings of the path fragment. |
getNonZeroWindingRule() Method
Returns whether the non-zero winding rule is used to determine the filled area of the path.
Declaration
public boolean getNonZeroWindingRule()
Returns
| Type | Description |
|---|---|
| boolean |
|
getOutline() Method
Returns the outline settings used to draw the path border.
Declaration
public Outline getOutline()
Returns
| Type | Description |
|---|---|
| Outline | The outline settings of the path fragment. |
getPaths() Method
Returns the collection of graphics paths contained in the fragment.
Declaration
public List<GraphicsPath> getPaths()
Returns
| Type | Description |
|---|---|
| java.util.List<GraphicsPath> | The collection of graphics paths contained in the fragment. |
line(float x1, float y1, float x2, float y2, Outline outline) Method
Creates a path fragment that contains a line with the specified outline.
Declaration
public static PathFragment line(float x1, float y1, float x2, float y2, Outline outline)
Parameters
| Name | Type | Description |
|---|---|---|
| x1 | float | The X-coordinate of the line start point. |
| y1 | float | The Y-coordinate of the line start point. |
| x2 | float | The X-coordinate of the line end point. |
| y2 | float | The Y-coordinate of the line end point. |
| outline | Outline | The outline settings used to draw the line. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
line(float x1, float y1, float x2, float y2) Method
Creates a path fragment that contains a line.
Declaration
public static PathFragment line(float x1, float y1, float x2, float y2)
Parameters
| Name | Type | Description |
|---|---|---|
| x1 | float | The X-coordinate of the line start point. |
| y1 | float | The Y-coordinate of the line start point. |
| x2 | float | The X-coordinate of the line end point. |
| y2 | float | The Y-coordinate of the line end point. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
line(PointF p1, PointF p2, Outline outline) Method
Creates a path fragment that contains a line between two points with the specified outline.
Declaration
public static PathFragment line(PointF p1, PointF p2, Outline outline)
Parameters
| Name | Type | Description |
|---|---|---|
| p1 | com.devexpress.system.drawing.PointF | The line start point. |
| p2 | com.devexpress.system.drawing.PointF | The line end point. |
| outline | Outline | The outline settings used to draw the line. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
line(PointF p1, PointF p2) Method
Creates a path fragment that contains a line between two points.
Declaration
public static PathFragment line(PointF p1, PointF p2)
Parameters
| Name | Type | Description |
|---|---|---|
| p1 | com.devexpress.system.drawing.PointF | The line start point. |
| p2 | com.devexpress.system.drawing.PointF | The line end point. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
path(GraphicsPath path, Fill fill, Outline outline) Method
Creates a path fragment from the specified graphics path.
Declaration
public static PathFragment path(GraphicsPath path, Fill fill, Outline outline)
Parameters
| Name | Type | Description |
|---|---|---|
| path | GraphicsPath | The graphics path. |
| fill | Fill | The fill settings used to render the path. |
| outline | Outline | The outline settings used to draw the path border. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
path(GraphicsPath path, Fill fill) Method
Creates a path fragment from the specified graphics path and fill settings.
Declaration
public static PathFragment path(GraphicsPath path, Fill fill)
Parameters
| Name | Type | Description |
|---|---|---|
| path | GraphicsPath | The graphics path. |
| fill | Fill | The fill settings used to render the path. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
path(GraphicsPath path) Method
Creates a path fragment from the specified graphics path.
Declaration
public static PathFragment path(GraphicsPath path)
Parameters
| Name | Type | Description |
|---|---|---|
| path | GraphicsPath | The graphics path. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
rectangle(float x, float y, float width, float height, Fill fill, Outline outline) Method
Creates a path fragment that contains a rectangle with the specified fill and outline settings.
Declaration
public static PathFragment rectangle(float x, float y, float width, float height, Fill fill, Outline outline)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | The X-coordinate of the rectangle location. |
| y | float | The Y-coordinate of the rectangle location. |
| width | float | The rectangle width. |
| height | float | The rectangle height. |
| fill | Fill | The fill settings used to render the rectangle. |
| outline | Outline | The outline settings used to draw the rectangle border. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
rectangle(float x, float y, float width, float height, Fill fill) Method
Creates a path fragment that contains a rectangle with the specified fill settings.
Declaration
public static PathFragment rectangle(float x, float y, float width, float height, Fill fill)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | The X-coordinate of the rectangle location. |
| y | float | The Y-coordinate of the rectangle location. |
| width | float | The rectangle width. |
| height | float | The rectangle height. |
| fill | Fill | The fill settings used to render the rectangle. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
rectangle(float x, float y, float width, float height) Method
Creates a path fragment that contains a rectangle.
Declaration
public static PathFragment rectangle(float x, float y, float width, float height)
Parameters
| Name | Type | Description |
|---|---|---|
| x | float | The X-coordinate of the rectangle location. |
| y | float | The Y-coordinate of the rectangle location. |
| width | float | The Y-coordinate of the rectangle location. |
| height | float | The rectangle height. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
rectangle(PointF location, SizeF size, Fill fill, Outline outline) Method
Creates a path fragment that contains a rectangle with the specified location, size, fill, and outline settings.
Declaration
public static PathFragment rectangle(PointF location, SizeF size, Fill fill, Outline outline)
Parameters
| Name | Type | Description |
|---|---|---|
| location | com.devexpress.system.drawing.PointF | The point that specifies the rectangle location. |
| size | The rectangle size. |
|
| fill | Fill | The fill settings used to render the rectangle. |
| outline | Outline | The outline settings used to draw the rectangle border. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
rectangle(PointF location, SizeF size, Fill fill) Method
Creates a path fragment that contains a rectangle with the specified fill settings.
Declaration
public static PathFragment rectangle(PointF location, SizeF size, Fill fill)
Parameters
| Name | Type | Description |
|---|---|---|
| location | com.devexpress.system.drawing.PointF | The point that specifies the rectangle location. |
| size | The rectangle size. |
|
| fill | Fill | The fill settings used to render the rectangle. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
rectangle(PointF location, SizeF size) Method
Creates a path fragment that contains a rectangle with the specified location and size.
Declaration
public static PathFragment rectangle(PointF location, SizeF size)
Parameters
| Name | Type | Description |
|---|---|---|
| location | com.devexpress.system.drawing.PointF | The point that specifies the rectangle location. |
| size | The rectangle size. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
rectangle(RectangleF bounds, Fill fill, Outline outline) Method
Creates a path fragment that contains a rectangle with the specified bounds, fill, and outline settings.
Declaration
public static PathFragment rectangle(RectangleF bounds, Fill fill, Outline outline)
Parameters
| Name | Type | Description |
|---|---|---|
| bounds | RectangleF | The rectangle. |
| fill | Fill | The fill settings used to render the rectangle. |
| outline | Outline | The outline settings used to draw the rectangle border. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
rectangle(RectangleF bounds, Fill fill) Method
Creates a path fragment that contains a rectangle with the specified bounds and fill settings.
Declaration
public static PathFragment rectangle(RectangleF bounds, Fill fill)
Parameters
| Name | Type | Description |
|---|---|---|
| bounds | RectangleF | The rectangle. |
| fill | Fill | The fill settings used to render the rectangle. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
rectangle(RectangleF bounds) Method
Creates a path fragment that contains a rectangle with the specified bounds.
Declaration
public static PathFragment rectangle(RectangleF bounds)
Parameters
| Name | Type | Description |
|---|---|---|
| bounds | RectangleF | The rectangle. |
Returns
| Type | Description |
|---|---|
PathFragment |
A |
setAction(PathShapeAction value) Method
Sets the action that specifies how the path shape is rendered.
Declaration
public void setAction(PathShapeAction value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | PathShapeAction | The action associated with the path fragment. |
setFill(Fill value) Method
Sets the fill settings used to render the path.
Declaration
public void setFill(Fill value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | Fill | The fill settings of the path fragment. |
setNonZeroWindingRule(boolean value) Method
Sets whether the non-zero winding rule is used to determine the filled area of the path.
Declaration
public void setNonZeroWindingRule(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setOutline(Outline value) Method
Sets the outline settings used to draw the path border.
Declaration
public void setOutline(Outline value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | Outline | The outline settings of the path fragment. |
setPaths(List<GraphicsPath> value) Method
Sets the collection of graphics paths contained in the fragment.
Declaration
public void setPaths(List<GraphicsPath> value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | java.util.List<GraphicsPath> | The collection of graphics paths contained in the fragment. |