Class TilePosition


  • public class TilePosition
    extends java.lang.Object
    The position of a single tile.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int x  
      private int y  
      private int zoom  
    • Constructor Summary

      Constructors 
      Constructor Description
      TilePosition​(int x, int y, int zoom)
      Constructs a new TilePosition.
      TilePosition​(org.openstreetmap.gui.jmapviewer.Tile tile)
      Constructs a new TilePosition.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getX()
      Returns the x position.
      int getY()
      Returns the y position.
      int getZoom()
      Returns the zoom.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • x

        private final int x
      • y

        private final int y
      • zoom

        private final int zoom
    • Constructor Detail

      • TilePosition

        public TilePosition​(int x,
                            int y,
                            int zoom)
        Constructs a new TilePosition.
        Parameters:
        x - X coordinate
        y - Y coordinate
        zoom - zoom level
      • TilePosition

        public TilePosition​(org.openstreetmap.gui.jmapviewer.Tile tile)
        Constructs a new TilePosition.
        Parameters:
        tile - tile
    • Method Detail

      • getX

        public int getX()
        Returns the x position.
        Returns:
        the x position
      • getY

        public int getY()
        Returns the y position.
        Returns:
        the y position
      • getZoom

        public int getZoom()
        Returns the zoom.
        Returns:
        the zoom
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object