org.gvsig.fmap.mapcontrol.tools.Behavior
Class PointBehavior

java.lang.Object
  extended by org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior
      extended by org.gvsig.fmap.mapcontrol.tools.Behavior.PointBehavior
All Implemented Interfaces:
IBehavior

public class PointBehavior
extends Behavior

Behavior that permits user to select a point with a double click mouse action, on the associated MapControl using a PointListener.

Author:
Vicente Caballero Navarro

Field Summary
 
Fields inherited from class org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior
geomManager
 
Constructor Summary
PointBehavior(PointListener l)
          Creates a new behavior for selecting a point.
 
Method Summary
 ToolListener getListener()
          Gets the ToolListener used by this behavior to perform actions on the associated MapControl object.
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.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, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved, paintComponent, setMapControl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointBehavior

public PointBehavior(PointListener l)

Creates a new behavior for selecting a point.

Parameters:
l - listener used to permit this object to work with the associated MapControl
Method Detail

getListener

public ToolListener getListener()
Description copied from interface: IBehavior

Gets the ToolListener used by this behavior to perform actions on the associated MapControl object.

Specified by:
getListener in interface IBehavior
Specified by:
getListener in class Behavior
Returns:
the ToolListener used by this behavior

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface IBehavior
Overrides:
mousePressed in class Behavior
See Also:
MouseListener.mousePressed(java.awt.event.MouseEvent)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
                   throws BehaviorException
Specified by:
mouseReleased in interface IBehavior
Overrides:
mouseReleased in class Behavior
Throws:
BehaviorException - any exception processing the action associated to a mouse released event, by the IBehavior object
See Also:
MouseListener.mouseReleased(java.awt.event.MouseEvent)

setListener

public void setListener(ToolListener listener)

Sets a tool listener to work with the MapControl using this behavior.

Parameters:
listener - a PointListener object for this behavior


Copyright © 2014 gvSIG Association. All Rights Reserved.