Package org.eclipse.gef.geometry.planar
Interface IShape
- All Superinterfaces:
Cloneable
,IGeometry
,Serializable
- All Known Implementing Classes:
CurvedPolygon
,Ellipse
,Pie
,Polygon
,Rectangle
,RoundedRectangle
An
IShape
is the representation of an areal geometric object. It is
thus the counterpart of an ICurve
.
An IShape
allows to test if another IGeometry
is fully
contained by it (contains(IGeometry)
). Moreover its (closed) outline
can be retrieved as an whole (getOutline()
) or in the form of
individual segments (getOutlineSegments()
. As all other
IGeometry
s, an IShape
may be transformed (
getTransformed(AffineTransform)
) into another IShape
.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ICurve[]
Returns a newIShape
, which represents the givenIShape
after the application of the givenAffineTransform
.
-
Method Details
-
contains
-
getOutline
ICurve getOutline() -
getOutlineSegments
ICurve[] getOutlineSegments() -
getTransformed
Returns a newIShape
, which represents the givenIShape
after the application of the givenAffineTransform
.- Specified by:
getTransformed
in interfaceIGeometry
- Parameters:
t
- TheAffineTransform
to be applied- Returns:
- A new
IGeometry
object representing thisIGeometry
after the application of the givenAffineTransform
. - See Also:
-