Package | Description |
---|---|
org.eclipse.gef.geometry.convert.awt |
This package provides support for converting geometric objects to AWT.
|
org.eclipse.gef.geometry.planar |
This package provides support for geometric calculations based on shapes.
|
Modifier and Type | Method and Description |
---|---|
static Path |
AWT2Geometry.toPath(java.awt.geom.Path2D p)
Converts an AWT
Path2D into a GEF Path . |
Modifier and Type | Method and Description |
---|---|
static java.awt.geom.Path2D.Double |
Geometry2AWT.toAWTPath(Path p)
Converts a
Path into an equivalent AWT Path2D . |
Modifier and Type | Method and Description |
---|---|
Path |
Path.add(java.util.List<Path.Segment> segments)
|
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 |
Path |
Path.close()
Closes the current sub-path by drawing a straight line (line-to) to the
location of the last move to.
|
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.
|
Path |
Path.lineTo(double x,
double y)
Adds a straight line segment from the current position to the specified
end position.
|
Path |
Path.moveTo(double x,
double y)
Changes the current position.
|
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.
|
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 |
RoundedRectangle.toPath() |
Path |
Rectangle.toPath() |
Path |
Polygon.toPath() |
Path |
Pie.toPath() |
Path |
Path.toPath() |
Path |
Line.toPath() |
Path |
IGeometry.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 |
BezierCurve.toPath()
|
Path |
QuadraticCurve.toPath()
Transform the QuadraticCurve object to a
Path object with the
same shape. |
Path |
Polyline.toPath() |
Path |
PolyBezier.toPath() |
Path |
CurvedPolygon.toPath() |
Path |
CubicCurve.toPath() |
Modifier and Type | Method and 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.
|
Copyright (c) 2014 itemis AG, and others. All rights reserved.