Package org.eclipse.gef.geometry.planar
Interface IShape
-
- All Superinterfaces:
java.lang.Cloneable,IGeometry,java.io.Serializable
- All Known Implementing Classes:
CurvedPolygon,Ellipse,Pie,Polygon,Rectangle,RoundedRectangle
public interface IShape extends IGeometry
AnIShapeis the representation of an areal geometric object. It is thus the counterpart of anICurve.An
IShapeallows to test if anotherIGeometryis 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 otherIGeometrys, anIShapemay be transformed (getTransformed(AffineTransform)) into anotherIShape.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(IGeometry g)ICurvegetOutline()ICurve[]getOutlineSegments()IShapegetTransformed(AffineTransform t)Returns a newIShape, which represents the givenIShapeafter the application of the givenAffineTransform.
-
-
-
Method Detail
-
contains
boolean contains(IGeometry g)
-
getOutlineSegments
ICurve[] getOutlineSegments()
-
getTransformed
IShape getTransformed(AffineTransform t)
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:
IGeometry.getTransformed(AffineTransform)
-
-