Class TilePosition

java.lang.Object
org.openstreetmap.josm.gui.layer.imagery.TilePosition

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

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final int
     
    private final int
     
  • 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

    Modifier and Type
    Method
    Description
    int
    Returns the x position.
    int
    Returns the y position.
    int
    Returns the zoom.
     

    Methods inherited from class java.lang.Object

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

    • x

      private final int x
    • y

      private final int y
    • zoom

      private final int zoom
  • Constructor Details

    • 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 Details

    • 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 String toString()
      Overrides:
      toString in class Object