Interface IMultiShape
-
- All Superinterfaces:
java.lang.Cloneable,IGeometry,java.io.Serializable
public interface IMultiShape extends IGeometry
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(IGeometry g)Checks if the givenIGeometryis fully contained by thisIMultiShape.ICurve[]getOutlines()Computes the outlines of thisIMultiShape.ICurve[]getOutlineSegments()Computes the outline segments of thisIMultiShape.IShape[]getShapes()Returns theIShapes that constitute thisIMultiShape.
-
-
-
Method Detail
-
contains
boolean contains(IGeometry g)
Checks if the givenIGeometryis fully contained by thisIMultiShape.- Parameters:
g- TheIGeometrywhich is tested for containment.- Returns:
trueif theIGeometryis contained by thisIMultiShape, otherwisefalse
-
getOutlines
ICurve[] getOutlines()
Computes the outlines of this
IMultiShape.The outlines are returned as an array of
ICurves. For every closed outline of thisIMultiShapeoneICurveis returned.- Returns:
- an array of
ICurves, one for each closed outline
-
getOutlineSegments
ICurve[] getOutlineSegments()
Computes the outline segments of this
IMultiShape.Each
ICurvesegment of the outline of the internalIShapes 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 theIShapes that constitute thisIMultiShape.- Returns:
- an array of
IShapes, representing the parts that make up thisIMultiShape.
-
-