|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.omGraphics.event.TestResponsePolicy
public class TestResponsePolicy
Field Summary | |
---|---|
protected OMGraphicList |
selected
|
Constructor Summary | |
---|---|
TestResponsePolicy()
|
Method Summary | |
---|---|
OMGraphicList |
copy(OMGraphicList omgl)
A notification that the OMGraphics on the list should be copied (duplicated and returned) and deselected. |
OMGraphicList |
cut(OMGraphicList omgl)
A notification that the OMGraphics on the list should be cut (deleted and returned) from the list and deselected. |
void |
deselect(OMGraphicList omgl)
A notification that the OMGraphics on the list should be considered to be deselected. |
java.lang.String |
getInfoText(OMGraphic omg)
A request for a string to be provided to use in the information line of the InformationDelegator, for instance. |
java.util.List<java.awt.Component> |
getItemsForMapMenu(MapMouseEvent me)
Return a JMenu with contents applicable to a popup menu for a location over the map. |
java.util.List<java.awt.Component> |
getItemsForOMGraphicMenu(OMGraphic omg)
Return a java.util.List containing input for a JMenu with contents applicable to a popup menu for a location over an OMGraphic. |
OMGraphicList |
getSelected()
A query to get a list of all the OMGraphics that are current selected. |
java.lang.String |
getToolTipTextFor(OMGraphic omg)
A request for a string to be provided to use as a tool tip for an OMGraphic. |
void |
highlight(OMGraphic omg)
Fleeting change of appearance. |
boolean |
isHighlightable(OMGraphic omg)
A query from the MapMouseInterpreter wondering if it should ask any questions about the given OMGraphic concerning mouse movement and mouse dragged gestures. |
boolean |
isSelectable(OMGraphic omg)
A query from the MapMouseInterpreter wondering if the OMGraphic is selectable. |
boolean |
leftClick(MapMouseEvent mme)
A notification that the mouse has been clicked with the left mouse button on the map, and not on any of the OMGraphics. |
boolean |
mouseOver(MapMouseEvent mme)
A notification that the mouse cursor has been moved over the map, not over any of the OMGraphics on the GestureResponsePolicy. |
void |
paste(OMGraphicList omgl)
A notification that the OMGraphics on the list should be added to the list and selected. |
boolean |
receivesMapEvents()
A query from the MapMouseInterpreter wondering if the GestureResponsePolicy wants events pertaining to mouse movements over the map that are not over an OMGraphic. |
void |
select(OMGraphicList omgl)
A notification that the OMGraphics on the list should be considered to be selected. |
void |
unhighlight(OMGraphic omg)
A notification that the OMGraphic is no longer needed to be highlighted and that its appearance can go back to normal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OMGraphicList selected
Constructor Detail |
---|
public TestResponsePolicy()
Method Detail |
---|
public boolean isHighlightable(OMGraphic omg)
GestureResponsePolicy
isHighlightable
in interface GestureResponsePolicy
public boolean isSelectable(OMGraphic omg)
GestureResponsePolicy
isSelectable
in interface GestureResponsePolicy
public boolean receivesMapEvents()
GestureResponsePolicy
receivesMapEvents
in interface GestureResponsePolicy
public OMGraphicList getSelected()
GestureResponsePolicy
getSelected
in interface GestureResponsePolicy
public void highlight(OMGraphic omg)
highlight
in interface GestureResponsePolicy
public void unhighlight(OMGraphic omg)
GestureResponsePolicy
unhighlight
in interface GestureResponsePolicy
public void select(OMGraphicList omgl)
GestureResponsePolicy
select
in interface GestureResponsePolicy
public void deselect(OMGraphicList omgl)
GestureResponsePolicy
deselect
in interface GestureResponsePolicy
public OMGraphicList cut(OMGraphicList omgl)
GestureResponsePolicy
cut
in interface GestureResponsePolicy
public OMGraphicList copy(OMGraphicList omgl)
GestureResponsePolicy
copy
in interface GestureResponsePolicy
public void paste(OMGraphicList omgl)
GestureResponsePolicy
paste
in interface GestureResponsePolicy
public java.lang.String getInfoText(OMGraphic omg)
GestureResponsePolicy
getInfoText
in interface GestureResponsePolicy
public java.lang.String getToolTipTextFor(OMGraphic omg)
GestureResponsePolicy
getToolTipTextFor
in interface GestureResponsePolicy
public java.util.List<java.awt.Component> getItemsForMapMenu(MapMouseEvent me)
GestureResponsePolicy
getItemsForMapMenu
in interface GestureResponsePolicy
me
- a MapMouseEvent describing the location over where
the menu items should apply, in case different options
are appropriate for different places.
public java.util.List<java.awt.Component> getItemsForOMGraphicMenu(OMGraphic omg)
GestureResponsePolicy
getItemsForOMGraphicMenu
in interface GestureResponsePolicy
public boolean mouseOver(MapMouseEvent mme)
GestureResponsePolicy
mouseOver
in interface GestureResponsePolicy
mme
- MapMouseEvent describing the location of the mouse.
public boolean leftClick(MapMouseEvent mme)
GestureResponsePolicy
leftClick
in interface GestureResponsePolicy
mme
- MapMouseEvent describing the location of the mouse.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |