public class GraphicLoaderConnector extends OMComponent
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.
Modifier and Type | Field and Description |
---|---|
protected LayerHandler |
layerHandler |
protected int |
newLayerIndex |
static java.lang.String |
NewLayerIndexProperty |
protected boolean |
newLayerVisible |
static java.lang.String |
NewLayerVisibleProperty |
protected java.util.List |
orphanGraphicLoaderPlugIns |
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
GraphicLoaderConnector() |
Modifier and Type | Method and Description |
---|---|
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.
|
getPropertyPrefix, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
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
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 LightMapHandlerChild
findAndInit
in class MapHandlerChild
public void findAndUndo(java.lang.Object obj)
MapHandlerChild
findAndUndo
in interface LightMapHandlerChild
findAndUndo
in class MapHandlerChild
public void setProperties(java.lang.String prefix, java.util.Properties props)
OMComponent
setProperties
in interface PropertyConsumer
setProperties
in class OMComponent
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic java.util.Properties getProperties(java.util.Properties props)
OMComponent
getProperties
in interface PropertyConsumer
getProperties
in class OMComponent
props
- 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 PropertyConsumer
getPropertyInfo
in class OMComponent
list
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details