Package worldBuilder

Interface MapListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean groupSelected​(boolean[] selected, boolean complete)
      called when a group of points is selected on the map
      boolean pointSelected​(double map_x, double map_y)
      called when a point is selected on the map
      boolean regionSelected​(double map_x0, double map_y0, double width, double height, boolean complete)
      called whenever a region selection changes
    • Method Detail

      • regionSelected

        boolean regionSelected​(double map_x0,
                               double map_y0,
                               double width,
                               double height,
                               boolean complete)
        called whenever a region selection changes
        Parameters:
        map_x0 - left most point (map coordinate)
        map_y0 - upper most point (map coordinate)
        width - (in map units)
        height - (in map units)
        complete - boolean, has selection completed
        Returns:
        boolean (should selection continue)
      • pointSelected

        boolean pointSelected​(double map_x,
                              double map_y)
        called when a point is selected on the map
        Parameters:
        map_x - (map coordinate)
        map_y - (map coordinate)
        Returns:
        ignored ... selection is complete
      • groupSelected

        boolean groupSelected​(boolean[] selected,
                              boolean complete)
        called when a group of points is selected on the map
        Parameters:
        selected - array of per point booleans (true=selected)
        complete - mouse button has been released
        Returns:
        boolean (should selection continue)