Class TableMapObjectHitListener
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.sink.openstreetmapviewer.AbstractMapObjectHitListener
-
- adams.flow.sink.openstreetmapviewer.AbstractMapObjectHitListenerWithDialog<adams.gui.dialog.SpreadSheetDialog>
-
- adams.flow.sink.openstreetmapviewer.TableMapObjectHitListener
-
- 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 TableMapObjectHitListener extends AbstractMapObjectHitListenerWithDialog<adams.gui.dialog.SpreadSheetDialog>
Displays all the hits in a table 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 Summary
Constructors Constructor Description TableMapObjectHitListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected adams.gui.dialog.SpreadSheetDialog
doProcessHits(org.openstreetmap.gui.jmapviewer.JMapViewer viewer, List<org.openstreetmap.gui.jmapviewer.interfaces.MapObject> hits)
Performs the processing of the hits.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.flow.sink.openstreetmapviewer.AbstractMapObjectHitListenerWithDialog
defineOptions, getDefaultHeight, getDefaultTitle, getDefaultWidth, getDefaultX, getDefaultY, getHeight, getTitle, getWidth, getX, getY, heightTipText, processHits, setHeight, setTitle, setWidth, setX, setY, titleTipText, widthTipText, xTipText, yTipText
-
Methods inherited from class adams.flow.sink.openstreetmapviewer.AbstractMapObjectHitListener
getMetaDataKeys, mapObjectsHit
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
doProcessHits
protected adams.gui.dialog.SpreadSheetDialog 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 classAbstractMapObjectHitListenerWithDialog<adams.gui.dialog.SpreadSheetDialog>
- Parameters:
viewer
- the associated viewerhits
- the objects that were "hit"- Returns:
- the generated dialog
-
-