|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
|
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 |
NameColorProperty
Property to use to change the color for name data. |
static java.lang.String |
readDataCommand
|
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
|
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
|
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 | |
void |
fillLocationPopUpMenu(LocationPopupMenu lpm)
The location layer passes a LocationPopupMenu to the handler when on of its locations has been clicked on. |
java.util.Vector |
get(float nwLat,
float nwLon,
float seLat,
float seLon,
java.util.Vector 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. |
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. |
Methods inherited from interface com.bbn.openmap.PropertyConsumer |
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix |
Field Detail |
public static final java.lang.String showdetails
public static final java.lang.String showname
public static final java.lang.String ShowNamesProperty
public static final java.lang.String NameColorProperty
public static final java.lang.String defaultNameColorString
public static final java.lang.String ForceGlobalProperty
public static final java.lang.String ShowLocationsProperty
public static final java.lang.String LocationColorProperty
public static final java.lang.String defaultLocationColorString
public static final java.lang.String showLocationsCommand
public static final java.lang.String showNamesCommand
public static final java.lang.String forceGlobalCommand
public static final java.lang.String readDataCommand
Method Detail |
public java.util.Vector get(float nwLat, float nwLon, float seLat, float seLon, java.util.Vector 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.
public void reloadData()
public void fillLocationPopUpMenu(LocationPopupMenu lpm)
lpm
- LocationPopupMenu to add buttons to.public LocationLayer getLayer()
public void setLayer(LocationLayer layer)
layer
- a LocationLayerpublic boolean isShowNames()
public void setShowNames(boolean set)
public boolean isShowLocations()
public void setShowLocations(boolean set)
public boolean isForceGlobal()
public void setForceGlobal(boolean set)
public java.awt.Component getGUI()
public void removed(java.awt.Container cont)
cont
- Container being removed from.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |