Package | Description |
---|---|
org.eclipse.gef4.geometry.convert.awt |
This package provides support for converting geometric objects to AWT.
|
org.eclipse.gef4.geometry.planar |
This package provides support for geometric calculations based on shapes.
|
Modifier and Type | Method and Description |
---|---|
static Rectangle |
AWT2Geometry.toRectangle(java.awt.geom.Rectangle2D r)
Converts an AWT
Rectangle2D into a GEF4 Rectangle . |
Modifier and Type | Method and Description |
---|---|
static java.awt.geom.Rectangle2D.Double |
Geometry2AWT.toAWTRectangle(Rectangle r)
Converts a GEF4
Rectangle into an AWT Rectangle2D . |
Modifier and Type | Method and Description |
---|---|
Rectangle |
Ring.getBounds() |
Rectangle |
PolyBezier.getBounds() |
Rectangle |
Region.getBounds() |
Rectangle |
Pie.getBounds() |
Rectangle |
Path.getBounds() |
Rectangle |
Line.getBounds()
|
Rectangle |
IGeometry.getBounds()
|
Rectangle |
CurvedPolygon.getBounds() |
Rectangle |
BezierCurve.getBounds() |
Rectangle |
Arc.getBounds() |
Rectangle |
AbstractRectangleBasedGeometry.getBounds() |
static Rectangle |
Point.getBounds(Point... points)
|
Rectangle |
BezierCurve.getControlBounds()
|
Rectangle |
Rectangle.getCopy()
Returns a new Rectangle which has the exact same parameters as this
Rectangle.
|
Rectangle |
Rectangle.getIntersected(Rectangle rect)
Returns a new Rectangle which has the intersection of this Rectangle and
the rectangle provided as input.
|
Rectangle[] |
Region.getShapes() |
Rectangle |
Rectangle.getTransposed()
Returns a new rectangle whose width and height have been interchanged, as
well as its x and y values.
|
Rectangle |
Rectangle.getUnioned(Point p)
Returns a new Rectangle which contains both this Rectangle and the Point
supplied as input.
|
Rectangle |
Rectangle.getUnioned(Rectangle rect)
Returns a new Rectangle which contains both this Rectangle and the
Rectangle supplied as input.
|
Rectangle |
Rectangle.intersect(Rectangle r)
|
Rectangle |
Rectangle.transpose()
Switches the x and y values, as well as the width and height of this
Rectangle.
|
Rectangle |
Rectangle.union(double x,
double y)
|
Rectangle |
Rectangle.union(double x,
double y,
double w,
double h)
|
Rectangle |
Rectangle.union(Point p)
|
Rectangle |
Rectangle.union(Rectangle r)
|
Modifier and Type | Method and Description |
---|---|
Region |
Region.add(Rectangle rectangle)
|
boolean |
Polygon.contains(Rectangle r)
|
boolean |
Path.contains(Rectangle r)
|
boolean |
Rectangle.contains(Rectangle r)
|
Rectangle |
Rectangle.getIntersected(Rectangle rect)
Returns a new Rectangle which has the intersection of this Rectangle and
the rectangle provided as input.
|
Rectangle |
Rectangle.getUnioned(Rectangle rect)
Returns a new Rectangle which contains both this Rectangle and the
Rectangle supplied as input.
|
Rectangle |
Rectangle.intersect(Rectangle r)
|
T |
AbstractRectangleBasedGeometry.setBounds(Rectangle r)
Sets the x and y coordinates and the width and height of this
AbstractRectangleBasedGeometry to the respective values of the
given Rectangle . |
boolean |
Path.touches(Rectangle r)
|
boolean |
Rectangle.touches(Rectangle r)
|
Rectangle |
Rectangle.union(Rectangle r)
|
Constructor and Description |
---|
Ellipse(Rectangle r)
|
Rectangle(Rectangle r)
|
Region(Rectangle... rectangles)
|
RoundedRectangle(Rectangle r,
double arcWidth,
double arcHeight)
Constructs a new
RoundedRectangle from the bounds of the given
Rectangle and the given arc values. |
Copyright (c) 2014 itemis AG, and others. All rights reserved.