|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.layer.location.BasicLocationHandler
public class BasicLocationHandler
A basic location handler, that just returns simple testing locations.
| Field Summary | |
|---|---|
protected javax.swing.Box |
box
|
protected java.awt.Color[] |
colors
|
protected LocationLayer |
layer
The parent layer. |
protected java.lang.String |
propertyPrefix
PropertyConsumer property prefix. |
| Fields inherited from interface com.bbn.openmap.layer.location.LocationHandler |
|---|
defaultLocationColorString, defaultNameColorString, forceGlobalCommand, ForceGlobalProperty, LocationColorProperty, LocationPropertyPrefix, NameColorProperty, NamePropertyPrefix, readDataCommand, showdetails, showLocationsCommand, ShowLocationsProperty, showname, showNamesCommand, ShowNamesProperty |
| Fields inherited from interface com.bbn.openmap.PropertyConsumer |
|---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
| Constructor Summary | |
|---|---|
BasicLocationHandler()
The default constructor for the Layer. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
The Action Listener method, that reacts to the palette widgets actions. |
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()
Provides the palette widgets to control the options of showing maps, or attribute text. |
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()
Get the layer the handler is serving. |
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the current values of the layer. |
java.util.Properties |
getPropertyInfo(java.util.Properties list)
Method to fill in a Properties object with values reflecting the properties able to be set on this PropertyConsumer. |
java.lang.String |
getPropertyPrefix()
Get the property key prefix that is being used to prepend to the property keys for Properties lookups. |
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 is removed from the map. |
void |
setForceGlobal(boolean set)
Set whether global settings should override local ones. |
void |
setLayer(LocationLayer l)
Set the layer this handler is serving. |
void |
setProperties(java.util.Properties props)
Sets the properties for the handler. |
void |
setProperties(java.lang.String prefix,
java.util.Properties properties)
Set up the properties of the handler. |
void |
setPropertyPrefix(java.lang.String prefix)
Set the property key prefix that should be used by the PropertyConsumer. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LocationLayer layer
protected java.lang.String propertyPrefix
protected java.awt.Color[] colors
protected javax.swing.Box box
| Constructor Detail |
|---|
public BasicLocationHandler()
| Method Detail |
|---|
public void setLayer(LocationLayer l)
setLayer in interface LocationHandlerl - a LocationLayerpublic LocationLayer getLayer()
getLayer in interface LocationHandlerpublic void reloadData()
LocationHandler
reloadData in interface LocationHandlerpublic boolean isShowNames()
LocationHandler
isShowNames in interface LocationHandlerpublic void setShowNames(boolean set)
LocationHandler
setShowNames in interface LocationHandlerpublic boolean isShowLocations()
LocationHandler
isShowLocations in interface LocationHandlerpublic void setShowLocations(boolean set)
LocationHandler
setShowLocations in interface LocationHandlerpublic boolean isForceGlobal()
LocationHandler
isForceGlobal in interface LocationHandlerpublic void setForceGlobal(boolean set)
LocationHandler
setForceGlobal in interface LocationHandlerpublic void removed(java.awt.Container cont)
removed in interface LocationHandlercont - Container being removed from.
public OMGraphicList get(float nwLat,
float nwLon,
float seLat,
float seLon,
OMGraphicList graphicList)
LocationHandler
get in interface LocationHandlernwLat - 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 java.util.List<java.awt.Component> getItemsForPopupMenu(Location loc)
LocationHandler
getItemsForPopupMenu in interface LocationHandlerloc - Location that items should be provided for.public java.awt.Component getGUI()
getGUI in interface LocationHandlerpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void setProperties(java.util.Properties props)
setProperties in interface PropertyConsumerprops - the Properties object.
public void setProperties(java.lang.String prefix,
java.util.Properties properties)
setProperties in interface PropertyConsumerprefix - a String used by the PropertyConsumer to prepend
to each property value it wants to look up -
setList.getProperty(prefix.propertyKey). If the prefix
had already been set, then the prefix passed in should
replace that previous value.properties - a Properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.public java.util.Properties getProperties(java.util.Properties props)
getProperties in interface PropertyConsumerprops - a Properties object to load the PropertyConsumer properties
into. If props equals null, then a new Properties object should be
created.
public java.util.Properties getPropertyInfo(java.util.Properties list)
getPropertyInfo in interface PropertyConsumerlist - a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.
public void setPropertyPrefix(java.lang.String prefix)
setPropertyPrefix in interface PropertyConsumerprefix - the prefix String.public java.lang.String getPropertyPrefix()
getPropertyPrefix in interface PropertyConsumer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||