Class SimpleMapObjectHitListener

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, MapObjectHitListener, Serializable

    public class SimpleMapObjectHitListener
    extends AbstractMapObjectHitListenerWithDialog<adams.gui.dialog.TextDialog>
    Simply displays all the hits in a textual format.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -title <java.lang.String> (property: title)
        The title of the dialog.
        default: Hits
     
    -width <int> (property: width)
        The width of the dialog.
        default: 800
        minimum: -1
     
    -height <int> (property: height)
        The height of the dialog.
        default: 600
        minimum: -1
     
    -x <int> (property: x)
        The X position of the dialog (>=0: absolute, -1: left, -2: center, -3: right
        ).
        default: -2
        minimum: -3
     
    -y <int> (property: y)
        The Y position of the dialog (>=0: absolute, -1: top, -2: center, -3: bottom
        ).
        default: -2
        minimum: -3
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • SimpleMapObjectHitListener

        public SimpleMapObjectHitListener()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • doProcessHits

        protected adams.gui.dialog.TextDialog doProcessHits​(org.openstreetmap.gui.jmapviewer.JMapViewer viewer,
                                                            List<org.openstreetmap.gui.jmapviewer.interfaces.MapObject> hits)
        Performs the processing of the hits.
        Specified by:
        doProcessHits in class AbstractMapObjectHitListenerWithDialog<adams.gui.dialog.TextDialog>
        Parameters:
        viewer - the associated viewer
        hits - the objects that were "hit"
        Returns:
        the generated dialog