|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocationHandler
The LocationHandler is the LocationLayer interface to the data. It is the bearer of knowledge about how the location data is stored, and has the smarts on creating the locations and links to represent the data on the map. It also provides controls for changing the display of the data, provided through the getGUI() method, and therefore controls how the data is displayed at a supervisory level. Each location handler should have its own set of properties:
# Properties for LocationHandler # Show the graphics for all the locations. handler.showLocations=true # Show the labels for all the locations. handler.showNames=true
Field Summary | |
---|---|
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 |
LocationPropertyPrefix
Property prefix to use to scope properties to be used for location markers, including rendering properties. |
static java.lang.String |
NamePropertyPrefix
Property prefix to use to scope properties to be used for name markers, including rendering properties. |
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. |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Method Summary | |
---|---|
OMGraphicList |
get(double nwLat,
double nwLon,
double seLat,
double 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. |
java.lang.String |
getPrettyName()
Get the GUI pretty name for the data set retrieved by this LocationHandler. |
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 |
setPrettyName(java.lang.String prettyName)
Set the name used in the GUI to represent this data set. |
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. |
Methods inherited from interface com.bbn.openmap.PropertyConsumer |
---|
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix |
Field Detail |
---|
static final java.lang.String showdetails
static final java.lang.String showname
static final java.lang.String ShowNamesProperty
static final java.lang.String defaultNameColorString
static final java.lang.String ForceGlobalProperty
static final java.lang.String ShowLocationsProperty
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
Method Detail |
---|
OMGraphicList get(double nwLat, double nwLon, double seLat, double 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.void setPrettyName(java.lang.String prettyName)
prettyName
- A GUI pretty name.java.lang.String getPrettyName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |