|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 PlugIn
getRectangle
in class OMGraphicHandlerPlugIn
p
- projection of the screen, holding scale, center
coords, height, width.
Projection
,
OMGraphicList
public void setList(OMGraphicList graphics)
setList
in interface OMGraphicHandler
setList
in class OMGraphicHandlerPlugIn
public boolean doAction(OMGraphic graphic, OMAction action)
doAction
in interface OMGraphicHandler
doAction
in class OMGraphicHandlerPlugIn
graphic
- 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.BeanContextChild
setBeanContext
in class BeanContextAbstractPlugIn
java.beans.PropertyVetoException
public void setProperties(java.lang.String prefix, java.util.Properties props)
setProperties
in interface PropertyConsumer
setProperties
in class AbstractPlugIn
prefix
- 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.PropertyConsumer
public java.util.Properties getProperties(java.util.Properties props)
getProperties
in interface PropertyConsumer
getProperties
in class AbstractPlugIn
props
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new Properties
object should be created.
PropertyConsumer
public java.util.Properties getPropertyInfo(java.util.Properties props)
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class AbstractPlugIn
props
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.
PropertyConsumer
public java.awt.Component getGUI()
getGUI
in interface PlugIn
getGUI
in class AbstractPlugIn
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |