Class MultiMapOverlay
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.sink.openstreetmapviewer.AbstractMapOverlay
-
- adams.flow.sink.openstreetmapviewer.MultiMapOverlay
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
public class MultiMapOverlay extends AbstractMapOverlay
A meta-overlay that paints multiple overlays.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-enabled <boolean> (property: enabled) If enabled, the overlay gets painted. default: true
-overlay <adams.flow.sink.openstreetmapviewer.AbstractMapOverlay> [-overlay ...] (property: overlays) The array of overlays to use. default:
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractMapOverlay[]
m_Overlays
the overlays.-
Fields inherited from class adams.flow.sink.openstreetmapviewer.AbstractMapOverlay
m_Enabled
-
-
Constructor Summary
Constructors Constructor Description MultiMapOverlay()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected void
doPaintOverlay(OpenStreetMapViewer viewer, Graphics g)
Performs the actual painting.AbstractMapOverlay[]
getOverlays()
Returns the overlays in use.String
globalInfo()
Returns a string describing the object.String
overlaysTipText()
Returns the tip text for this property.void
setOverlays(AbstractMapOverlay[] value)
Sets the overlays to use.-
Methods inherited from class adams.flow.sink.openstreetmapviewer.AbstractMapOverlay
enabledTipText, isEnabled, paintOverlay, postPaintOverlay, prePaintOverlay, setEnabled
-
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
-
-
-
-
Field Detail
-
m_Overlays
protected AbstractMapOverlay[] m_Overlays
the overlays.
-
-
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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractMapOverlay
-
setOverlays
public void setOverlays(AbstractMapOverlay[] value)
Sets the overlays to use.- Parameters:
value
- the filters to use
-
getOverlays
public AbstractMapOverlay[] getOverlays()
Returns the overlays in use.- Returns:
- the overlays
-
overlaysTipText
public String overlaysTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
doPaintOverlay
protected void doPaintOverlay(OpenStreetMapViewer viewer, Graphics g)
Performs the actual painting.- Specified by:
doPaintOverlay
in classAbstractMapOverlay
- Parameters:
viewer
- the associated viewerg
- the graphics context
-
-