Interface IMultiShape
- All Superinterfaces:
Cloneable
,IGeometry
,Serializable
In contradiction to the relation of the IPolyCurve to the ICurve interfaces, the IMultiShape interface does not extend the IShape interface. Anyhow, they share their interface methods. You can test an IGeometry for containment using the contains(IGeometry) method and the outline segments can be retrieved via the getOutlineSegments() method.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if the givenIGeometry
is fully contained by thisIMultiShape
.ICurve[]
Computes the outlines of thisIMultiShape
.ICurve[]
Computes the outline segments of thisIMultiShape
.IShape[]
Returns theIShape
s that constitute thisIMultiShape
.
-
Method Details
-
contains
Checks if the givenIGeometry
is fully contained by thisIMultiShape
.- Parameters:
g
- TheIGeometry
which is tested for containment.- Returns:
true
if theIGeometry
is contained by thisIMultiShape
, otherwisefalse
-
getOutlines
ICurve[] getOutlines()Computes the outlines of this
IMultiShape
.The outlines are returned as an array of
ICurve
s. For every closed outline of thisIMultiShape
oneICurve
is returned.- Returns:
- an array of
ICurve
s, one for each closed outline
-
getOutlineSegments
ICurve[] getOutlineSegments()Computes the outline segments of this
IMultiShape
.Each
ICurve
segment of the outline of the internalIShape
s can be either an inner segment or an outer segment. This method extracts only the outer segments. The segments bordering voids are considered to be outer segments, too.- Returns:
- the outline segments of this
IMultiShape
-
getShapes
IShape[] getShapes()Returns theIShape
s that constitute thisIMultiShape
.- Returns:
- an array of
IShape
s, representing the parts that make up thisIMultiShape
.
-