public interface LocationHandler extends PropertyConsumer
# Properties for LocationHandler # Show the graphics for all the locations. handler.showLocations=true # Show the labels for all the locations. handler.showNames=true
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
defaultLocationColorString
The default line color for locations.
|
static java.lang.String |
defaultNameColorString
The default line color for names.
|
static java.lang.String |
forceGlobalCommand
(forceGlobal)
|
static java.lang.String |
ForceGlobalProperty |
static java.lang.String |
LocationColorProperty
Property to use to set the color of the location splot.
|
static java.lang.String |
LocationPropertyPrefix
Property prefix to use to scope properties to be used for location
markers.
|
static java.lang.String |
NameColorProperty
Property to use to change the color for name data.
|
static java.lang.String |
NamePropertyPrefix
Property prefix to use to scope properties to be used for name markers.
|
static java.lang.String |
readDataCommand
(readData)
|
static java.lang.String |
showdetails
A default button name used to trigger more information about a location
to come up in a web browser.
|
static java.lang.String |
showLocationsCommand
(showLocations)
|
static java.lang.String |
ShowLocationsProperty
Property setting to show location splots on startup.
|
static java.lang.String |
showname
A button name used to turn a location label on/off.
|
static java.lang.String |
showNamesCommand
(showNames)
|
static java.lang.String |
ShowNamesProperty
Property setting to show name data on startup.
|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Modifier and Type | Method and Description |
---|---|
OMGraphicList |
get(float nwLat,
float nwLon,
float seLat,
float seLon,
OMGraphicList graphicList)
Fill a vector of OMGraphics to represent the data from this handler.
|
java.awt.Component |
getGUI()
A set of controls to manipulate and control the display of data from the
handler.
|
java.util.List<java.awt.Component> |
getItemsForPopupMenu(Location loc)
The location layer passes a LocationPopupMenu to the handler when on of
its locations has been clicked on.
|
LocationLayer |
getLayer()
Return the layer that the handler is responding to.
|
boolean |
isForceGlobal()
Find out whether global settings should override local ones.
|
boolean |
isShowLocations()
See if the handler is displaying location graphics at a global level.
|
boolean |
isShowNames()
See if the handler is displaying labels at a global level.
|
void |
reloadData()
A trigger function to tell the handler that new data is available.
|
void |
removed(java.awt.Container cont)
Called by the LocationLayer when the Layer has been removed from the Map.
|
void |
setForceGlobal(boolean set)
Set whether global settings should override local ones.
|
void |
setLayer(LocationLayer layer)
Set the layer the handler is responding to.
|
void |
setShowLocations(boolean set)
Set the handler to show/hide location graphics at a global level.
|
void |
setShowNames(boolean set)
Set the handler to show/hide labels at a global level.
|
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix
static final java.lang.String showdetails
static final java.lang.String showname
static final java.lang.String ShowNamesProperty
static final java.lang.String NameColorProperty
static final java.lang.String defaultNameColorString
static final java.lang.String ForceGlobalProperty
static final java.lang.String ShowLocationsProperty
static final java.lang.String LocationColorProperty
static final java.lang.String defaultLocationColorString
static final java.lang.String showLocationsCommand
static final java.lang.String showNamesCommand
static final java.lang.String forceGlobalCommand
static final java.lang.String readDataCommand
static final java.lang.String NamePropertyPrefix
static final java.lang.String LocationPropertyPrefix
OMGraphicList get(float nwLat, float nwLon, float seLat, float seLon, OMGraphicList graphicList)
nwLat
- NorthWest latitude of area of interest.nwLon
- NorthWest longitude of area of interest.seLat
- SouthEast latitude of area of interest.seLon
- SouthEast longitude of area of interest.graphicList
- Vector to add Locations to. If null, the
LocationHandler should create a new Vector to place graphics into.void reloadData()
java.util.List<java.awt.Component> getItemsForPopupMenu(Location loc)
loc
- Location that items should be provided for.LocationLayer getLayer()
void setLayer(LocationLayer layer)
layer
- a LocationLayerboolean isShowNames()
void setShowNames(boolean set)
boolean isShowLocations()
void setShowLocations(boolean set)
boolean isForceGlobal()
void setForceGlobal(boolean set)
java.awt.Component getGUI()
void removed(java.awt.Container cont)
cont
- Container being removed from.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details