org.utgenome.gwt.utgb.client.track
Class TrackRangeSelector

java.lang.Object
  extended by org.utgenome.gwt.utgb.client.track.TrackRangeSelector
All Implemented Interfaces:
com.google.gwt.event.dom.client.MouseDownHandler, com.google.gwt.event.dom.client.MouseMoveHandler, com.google.gwt.event.shared.EventHandler

public class TrackRangeSelector
extends Object
implements com.google.gwt.event.dom.client.MouseDownHandler, com.google.gwt.event.dom.client.MouseMoveHandler

TrackRangeSelector supports range selection on a displayed track. In order to use TrackRangeSelector, your track must implement the RangeSelectable interface.

Author:
leo

Constructor Summary
TrackRangeSelector(RangeSelectable track)
           
 
Method Summary
 void onMouseDown(com.google.gwt.user.client.Element element, int x, int y)
           
 void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent e)
           
 void onMouseDownFromChild(com.google.gwt.event.dom.client.MouseDownEvent e)
           
 void onMouseDownFromChild(com.google.gwt.user.client.ui.Widget sender, int x, int y)
          An event handler when a mouse down event is reported from a child widget of the trackPanel.
 void onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent e)
           
 void setWindowWidth(int windowWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackRangeSelector

public TrackRangeSelector(RangeSelectable track)
Method Detail

setWindowWidth

public void setWindowWidth(int windowWidth)

onMouseDownFromChild

public void onMouseDownFromChild(com.google.gwt.user.client.ui.Widget sender,
                                 int x,
                                 int y)
An event handler when a mouse down event is reported from a child widget of the trackPanel.

Parameters:
x -
y -

onMouseDownFromChild

public void onMouseDownFromChild(com.google.gwt.event.dom.client.MouseDownEvent e)

onMouseDown

public void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent e)
Specified by:
onMouseDown in interface com.google.gwt.event.dom.client.MouseDownHandler

onMouseDown

public void onMouseDown(com.google.gwt.user.client.Element element,
                        int x,
                        int y)

onMouseMove

public void onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent e)
Specified by:
onMouseMove in interface com.google.gwt.event.dom.client.MouseMoveHandler


Copyright © 2007-2012 utgenome.org. All Rights Reserved.