|
||||||||||
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
public class OMGraphicHandlerPlugIn
A PlugIn that implements the OMGraphicHandler interface.
Field Summary | |
---|---|
protected FilterSupport |
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 | |
---|---|
OMGraphicHandlerPlugIn()
|
|
OMGraphicHandlerPlugIn(java.awt.Component comp)
|
Method Summary | |
---|---|
boolean |
canSetList()
Indicates if the OMGraphicHandler can have its OMGraphicList set. |
boolean |
doAction(OMGraphic graphic,
OMAction action)
Allows the OMGraphicHandler to receive graphics or take some action on one. |
OMGraphicList |
filter(java.awt.Shape withinThisShape)
Filters the OMGraphicHandler graphic list so that graphics within the given shape will be visible. |
OMGraphicList |
filter(java.awt.Shape shapeBoundary,
boolean getInsideBoundary)
Filters the OMGraphicHandler graphic list so that graphics inside or outside the given shape will be visible. |
OMGraphicList |
filter(java.lang.String SQLQuery)
Filters the OMGraphicHandler graphic list so that graphics meeting the SQL query statement will be visible. |
FilterSupport |
getFilter()
Get the FilterSupport object that is handling the OMGraphicHandler methods. |
OMGraphicList |
getList()
Return the graphic list currently being used by the OMGraphicHandler. |
OMGraphicList |
getRectangle(Projection p)
The getRectangle call is the main call into the PlugIn module. |
void |
resetFiltering()
Remove all filters, and reset all graphics to be visible. |
void |
setFilter(FilterSupport fs)
Don't set to null. |
void |
setList(OMGraphicList omgl)
Set the OMGraphicList within this OMGraphicHandler. |
boolean |
supportsSQL()
Returns true if the OMGraphicHandler can handle SQL statements for filtering. |
Methods inherited from class com.bbn.openmap.plugin.BeanContextAbstractPlugIn |
---|
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
Methods inherited from class com.bbn.openmap.plugin.AbstractPlugIn |
---|
dispose, doPrepare, getAddToBeanContext, getComponent, getGUI, getMapMouseListener, getMouseModeServiceList, getName, getProperties, getPropertyInfo, getPropertyPrefix, isRemovable, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseMoved, mousePressed, mouseReleased, removed, repaint, setAddToBeanContext, setComponent, setMapMouseListener, setName, setProperties, setProperties, setPropertyPrefix, setRemovable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FilterSupport filter
Constructor Detail |
---|
public OMGraphicHandlerPlugIn()
public OMGraphicHandlerPlugIn(java.awt.Component comp)
Method Detail |
---|
public void setFilter(FilterSupport fs)
public FilterSupport getFilter()
public OMGraphicList getRectangle(Projection p)
getRectangle
in interface PlugIn
getRectangle
in class AbstractPlugIn
p
- projection of the screen, holding scale, center
coords, height, width.
Projection
,
OMGraphicList
public OMGraphicList filter(java.awt.Shape withinThisShape)
OMGraphicHandler
filter
in interface OMGraphicHandler
withinThisShape
- java.awt.Shape object defining a
boundary.
public OMGraphicList filter(java.awt.Shape shapeBoundary, boolean getInsideBoundary)
OMGraphicHandler
filter
in interface OMGraphicHandler
shapeBoundary
- java.awt.Shape object defining a boundary.getInsideBoundary
- if true, the filter will look for
shapes inside and contacting the boundary. If false, the
filter will look for shapes outside the boundary.
OMGraphicHandler.filter(Shape, boolean).
public boolean supportsSQL()
OMGraphicHandler
supportsSQL
in interface OMGraphicHandler
OMGraphicHandler.supportsSQL().
public OMGraphicList filter(java.lang.String SQLQuery)
OMGraphicHandler
filter
in interface OMGraphicHandler
SQLQuery
- a SELECT SQL statement
public boolean doAction(OMGraphic graphic, OMAction action)
OMGraphicHandler
doAction
in interface OMGraphicHandler
graphic
- the OMGraphic to do the action on.action
- the OMAction describing what to do to the
graphic.
public OMGraphicList getList()
OMGraphicHandler
getList
in interface OMGraphicHandler
OMGeometry.isVisible()
public boolean canSetList()
canSetList
in interface OMGraphicHandler
public void setList(OMGraphicList omgl)
setList
in interface OMGraphicHandler
public void resetFiltering()
resetFiltering
in interface OMGraphicHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |