|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.plugin.graphicLoader.GraphicLoaderConnector
public class GraphicLoaderConnector
The GraphicLoaderConnector is a MapHandler membership listener, looking for GraphicLoaders without receivers. This class uses the MapHandler to find GraphicLoaders, and requires the LayerHandler to be added to the MapHandler, also.
If the GraphicLoaderConnector finds a GraphicLoader that is not * hooked up to a receiver, it creates a GraphicLoaderPlugIn and PlugInLayer, and adds the PlugInLayer to the LayerHandler. This causes the LayerHandler to add the layer to the application. If the GraphicLoaderConnector doesn't have a handle to the LayerHandler when it finds a GraphicLoader, it adds the PlugInLayer it created to an internal list to add to the LayerHandler when the connector finds one.
| Field Summary | |
|---|---|
protected LayerHandler |
layerHandler
|
protected int |
newLayerIndex
|
static java.lang.String |
NewLayerIndexProperty
|
protected boolean |
newLayerVisible
|
static java.lang.String |
NewLayerVisibleProperty
|
protected java.util.List |
orphanGraphicLoaderPlugIns
|
| Fields inherited from class com.bbn.openmap.OMComponent |
|---|
i18n, propertyPrefix |
| Fields inherited from class com.bbn.openmap.MapHandlerChild |
|---|
beanContextChildSupport, isolated |
| Fields inherited from interface com.bbn.openmap.PropertyConsumer |
|---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
| Constructor Summary | |
|---|---|
GraphicLoaderConnector()
|
|
| Method Summary | |
|---|---|
void |
checkGraphicLoader(GraphicLoader gl)
Check to see if the GraphicLoader already has a receiver set inside it. |
void |
findAndInit(java.lang.Object obj)
Find GraphicLoaders and LayerHandler in the MapHandler. |
void |
findAndUndo(java.lang.Object obj)
The childrenRemoved has been changed to go through its iterator to call this method with every object. |
LayerHandler |
getLayerHandler()
|
int |
getNewLayerIndex()
|
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the current values of the OMComponent. |
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. |
void |
hookUpGraphicLoaderWithLayer(GraphicLoader gl)
Assumes that the GraphicLoader doesn't already have a receiver. |
void |
setLayerHandler(LayerHandler lh)
Set the LayerHandler to be notified with any new PlugIn layers containing the new GraphicLoaderPlugIns. |
void |
setNewLayerIndex(int i)
Set the index of any new layers to be added to the LayerHandler. |
boolean |
setNewLayerVisible()
|
void |
setNewLayerVisible(boolean set)
Set whether the new layers should initially be visible when they are added to the map. |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the OMComponent. |
| Methods inherited from class com.bbn.openmap.OMComponent |
|---|
getPropertyPrefix, setProperties, setPropertyPrefix |
| Methods inherited from class com.bbn.openmap.MapHandlerChild |
|---|
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LayerHandler layerHandler
protected int newLayerIndex
protected boolean newLayerVisible
protected java.util.List orphanGraphicLoaderPlugIns
public static final java.lang.String NewLayerIndexProperty
public static final java.lang.String NewLayerVisibleProperty
| Constructor Detail |
|---|
public GraphicLoaderConnector()
| Method Detail |
|---|
public void setNewLayerIndex(int i)
public int getNewLayerIndex()
public void setNewLayerVisible(boolean set)
public boolean setNewLayerVisible()
public void setLayerHandler(LayerHandler lh)
public LayerHandler getLayerHandler()
public void checkGraphicLoader(GraphicLoader gl)
public void hookUpGraphicLoaderWithLayer(GraphicLoader gl)
public void findAndInit(java.lang.Object obj)
findAndInit in interface LightMapHandlerChildfindAndInit in class MapHandlerChildpublic void findAndUndo(java.lang.Object obj)
MapHandlerChild
findAndUndo in interface LightMapHandlerChildfindAndUndo in class MapHandlerChild
public void setProperties(java.lang.String prefix,
java.util.Properties props)
OMComponent
setProperties in interface PropertyConsumersetProperties in class OMComponentprefix - the token to prefix the property namesprops - the Properties objectpublic java.util.Properties getProperties(java.util.Properties props)
OMComponent
getProperties in interface PropertyConsumergetProperties in class OMComponentprops - 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)
OMComponent
getPropertyInfo in interface PropertyConsumergetPropertyInfo in class OMComponentlist - a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||