public class Playground
extends com.bbn.openmap.graphicLoader.MMLGraphicLoader
Constructor and Description |
---|
Playground()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
MapOb |
addMapOb(edu.stanford.smi.protege.model.Instance inst)
Create from Instance and add to RuNA Map Object
|
void |
addMapOb(MapOb mo)
Add to RuNA new Map Object.
|
void |
addMapObs(java.util.Collection<?> inss)
Add Map obs from the collection of Instances
|
void |
controlObject(edu.stanford.smi.protege.model.Instance inst)
Search for the Navigating Object corresponding to this Instance
and call method control on it
|
void |
findAndInit(java.lang.Object obj)
Standard OpenMap interface LightMapHandlerChild method.
|
void |
findAndUndo(java.lang.Object obj)
Standard OpenMap interface LightMapHandlerChild method.
|
com.bbn.openmap.event.MapMouseListener |
getMapMouseListener() |
MapOb |
getMapOb(edu.stanford.smi.protege.model.Instance instance)
Search Map Object for Instance
|
MapOb |
getMapOb(java.lang.String label)
Search Map Object by name
|
java.util.Collection<edu.stanford.smi.protege.model.Instance> |
getMapObInstances() |
com.bbn.openmap.omGraphics.OMGraphicList |
getMapObs() |
java.lang.Object[] |
getMovingNavObs(java.lang.String[] typs)
Gives an array of mooving Map Objects for the array of their names
|
java.lang.Object[] |
getNavObs(java.lang.String[] typs)
Gives an array of Map Objects for the array of their types.
|
int |
getPgid() |
RuMapMouseAdapter |
getRuMapMouseAdapter() |
java.lang.String |
getScenario() |
java.util.Collection<MapOb> |
inOMTPolies(MapOb mo)
Search polygons containing Map Object
|
boolean |
isTimerRunning() |
void |
manageGraphics()
Standard OpenMap method
|
void |
mapBackMapOb(edu.stanford.smi.protege.model.Instance inst)
Write back to Protege changed attributies of Map Object
into slots of corresponding Instances
|
boolean |
mouseClicked(java.awt.event.MouseEvent e)
Called whenever the mouse is clicked by the user and one of the
requested mouse modes is active.
|
void |
mouseMoved()
Called whenever the mouse is moved on this layer and one of the
requested mouse modes is active, and the gesture is consumed by
another active layer.
|
boolean |
mouseMoved(java.awt.event.MouseEvent e)
Called whenever the mouse is moved on this layer and one of the
requested mouse modes is active.
|
MapOb |
removeMapOb(edu.stanford.smi.protege.model.Instance inst,
boolean kbdelete)
Remove from Playground existing Map Object by Instance
|
void |
removeMapOb(MapOb mo,
boolean kbdelete)
Remove from Playground existing Map Object
|
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Standard OpenMap Component method
|
void |
setRuMapMouseAdapter(RuMapMouseAdapter ruMMAdapter) |
getMouseModeServiceList, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased
actionPerformed, createTimer, getGUI, getName, getProjection, getProperties, getPropertyInfo, getReceiver, getTimer, getUpdateInterval, setName, setProjection, setReceiver, setTimer, setUpdateInterval
getPropertyPrefix, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
public int getPgid()
public void manageGraphics()
manageGraphics
in class com.bbn.openmap.graphicLoader.AbstractGraphicLoader
public void addMapObs(java.util.Collection<?> inss)
inss
- - collection of Instances representing Map Obs in Protegepublic MapOb addMapOb(edu.stanford.smi.protege.model.Instance inst)
inst
- - Intstance representing Map Object in Protegepublic void mapBackMapOb(edu.stanford.smi.protege.model.Instance inst)
inst
- - Instances corresponding existing in Playground Map Objectspublic java.util.Collection<edu.stanford.smi.protege.model.Instance> getMapObInstances()
public void controlObject(edu.stanford.smi.protege.model.Instance inst)
inst
- - Instance corresponding to Navigating Objectpublic MapOb getMapOb(java.lang.String label)
label
- - name of Map Objectpublic java.util.Collection<MapOb> inOMTPolies(MapOb mo)
mo
- - Map Objectpublic MapOb getMapOb(edu.stanford.smi.protege.model.Instance instance)
instance
- - Protege Instance corresponding this Map Objectpublic java.lang.Object[] getNavObs(java.lang.String[] typs)
typs
- - array of Map Object namespublic java.lang.Object[] getMovingNavObs(java.lang.String[] typs)
typs
- - array of Map Object namespublic void addMapOb(MapOb mo)
mo
- - new Map Objectpublic MapOb removeMapOb(edu.stanford.smi.protege.model.Instance inst, boolean kbdelete)
inst
- - Instance of Map Object to removekbdelete
- Should corresponding Protege Instance be removed toopublic void removeMapOb(MapOb mo, boolean kbdelete)
mo
- - Map Object to removekbdelete
- Should corresponding Protege Instance be removed toopublic void setProperties(java.lang.String prefix, java.util.Properties props)
setProperties
in interface com.bbn.openmap.PropertyConsumer
setProperties
in class com.bbn.openmap.graphicLoader.AbstractGraphicLoader
prefix
- - propery prefixprops
- - OpenMap properties objectpublic java.lang.String getScenario()
public com.bbn.openmap.omGraphics.OMGraphicList getMapObs()
public boolean isTimerRunning()
public com.bbn.openmap.event.MapMouseListener getMapMouseListener()
public boolean mouseMoved(java.awt.event.MouseEvent e)
Tries to locate a graphic near the mouse, and if it is found, it selected.
mouseMoved
in interface com.bbn.openmap.event.MapMouseListener
mouseMoved
in class com.bbn.openmap.graphicLoader.MMLGraphicLoader
e
- the move eventMMLGraphicLoader.getMouseModeServiceList()
public void mouseMoved()
mouseMoved
in interface com.bbn.openmap.event.MapMouseListener
mouseMoved
in class com.bbn.openmap.graphicLoader.MMLGraphicLoader
MMLGraphicLoader.getMouseModeServiceList()
public boolean mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface com.bbn.openmap.event.MapMouseListener
mouseClicked
in class com.bbn.openmap.graphicLoader.MMLGraphicLoader
e
- the click eventMMLGraphicLoader.getMouseModeServiceList()
public RuMapMouseAdapter getRuMapMouseAdapter()
public void setRuMapMouseAdapter(RuMapMouseAdapter ruMMAdapter)
public void findAndInit(java.lang.Object obj)
findAndInit
in interface com.bbn.openmap.LightMapHandlerChild
findAndInit
in class com.bbn.openmap.MapHandlerChild
obj
- - serched objectpublic void findAndUndo(java.lang.Object obj)
findAndUndo
in interface com.bbn.openmap.LightMapHandlerChild
findAndUndo
in class com.bbn.openmap.MapHandlerChild
obj
- - searched object