Class SurfaceMultiPolygon

    • Constructor Detail

      • SurfaceMultiPolygon

        public SurfaceMultiPolygon()
        Constructs a new surface multi polygon with the default attributes and no locations.
      • SurfaceMultiPolygon

        public SurfaceMultiPolygon​(ShapeAttributes normalAttrs)
      • SurfaceMultiPolygon

        public SurfaceMultiPolygon​(java.lang.Iterable<? extends LatLon> iterable)
      • SurfaceMultiPolygon

        public SurfaceMultiPolygon​(ContourList contours)
      • SurfaceMultiPolygon

        public SurfaceMultiPolygon​(ShapeAttributes normalAttrs,
                                   java.lang.Iterable<? extends LatLon> iterable)
    • Method Detail

      • getBoundaryCount

        public int getBoundaryCount()
      • getBoundary

        public java.lang.Iterable<? extends LatLon> getBoundary​(int index)
      • addBoundary

        public void addBoundary​(java.lang.Iterable<? extends LatLon> iterable)
      • addAllBoundaries

        public void addAllBoundaries​(ContourList contours)
      • removeAllBoundaries

        public void removeAllBoundaries()
      • getReferencePosition

        public Position getReferencePosition()
        Description copied from interface: Movable
        A position associated with the object that indicates its aggregate geographic position. The chosen position varies among implementers of this interface. For objects defined by a list of positions, the reference position is typically the first position in the list. For symmetric objects the reference position is often the center of the object. In many cases the object's reference position may be explicitly specified by the application.
        Specified by:
        getReferencePosition in interface Movable
        Specified by:
        getReferencePosition in interface Movable2
        Specified by:
        getReferencePosition in class AbstractSurfaceShape
        Returns:
        the object's reference position, or null if no reference position is available.
      • getLocations

        public java.lang.Iterable<? extends LatLon> getLocations​(Globe globe)
        Description copied from interface: SurfaceShape
        Returns the shape's locations as they appear on the specified globe, or null if the shape has no locations.
        Parameters:
        globe - the globe the shape is related to.
        Returns:
        the shapes locations on the globe, or null if the shape has no locations.
      • handleUnsuccessfulInteriorTessellation

        protected void handleUnsuccessfulInteriorTessellation​(DrawContext dc)
        Overridden to clear the multi-polygon's boundary list upon an unsuccessful tessellation attempt. This ensures the multi-polygon won't attempt to re-tessellate itself each frame.
        Overrides:
        handleUnsuccessfulInteriorTessellation in class AbstractSurfaceShape
        Parameters:
        dc - the current DrawContext.
      • exportAsKML

        protected void exportAsKML​(java.lang.Object output)
                            throws java.io.IOException,
                                   javax.xml.stream.XMLStreamException
        Overrides:
        exportAsKML in class AbstractSurfaceShape
        Throws:
        java.io.IOException
        javax.xml.stream.XMLStreamException