Class TmsTileFactory

java.lang.Object
hec.map.tms.datasource.TmsTileFactory
Direct Known Subclasses:
BilTileFactory, FltTileFactory

public abstract class TmsTileFactory extends Object
This is the factory class that creates TMS Tiles. This class supports two purposes. First it is the Point where the TMS data source can create a TMS tile using the method TmsTileFactory.getDefault().createTile(). Second it serves as an aggregator of other Tile Factories. When create tile is called, all of the Tile Factory services that now how to create each tile type can register themselves here using the Java Service Loader mechanism. This allows this class to be lean and not need to know how to create each individual tiles, and tile implementations can be plugged in and out.
  • Constructor Details

    • TmsTileFactory

      public TmsTileFactory()
  • Method Details

    • getDefault

      public static TmsTileFactory getDefault()
    • getTileExtensions

      public abstract String[] getTileExtensions()
    • createTile

      public abstract Tile createTile(String path, FileSystem dataProvider)
      Creates a Tile for the given path and filesystem or returns NULL if nothing can be created
      Parameters:
      path -
      dataProvider -
      Returns:
    • accept

      public abstract boolean accept(String path)
      returns true if the Factory can create a tile for that file.
      Parameters:
      path -
      Returns: