Interface TileMapWindow

    • Method Detail

      • getZoomLevel

        int getZoomLevel()
      • getCenterX

        double getCenterX()
        Get the window's center's tile coordinate.
        Returns:
        the center's tile coordinate.
      • getCenterY

        double getCenterY()
        Get the window's center's tile coordinate.
        Returns:
        the center's tile coordinate.
      • getPositionX

        double getPositionX(int px)
        Get the tile coordinate at the given x in view space.
        Parameters:
        px - the position in view space.
        Returns:
        the position in tile space.
      • getPositionY

        double getPositionY(int py)
        Get the tile coordinate at the given y in view space.
        Parameters:
        py - the position in view space.
        Returns:
        the position in tile space.
      • setTileSize

        boolean setTileSize(int tileSize)
      • getTileWidth

        int getTileWidth()
      • getTileHeight

        int getTileHeight()
      • getNumTilesX

        int getNumTilesX()
      • getNumTilesY

        int getNumTilesY()
      • minimumCacheSize

        int minimumCacheSize()
      • addTileSizeListener

        void addTileSizeListener(MapWindowTileSizeListener listener)
        Add the given listener to the set of tile size change listeners. The listener will be notified on tile size events only.
        Parameters:
        listener - the listener to add.