edu.sc.seis.gee.task
Class RangeSelectionTask

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended byedu.sc.seis.fissuresUtil.display.mouse.SDMouseAdapter
          extended byedu.sc.seis.gee.task.RangeSelectionTask
All Implemented Interfaces:
DefaultParamNames, java.util.EventListener, java.awt.event.MouseListener, SDMouseListener, SDMouseMotionListener, Task

public class RangeSelectionTask
extends SDMouseAdapter
implements Task


Field Summary
protected  Selection currentSelection
           
protected  boolean newSelection
           
 
Fields inherited from interface edu.sc.seis.gee.configurator.DefaultParamNames
BUTTON_GROUP_ID, BUTTON_MODEL, DISPLAY_LOCATION, EAST, FALSE, FRAME, HEIGHT, HEIGHTPER, HORIZONTAL, JUSTIFY, JUSTIFY_BOTTOMLEFT, JUSTIFY_BOTTOMRIGHT, JUSTIFY_CENTER, JUSTIFY_TOPLEFT, JUSTIFY_TOPRIGHT, MAIN, NONE, NORTH, ORIENTATION, PALETTE, PREFIX, PRESELECTED, SERVER_DNS, SERVER_NAME, TASK_ACTION, TASK_CLASSNAME, TASK_ID, TASK_INSTANCE, TASK_NAME, TOOLTIP, TRUE, VERTICAL, WIDTH, WIDTHPER
 
Constructor Summary
RangeSelectionTask()
           
 
Method Summary
 void configure(java.util.Map params)
          Configures a Task with any needed parameters.
 void destroy()
          Called when reset is invoked on gee or if this task is no longer being used
 Selection getSelection(SDMouseEvent me)
          Returns the selection that best matches the given mouse location.
 void invoke()
          Called when a task is to be executed, usually by a menu or toolbar selection for simple tasks.
 void mouseDragged(SDMouseEvent currME)
           
 void mouseExited(SDMouseEvent me)
           
 void mouseMoved(SDMouseEvent me)
           
 void mousePressed(SDMouseEvent me)
           
 void mouseReleased(SDMouseEvent me)
           
 
Methods inherited from class edu.sc.seis.fissuresUtil.display.mouse.SDMouseAdapter
mouseClicked, mouseEntered
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentSelection

protected Selection currentSelection

newSelection

protected boolean newSelection
Constructor Detail

RangeSelectionTask

public RangeSelectionTask()
Method Detail

configure

public void configure(java.util.Map params)
               throws ConfigurationException
Description copied from interface: Task
Configures a Task with any needed parameters. The Task should have default values for as many things as possible, but can throw a ConfigureException if a required parameter is missing.

Specified by:
configure in interface Task
Parameters:
params - a Map value
Throws:
ConfigurationException - if an error occurs

invoke

public void invoke()
Description copied from interface: Task
Called when a task is to be executed, usually by a menu or toolbar selection for simple tasks.

Specified by:
invoke in interface Task

destroy

public void destroy()
Description copied from interface: Task
Called when reset is invoked on gee or if this task is no longer being used

Specified by:
destroy in interface Task

mouseDragged

public void mouseDragged(SDMouseEvent currME)
Specified by:
mouseDragged in interface SDMouseMotionListener

mousePressed

public void mousePressed(SDMouseEvent me)
Specified by:
mousePressed in interface SDMouseListener

mouseReleased

public void mouseReleased(SDMouseEvent me)
Specified by:
mouseReleased in interface SDMouseListener

getSelection

public Selection getSelection(SDMouseEvent me)
Returns the selection that best matches the given mouse location. Note that a selection only happens at the edges. A mouse location witihin the center of a Selection will not select it.


mouseMoved

public void mouseMoved(SDMouseEvent me)
Specified by:
mouseMoved in interface SDMouseMotionListener

mouseExited

public void mouseExited(SDMouseEvent me)
Specified by:
mouseExited in interface SDMouseListener


Copyright © 2002-2006 Seismology at the University of South Carolina. All Rights Reserved.