# Uses of Class
org.eclipse.gef.geometry.planar.Path

Packages that use Path
Package
Description
org.eclipse.gef.geometry.convert.swt
This package provides support for converting geometric objects to SWT and for conversion between SWT and AWT.
org.eclipse.gef.geometry.planar
This package provides support for geometric calculations based on shapes.

## Uses of Path in org.eclipse.gef.geometry.convert.swt

Methods in org.eclipse.gef.geometry.convert.swt that return Path
Modifier and Type
Method
Description
`static Path`
SWT2Geometry.`toPath(int windingRule, PathData pd)`
Converts the given SWT `PathData` to a GEF `Path` associated with the given windingRule.
Methods in org.eclipse.gef.geometry.convert.swt with parameters of type Path
Modifier and Type
Method
Description
`static final PathData`
Geometry2SWT.`toSWTPathData(Path p)`
Converts the given path into an SWT `PathData` representation.

## Uses of Path in org.eclipse.gef.geometry.planar

Methods in org.eclipse.gef.geometry.planar that return Path
Modifier and Type
Method
Description
`final Path`
Path.`add(List<Path.Segment> segments)`
Adds the given `List` of `Path.Segment`s to this `Path`.
`final Path`
Path.`add(Path.Segment... segments)`
Adds the given `Path.Segment`s to this `Path`.
`static Path`
Path.`add(Path pa, Path pb)`
Unions the two specified `Path`s
`final Path`
Path.`close()`
Closes the current sub-path by drawing a straight line (line-to) to the location of the last move to.
`final Path`
Path.`cubicTo(double control1X, double control1Y, double control2X, double control2Y, double x, double y)`
Adds a cubic Bezier curve segment from the current position to the specified end position, using the two provided control points as Bezier control points.
`static Path`
Path.`exclusiveOr(Path pa, Path pb)`
Computes the area covered by the first or the second but not both given areas.
`Path`
Path.`getCopy()`
`Path`
Pie.`getRotatedCCW(Angle angle)`
`Path`
Pie.`getRotatedCCW(Angle angle, double cx, double cy)`
`Path`
Pie.`getRotatedCCW(Angle angle, Point center)`
`Path`
Pie.`getRotatedCW(Angle angle)`
`Path`
Pie.`getRotatedCW(Angle angle, double cx, double cy)`
`Path`
Pie.`getRotatedCW(Angle angle, Point center)`
`Path`
Path.`getTransformed(AffineTransform t)`
`static Path`
Path.`intersect(Path pa, Path pb)`
Intersects the given areas.
`final Path`
Path.`lineTo(double x, double y)`
Adds a straight line segment from the current position to the specified end position.
`final Path`
Path.`moveTo(double x, double y)`
Changes the current position.
`final Path`
Path.`quadTo(double controlX, double controlY, double x, double y)`
Adds a quadratic curve segment from the current position to the specified end position, using the provided control point as a parametric control point.
`final Path`
Path.`reset()`
Resets the path to be empty.
`Path`
Path.`setWindingRule(int windingRule)`
Sets the winding rule of this `Path` to the passed-in integer constant which is either of: `WIND_NON_ZERO` (default) `WIND_EVEN_ODD`
`static Path`
Path.`subtract(Path pa, Path pb)`
Subtracts the second given area from the first given area.
`Path`
BezierCurve.`toPath()`
Returns a `Path` approximating this `BezierCurve` using `Line` segments.
`Path`
CubicCurve.`toPath()`
`Path`
CurvedPolygon.`toPath()`
`Path`
Ellipse.`toPath()`
Returns a `Path` representation of this `Ellipse`, which is an approximation of the four `outline segments` by means of `CubicCurve`s.
`Path`
IGeometry.`toPath()`
Converts this `IGeometry` into a `Path` representation.
`Path`
Line.`toPath()`
`Path`
Path.`toPath()`
`Path`
Pie.`toPath()`
`Path`
PolyBezier.`toPath()`
`Path`
Polygon.`toPath()`
`Path`
Polyline.`toPath()`
`Path`
QuadraticCurve.`toPath()`
Transform the QuadraticCurve object to a `Path` object with the same shape.
`Path`
Rectangle.`toPath()`
`Path`
RoundedRectangle.`toPath()`
Methods in org.eclipse.gef.geometry.planar with parameters of type Path
Modifier and Type
Method
Description
`static Path`
Path.`add(Path pa, Path pb)`
Unions the two specified `Path`s
`static Path`
Path.`exclusiveOr(Path pa, Path pb)`
Computes the area covered by the first or the second but not both given areas.
`static Path`
Path.`intersect(Path pa, Path pb)`
Intersects the given areas.
`static Path`
Path.`subtract(Path pa, Path pb)`
Subtracts the second given area from the first given area.