Package | Description |
---|---|
org.eclipse.gef4.geometry.convert.awt |
This package provides support for converting geometric objects to AWT.
|
org.eclipse.gef4.geometry.euclidean |
This package provides core abstractions to support calculations within
2-dimensional Euclidean space.
|
org.eclipse.gef4.geometry.internal.utils |
This package provides utility classes being used internally for geometric
calculations.
|
org.eclipse.gef4.geometry.planar |
This package provides support for geometric calculations based on shapes.
|
Modifier and Type | Method and Description |
---|---|
static Line |
AWT2Geometry.toLine(java.awt.geom.Line2D l)
Converts an AWT
Line2D into a GEF4 Line . |
Modifier and Type | Method and Description |
---|---|
static java.awt.geom.Line2D.Double |
Geometry2AWT.toAWTLine(Line l)
Converts a GEF4
Line into an AWT Line2D . |
Constructor and Description |
---|
Straight(Line line)
|
Modifier and Type | Method and Description |
---|---|
static Line[] |
PointListUtils.toSegmentsArray(Point[] points,
boolean close)
|
Modifier and Type | Method and Description |
---|---|
static Point[] |
PointListUtils.toPointsArray(Line[] segmentsArray,
boolean open)
|
Modifier and Type | Method and Description |
---|---|
protected Line[] |
Ring.getAllEdges() |
protected Line[] |
Region.getAllEdges()
Collects all outline segments of the internal
Rectangle s. |
Line |
RoundedRectangle.getBottom()
Returns the bottom edge of this
RoundedRectangle . |
Line |
Line.getCopy()
Returns a new
Line , which has the same start and end point
coordinates as this one. |
Line[] |
Polyline.getCurves()
|
Line |
RoundedRectangle.getLeft()
Returns the left edge of this
RoundedRectangle . |
Line[] |
Polygon.getOutlineSegments()
|
Line[] |
Rectangle.getOutlineSegments()
|
Line |
RoundedRectangle.getRight()
Returns the right edge of this
RoundedRectangle . |
Line |
RoundedRectangle.getTop()
Returns the top edge of this
RoundedRectangle . |
Line |
Line.getTransformed(AffineTransform t) |
Line |
Line.setLine(double x1,
double y1,
double x2,
double y2)
Initializes this
Line with the given start and end point
coordinates |
Line |
Line.setLine(Line l)
Initializes this
Line with the start and end point coordinates of
the given one. |
Line |
Line.setLine(Point p1,
Point p2)
Initializes this
Line with the start and end point coordinates
provided by the given points |
Line |
Line.setX1(double x1)
|
Line |
Line.setX2(double x2)
|
Line |
Line.setY1(double y1)
|
Line |
Line.setY2(double y2)
|
Line[] |
Polyline.toBezier() |
Line |
BezierCurve.toLine()
Returns a hard approximation of this
BezierCurve as a
Line . |
Line[] |
BezierCurve.toLineStrip(double lineSimilarity)
Computes an approximation of this
BezierCurve by a strip of
Line s. |
Line[] |
BezierCurve.toLineStrip(double lineSimilarity,
org.eclipse.gef4.geometry.planar.BezierCurve.Interval startInterval)
Computes an approximation of this
BezierCurve by a strip of
Line s. |
Modifier and Type | Method and Description |
---|---|
boolean |
Polygon.contains(Line line)
|
boolean |
Ellipse.contains(Line l)
|
Point |
Line.getIntersection(Line l)
Returns the single intersection point between this
Line and the
given one, in case it exists. |
protected java.util.Set<org.eclipse.gef4.geometry.planar.BezierCurve.IntervalPair> |
Line.getIntersectionIntervalPairs(Line other,
java.util.Set<Point> intersections)
Provides an optimized version of the
BezierCurve.getIntersectionIntervalPairs(BezierCurve, Set)
method. |
Point[] |
Ellipse.getIntersections(Line line)
|
boolean |
Line.intersects(Line l)
Provides an optimized version of the
BezierCurve.intersects(ICurve) method. |
boolean |
Line.overlaps(Line l)
|
Line |
Line.setLine(Line l)
Initializes this
Line with the start and end point coordinates of
the given one. |
boolean |
Line.touches(Line l)
Tests whether this
Line and the given one share at least one
common point. |
boolean |
Rectangle.touches(Line l)
|
Constructor and Description |
---|
Polyline(Line[] segmentsArray)
|
Copyright (c) 2014 itemis AG, and others. All rights reserved.