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
AnIShape
is the representation of an areal geometric object. It is thus the counterpart of anICurve
.An
IShape
allows to test if anotherIGeometry
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 otherIGeometry
s, anIShape
may be transformed (getTransformed(AffineTransform)
) into anotherIShape
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(IGeometry g)
ICurve
getOutline()
ICurve[]
getOutlineSegments()
IShape
getTransformed(AffineTransform t)
Returns a newIShape
, which represents the givenIShape
after 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 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:
IGeometry.getTransformed(AffineTransform)
-
-