|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.mapcontrol.tools.Behavior.Behavior
org.gvsig.fmap.mapcontrol.tools.Behavior.MouseMovementBehavior
public class MouseMovementBehavior
Behavior that permits user to move and drag the mouse on the image of the associated
MapControl instance using a PointListener.
| Field Summary | |
|---|---|
protected PointListener |
listener
Tool listener used to work with the MapControl object. |
| Fields inherited from class org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior |
|---|
geomManager |
| Constructor Summary | |
|---|---|
MouseMovementBehavior(PointListener mli)
Creates a new behavior for moving or dragging the mouse on the image of the associated MapControl instance. |
|
| Method Summary | |
|---|---|
ToolListener |
getListener()
Gets the ToolListener used by this behavior to perform actions on the
associated MapControl object. |
void |
mouseDragged(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
setListener(ToolListener listener)
Sets a tool listener to work with the MapControl using this behavior. |
| Methods inherited from class org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior |
|---|
createArc, createArc, createArc, createCircle, createLineString, createPoint, createPoint, getImageCursor, getMapControl, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelMoved, paintComponent, setMapControl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PointListener listener
MapControl object.
getListener(),
setListener(ToolListener)| Constructor Detail |
|---|
public MouseMovementBehavior(PointListener mli)
Creates a new behavior for moving or dragging the mouse on the image of the associated MapControl instance.
mli - listener used to permit this object to work with the associated MapControl| Method Detail |
|---|
public void mouseDragged(MouseEvent e)
throws BehaviorException
mouseDragged in interface IBehaviormouseDragged in class BehaviorBehaviorException - any exception processing the action associated to a mouse dragged event, by the IBehavior objectMouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
public void mouseMoved(MouseEvent e)
throws BehaviorException
mouseMoved in interface IBehaviormouseMoved in class BehaviorBehaviorException - any exception processing the action associated to a mouse moved event, by the IBehavior objectMouseMotionListener.mouseMoved(java.awt.event.MouseEvent)public void setListener(ToolListener listener)
Sets a tool listener to work with the MapControl using this behavior.
listener - a PointListener object for this behaviorpublic ToolListener getListener()
IBehaviorGets the ToolListener used by this behavior to perform actions on the
associated MapControl object.
getListener in interface IBehaviorgetListener in class BehaviorToolListener used by this behavior
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||