Class RasterTileClickInfo

java.lang.Object
com.massifmaps.ui.RasterTileClickInfo

public class RasterTileClickInfo extends Object
A container class that provides information about a click performed on raster tile.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value of this object.
    • getClickType

      public int getClickType()
      Returns the click type.
      Returns:
      The type of the click performed.
    • getClickInfo

      public ClickInfo getClickInfo()
      Returns the click info.
      Returns:
      The attributes of the click.
    • getClickPos

      public MapPos getClickPos()
      Returns the click position.
      Returns:
      The click position in the coordinate system of the data source.
    • getMapTile

      public MapTile getMapTile()
      Returns the tile id of the clicked feature.
      Returns:
      The tile id of the clicked feature.
    • getNearestColor

      public Color getNearestColor()
      Returns the color of the nearest pixel to the click position.
      Returns:
      The color of the nearest pixel to the click position.
    • getInterpolatedColor

      public Color getInterpolatedColor()
      Returns the interpolated color at the click position.
      Returns:
      The interpolated color at the click position.
    • getLayer

      public Layer getLayer()
      Returns the layer of the raster tile.
      Returns:
      The layer of the raster tile.