public class StandardMapMouseInterpreter.GeometryOfInterest
extends java.lang.Object
Constructor and Description |
---|
StandardMapMouseInterpreter.GeometryOfInterest(OMGraphic geom,
java.awt.event.MouseEvent me)
Create a Geometry of Interest with the OMGraphic and the first mouse
event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(OMGraphic geom)
A check to see if an OMGraphic is the same as the one of interest.
|
boolean |
appliesTo(OMGraphic geom,
java.awt.event.MouseEvent me)
A check to see if a mouse event that is occurring over an OMGraphic
is infact occurring over the one of interest, and with the same mouse
button.
|
int |
getButton()
Return the button that caused the interest.
|
protected int |
getButton(java.awt.event.MouseEvent me)
Utility method to get around MouseEvent.getButton 1.4 requirement.
|
OMGraphic |
getGeometry()
Return the OMGraphic of interest.
|
boolean |
isLeftButton()
Return if the current button is the left one.
|
boolean |
sameButton(java.awt.event.MouseEvent me)
A check to see if the current mouse event concerns the same mouse
button as the original.
|
void |
setLeftButton(boolean b)
Called when the popup trigger is known to have been triggered and a
click interest has been set by it.
|
public StandardMapMouseInterpreter.GeometryOfInterest(OMGraphic geom, java.awt.event.MouseEvent me)
public boolean appliesTo(OMGraphic geom)
public boolean appliesTo(OMGraphic geom, java.awt.event.MouseEvent me)
public boolean sameButton(java.awt.event.MouseEvent me)
public OMGraphic getGeometry()
public int getButton()
protected int getButton(java.awt.event.MouseEvent me)
public boolean isLeftButton()
public void setLeftButton(boolean b)
b
- Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details