Class ZoomlevelGeometryProvider



  • public class ZoomlevelGeometryProvider
    extends Object
    • Constructor Detail

      • ZoomlevelGeometryProvider

        public ZoomlevelGeometryProvider(Geometry geometry)
        Parameters:
        geometry - the geometry to provide zoomed instances for.
    • Method Detail

      • getOriginalGeometry

        public Geometry getOriginalGeometry()
        Returns:
        the geometry this provider was created with.
      • getGeometryForZoomlevel

        public Geometry getGeometryForZoomlevel(int zoom)
        Get the simplified geometry for the given zoom level.
        Parameters:
        zoom - the zoom level to generate an instance for.
        Returns:
        the generated simplified instance of the geometry.
      • getShapeForZoomlevel

        public Shape getShapeForZoomlevel(int zoom)
        Get the simplified shape for the given zoom level.
        Parameters:
        zoom - the zoom level to generate an instance for.
        Returns:
        the generated simplified instance of the shape.
      • getImageForZoomlevel

        public CachedImage getImageForZoomlevel(int zoom)
        Get a CachedImage for this zoomlevel
        Parameters:
        zoom - the zoom level.
        Returns:
        the CachedImage instance.