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

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.utgenome.gwt.utgb.client.track.TrackQueue
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, TrackLayoutManager, TrackUpdateListener, WindowListener

public class TrackQueue
extends com.google.gwt.user.client.ui.Composite
implements TrackUpdateListener, TrackLayoutManager, WindowListener

TrackQueue is a widget that draws tracks

Author:
leo

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
TrackQueue(TrackGroup trackGroup)
           
 
Method Summary
 void adjustHeight()
           
 WindowBox createWindow()
           
 int getTrackIndex(Track track)
          Return the index of the given track
 void onAddTrackGroup(TrackGroup trackGroup)
           
 void onButtonClick(WindowBox window, int buttonType)
          An event handler when a window buton is clicked
 void onInsertTrack(Track track)
          When a new track is inserted to the group
 void onInsertTrack(Track track, int beforeIndex)
          When a new track is inserted to the group
protected  void onLoad()
           
 void onRemoveTrack(Track track)
          When the track is removed from the group
 void onRemoveTrackGroup(TrackGroup trackGroup)
           
 void onResizeTrack()
          When the size of a track changes
 void onResizeTrackWindow(int newWindowSize)
           
 void onResizeWindow(WindowBox window, int newWindowSize)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrackQueue

public TrackQueue(TrackGroup trackGroup)
Method Detail

createWindow

public WindowBox createWindow()

adjustHeight

public void adjustHeight()

getTrackIndex

public int getTrackIndex(Track track)
Description copied from interface: TrackLayoutManager
Return the index of the given track

Specified by:
getTrackIndex in interface TrackLayoutManager
Returns:
the track index

onRemoveTrack

public void onRemoveTrack(Track track)
Description copied from interface: TrackUpdateListener
When the track is removed from the group

Specified by:
onRemoveTrack in interface TrackUpdateListener

onInsertTrack

public void onInsertTrack(Track track)
Description copied from interface: TrackUpdateListener
When a new track is inserted to the group

Specified by:
onInsertTrack in interface TrackUpdateListener

onInsertTrack

public void onInsertTrack(Track track,
                          int beforeIndex)
Description copied from interface: TrackUpdateListener
When a new track is inserted to the group

Specified by:
onInsertTrack in interface TrackUpdateListener

onAddTrackGroup

public void onAddTrackGroup(TrackGroup trackGroup)
Specified by:
onAddTrackGroup in interface TrackUpdateListener

onRemoveTrackGroup

public void onRemoveTrackGroup(TrackGroup trackGroup)
Specified by:
onRemoveTrackGroup in interface TrackUpdateListener

onResizeTrack

public void onResizeTrack()
Description copied from interface: TrackUpdateListener
When the size of a track changes

Specified by:
onResizeTrack in interface TrackUpdateListener

onLoad

protected void onLoad()
Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget

onButtonClick

public void onButtonClick(WindowBox window,
                          int buttonType)
Description copied from interface: WindowListener
An event handler when a window buton is clicked

Specified by:
onButtonClick in interface WindowListener
Parameters:
window - sender
buttonType - one of WindowBox.BUTTON_CONFIG, WindowBox.BUTTON_PACK, WindowBox.BUTTON_MINIMIZE, WindowBox.BUTTON_CLOSE

onResizeWindow

public void onResizeWindow(WindowBox window,
                           int newWindowSize)
Specified by:
onResizeWindow in interface WindowListener

onResizeTrackWindow

public void onResizeTrackWindow(int newWindowSize)
Specified by:
onResizeTrackWindow in interface TrackUpdateListener


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