public class OMGraphicHandlerPlugIn extends BeanContextAbstractPlugIn implements OMGraphicHandler
Modifier and Type | Field and Description |
---|---|
protected FilterSupport |
filter |
beanContextChildSupport
addToBeanContext, component, i18n, mml, name, prefix, removable, RemovableProperty
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
OMGraphicHandlerPlugIn() |
OMGraphicHandlerPlugIn(java.awt.Component comp) |
Modifier and Type | Method and Description |
---|---|
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.
|
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext
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
protected FilterSupport filter
public OMGraphicHandlerPlugIn()
public OMGraphicHandlerPlugIn(java.awt.Component comp)
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 statementpublic 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
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details