Class TileConfigUrlDisk

  • All Implemented Interfaces:
    TileConfig


    public class TileConfigUrlDisk
    extends Object
    implements TileConfig
    Information about a url of tiles and a temporary storage directory.
    • Constructor Detail

      • TileConfigUrlDisk

        public TileConfigUrlDisk(int id,
                                 String name,
                                 String url,
                                 String path)
        Create a new TileConfig
        Parameters:
        id - an artificial id to use.
        name - the name of this configuration.
        url - an url pattern containing printf-style %d's for zoom, x, y
        path - where to store temporary images
    • Method Detail

      • setUserAgent

        public void setUserAgent(String userAgent)
        Set the user agent to use for the connections opened.
        Parameters:
        userAgent - the user agent to use for HTTP requests.
      • getId

        public int getId()
        Description copied from interface: TileConfig
        A unique id that can be used to identify this TileConfig instance.
        Specified by:
        getId in interface  TileConfig
        Returns:
        the id.
      • getName

        public String getName()
        Description copied from interface: TileConfig
        A descriptive name of this configuration.
        Specified by:
        getName in interface  TileConfig
        Returns:
        the name.
      • getUrl

        public String getUrl()
        Returns:
        the url pattern.
      • getPath

        public String getPath()
        Returns:
        the path for temporary images.
      • getUserAgent

        public String getUserAgent()
        Returns:
        the user agent to use when retrieving tiles.
      • toString

        public String toString()
      • equals

        public boolean equals(Object o)
      • hashCode

        public int hashCode()
      • createGlobalManager

        public PaintListener createGlobalManager()