|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.plugin.AbstractPlugIn
com.bbn.openmap.plugin.BeanContextAbstractPlugIn
com.bbn.openmap.plugin.OMGraphicHandlerPlugIn
com.bbn.openmap.plugin.graphicLoader.GraphicLoaderPlugIn
public class GraphicLoaderPlugIn
A GraphicLoaderPlugIn is a PlugIn that receives its OMGraphics from some other source, at any time. It just listens to its GraphicLoader for updates to the OMGraphicList, and then updates the map as necessary.
The GraphicLoaderPlugIn passes projection changes onto the GraphicLoader, and if the GraphicLoader is a MapMouseListener, the GraphicLoaderPlugIn will defer all MouseEvents to it.
To add a GraphicLoader to the OpenMap application, you can do it several ways:
graphicLoaderPlugIn.class=com.bbn.openmap.plugin.graphicLoader.GraphicLoaderPlugIn graphicLoaderPlugIn.prettyName=Name of Layer graphicLoaderPlugIn.graphicLoader=GraphicLoader Classname graphicLoaderPlugIn.addGraphicLoaderToMapHandler=true/false (false by default)
| Field Summary | |
|---|---|
protected boolean |
addGraphicLoaderToMapHandler
|
static java.lang.String |
AddGraphicLoaderToMapHandlerProperty
|
static java.lang.String |
GraphicLoaderProperty
|
protected GraphicLoader |
loader
|
protected java.lang.Object |
lock
|
protected boolean |
needToAddGraphicLoaderToMapHandler
|
| Fields inherited from class com.bbn.openmap.plugin.OMGraphicHandlerPlugIn |
|---|
filter |
| Fields inherited from class com.bbn.openmap.plugin.BeanContextAbstractPlugIn |
|---|
beanContextChildSupport |
| Fields inherited from class com.bbn.openmap.plugin.AbstractPlugIn |
|---|
addToBeanContext, component, i18n, mml, name, prefix, removable, RemovableProperty |
| Fields inherited from interface com.bbn.openmap.PropertyConsumer |
|---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
| Constructor Summary | |
|---|---|
GraphicLoaderPlugIn()
|
|
GraphicLoaderPlugIn(java.awt.Component comp)
|
|
| Method Summary | |
|---|---|
boolean |
doAction(OMGraphic graphic,
OMAction action)
OMGraphicHandler method. |
boolean |
getAddGraphicLoaderToMapHandler()
|
GraphicLoader |
getGraphicLoader()
Get the GraphicLoader loader. |
java.awt.Component |
getGUI()
Standard PlugIn method to provide palette. |
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer interface method. |
java.util.Properties |
getPropertyInfo(java.util.Properties props)
PropertyConsumer interface method. |
OMGraphicList |
getRectangle(Projection p)
The getRectangle call is the main call into the PlugIn module. |
void |
setAddGraphicLoaderToMapHandler(boolean val)
Set whether to add the GraphicLoader, which is assumed to yet be added to the GraphicLoaderPlugIn, to the MapHandler. |
void |
setBeanContext(java.beans.beancontext.BeanContext in_bc)
Method for BeanContextChild interface. |
void |
setGraphicLoader(GraphicLoader gl)
Set the GraphicLoader for the PlugIn. |
void |
setList(OMGraphicList graphics)
OMGraphicHandler method. |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
PropertyConsumer interface method. |
| Methods inherited from class com.bbn.openmap.plugin.OMGraphicHandlerPlugIn |
|---|
canSetList, filter, filter, filter, getFilter, getList, resetFiltering, setFilter, supportsSQL |
| Methods inherited from class com.bbn.openmap.plugin.BeanContextAbstractPlugIn |
|---|
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener |
| Methods inherited from class com.bbn.openmap.plugin.AbstractPlugIn |
|---|
dispose, doPrepare, getAddToBeanContext, getComponent, getMapMouseListener, getMouseModeServiceList, getName, getPropertyPrefix, isRemovable, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mouseReleased, removed, repaint, setAddToBeanContext, setComponent, setMapMouseListener, setName, setProperties, setPropertyPrefix, setRemovable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GraphicLoader loader
public static final java.lang.String GraphicLoaderProperty
public static final java.lang.String AddGraphicLoaderToMapHandlerProperty
protected boolean addGraphicLoaderToMapHandler
protected boolean needToAddGraphicLoaderToMapHandler
protected java.lang.Object lock
| Constructor Detail |
|---|
public GraphicLoaderPlugIn()
public GraphicLoaderPlugIn(java.awt.Component comp)
comp - the PlugInLayer to work with.| Method Detail |
|---|
public OMGraphicList getRectangle(Projection p)
getRectangle in interface PlugIngetRectangle in class OMGraphicHandlerPlugInp - projection of the screen, holding scale, center
coords, height, width.
Projection,
OMGraphicListpublic void setList(OMGraphicList graphics)
setList in interface OMGraphicHandlersetList in class OMGraphicHandlerPlugIn
public boolean doAction(OMGraphic graphic,
OMAction action)
doAction in interface OMGraphicHandlerdoAction in class OMGraphicHandlerPlugIngraphic - the OMGraphic to do the action on.action - the OMAction describing what to do to the
graphic.
public void setGraphicLoader(GraphicLoader gl)
public GraphicLoader getGraphicLoader()
public void setAddGraphicLoaderToMapHandler(boolean val)
public boolean getAddGraphicLoaderToMapHandler()
public void setBeanContext(java.beans.beancontext.BeanContext in_bc)
throws java.beans.PropertyVetoException
setBeanContext in interface java.beans.beancontext.BeanContextChildsetBeanContext in class BeanContextAbstractPlugInjava.beans.PropertyVetoException
public void setProperties(java.lang.String prefix,
java.util.Properties props)
setProperties in interface PropertyConsumersetProperties in class AbstractPlugInprefix - 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.props - a Properties object that the PropertyConsumer can use to
retrieve expected properties it can use for configuration.PropertyConsumerpublic java.util.Properties getProperties(java.util.Properties props)
getProperties in interface PropertyConsumergetProperties in class AbstractPlugInprops - a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new Properties
object should be created.
PropertyConsumerpublic java.util.Properties getPropertyInfo(java.util.Properties props)
getPropertyInfo in interface PropertyConsumergetPropertyInfo in class AbstractPlugInprops - a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.
PropertyConsumerpublic java.awt.Component getGUI()
getGUI in interface PlugIngetGUI in class AbstractPlugIn
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||