Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "GEF/GEF4/Geometry"
m |
m |
||
Line 13: | Line 13: | ||
[[Image:igeometry-class-diagram.png|IGeometry]] | [[Image:igeometry-class-diagram.png|IGeometry]] | ||
+ | The IGeometry defines the functionality that every geometric figure implements. | ||
+ | * <source lang="java">IGeometry.contains(Point)</source> | ||
+ | The contains(Point) method tests if the given Point lies on the particular IGeometry. For an incident Point, <code>true</code> is returned, otherwise <code>false</code> is returned. | ||
+ | |||
+ | * <source lang="java">IGeometry.getBounds()</source> | ||
=== Point === | === Point === |
Revision as of 06:56, 16 March 2012
Contents
Description
This is the documentation of the GEF4 Geometry API. You can find a small tutorial for the API here.
Geometric figures
This diagram depicts the interface hierarchy which underlies the individual geometry classes. In turn, the inheritance hierarchy classifies the figures by their construction type. So that many operations are generalized in a few abstract classes.
IGeometry
The IGeometry defines the functionality that every geometric figure implements.
-
IGeometry.contains(Point)
The contains(Point) method tests if the given Point lies on the particular IGeometry. For an incident Point, true
is returned, otherwise false
is returned.
-
IGeometry.getBounds()
Point
Dimension
Angle
Shapes
Line
Rectangle
RoundedRectangle
Polygon
Polyline
Ellipse
QuadraticCurve
CubicCurve
Path
Conversions (From/To AWT/SWT/Geometry)
From SWT to Geometry
Important. Very easy via the toSWT...() methods.
From AWT to Geometry
From Geometry to AWT
From AWT to SWT
From SWT to AWT
Affine transformations
Via projective geometry. All matrices can be combined before applying them to the particular shape.