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
IGeometrys, an IShape may be transformed (
getTransformed(AffineTransform)) into another IShape.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanICurve[]Returns a newIShape, which represents the givenIShapeafter the application of the givenAffineTransform.
-
Method Details
-
contains
-
getOutline
ICurve getOutline() -
getOutlineSegments
ICurve[] getOutlineSegments() -
getTransformed
Returns a newIShape, which represents the givenIShapeafter the application of the givenAffineTransform.- Specified by:
getTransformedin interfaceIGeometry- Parameters:
t- TheAffineTransformto be applied- Returns:
- A new
IGeometryobject representing thisIGeometryafter the application of the givenAffineTransform. - See Also:
-