skrueger.geotools
Class XMapPaneActionAdapter

java.lang.Object
  extended by skrueger.geotools.XMapPaneActionAdapter
All Implemented Interfaces:
XMapPaneAction

public class XMapPaneActionAdapter
extends Object
implements XMapPaneAction

Empty implementation of XMapPaneAction. No method of this class does anything.

Author:
Martin Schmitz (University of Bonn/Germany)

Field Summary
 
Fields inherited from interface skrueger.geotools.XMapPaneAction
PAN, SELECT_ALL, SELECT_ONE_FROM_TOP, SELECT_TOP, ZOOM_IN, ZOOM_OUT
 
Constructor Summary
XMapPaneActionAdapter()
           
 
Method Summary
 void performClick(XMapPane mapPane, MouseEvent ev, DirectPosition coord)
          Implements the action on a mouse click event.
 void performDragged(XMapPane mapPane, MouseEvent ev, Point dragStartPos, Point dragLastPos, DirectPosition startCoord, DirectPosition endCoord)
          Implements the action AFTER a mouse drag has ended.
 void performDragging(XMapPane mapPane, MouseEvent ev, Point dragStartPos, Point dragLastPos, DirectPosition startCoord, DirectPosition endCoord)
          Implements the action DURING a mouse drag.
 void performKeyboard(XMapPane mapPane, Object param)
          Implements the action on a keyboard stroke.
 void performWheel(XMapPane mapPane, MouseWheelEvent ev, DirectPosition coord)
          Implements the action on mouse wheel event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMapPaneActionAdapter

public XMapPaneActionAdapter()
Method Detail

performClick

public void performClick(XMapPane mapPane,
                         MouseEvent ev,
                         DirectPosition coord)
Implements the action on a mouse click event. Does nothing.

Specified by:
performClick in interface XMapPaneAction
Parameters:
mapPane - map pane the action should be performed on
ev - mouse event of the action
coord - geo coordinate the click is performed on

performDragged

public void performDragged(XMapPane mapPane,
                           MouseEvent ev,
                           Point dragStartPos,
                           Point dragLastPos,
                           DirectPosition startCoord,
                           DirectPosition endCoord)
Implements the action AFTER a mouse drag has ended. Does nothing.

Specified by:
performDragged in interface XMapPaneAction
Parameters:
mapPane - map pane the action should be performed on
ev - mouse event of the action
dragStartPos - window position the window starts (the end position can be determined from the mouse event)
startCoord - geo coordinate the window starts
endCoord - geo coordinate the window ends

performDragging

public void performDragging(XMapPane mapPane,
                            MouseEvent ev,
                            Point dragStartPos,
                            Point dragLastPos,
                            DirectPosition startCoord,
                            DirectPosition endCoord)
Implements the action DURING a mouse drag. Does nothing.

Specified by:
performDragging in interface XMapPaneAction
Parameters:
mapPane - map pane the action should be performed on
ev - mouse event of the action
dragStartPos - window position the drag was started (the current position can be determined from the mouse event)
startCoord - geo coordinate the drag was started
endCoord - geo coordinate the drag is currently moved over

performKeyboard

public void performKeyboard(XMapPane mapPane,
                            Object param)
Implements the action on a keyboard stroke. Does nothing.

Specified by:
performKeyboard in interface XMapPaneAction
Parameters:
mapPane - map pane the action should be performed on
param - An optinal paramter that can be defined.

performWheel

public void performWheel(XMapPane mapPane,
                         MouseWheelEvent ev,
                         DirectPosition coord)
Implements the action on mouse wheel event. Does nothing.

Specified by:
performWheel in interface XMapPaneAction
Parameters:
mapPane - map pane the action should be performed on
ev - mouse event of the action
coord - geo coordinate the wheel is turned on