org.utgenome.gwt.utgb.client.track.lib
Class TrackTreeTrack

java.lang.Object
  extended by org.utgenome.gwt.utgb.client.track.TrackBase
      extended by org.utgenome.gwt.utgb.client.track.lib.TrackTreeTrack
All Implemented Interfaces:
Track, TrackEntry, TrackGroupPropertyChangeListener, TrackUpdateListener

public class TrackTreeTrack
extends TrackBase
implements TrackUpdateListener


Nested Class Summary
 
Nested classes/interfaces inherited from class org.utgenome.gwt.utgb.client.track.TrackBase
TrackBase.TrackFrameConfig
 
Nested classes/interfaces inherited from interface org.utgenome.gwt.utgb.client.track.Track
Track.TrackFactory
 
Field Summary
 
Fields inherited from class org.utgenome.gwt.utgb.client.track.TrackBase
_frame, _trackGroup, _trackInfo, frameConfig
 
Constructor Summary
TrackTreeTrack()
           
TrackTreeTrack(String trackName)
           
TrackTreeTrack(TrackInfo trackInfo)
           
 
Method Summary
 void draw()
          draw the track widget
static Track.TrackFactory factory()
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
 void onAddTrackGroup(TrackGroup trackGroup)
           
 void onDetachedFromTrackGroup(TrackGroup trackGroup)
           
 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
 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 saveProperties(CanonicalProperties saveData)
          Override this method to save internal state of the track into a Properties object
 void setUp(TrackFrame trackFrame, TrackGroup group)
          This method is invoked when TrackFrame and TrackGroup for this track become ready, that is, the track is drawable.
 
Methods inherited from class org.utgenome.gwt.utgb.client.track.TrackBase
beforeChangeTrackWindow, error, getBrowserService, getClassName, getConfig, getCoordinate, getDefaultWindowHeight, getFrame, getMinimumWindowHeight, getName, getTrackGroup, getTrackGroupProperty, getTrackGroupProperty, getTrackInfo, getTrackWindow, isInitialized, isTrack, isTrackGroup, loadView, onChange, onChangeTrackConfig, onChangeTrackGroupProperty, onChangeTrackHeight, onChangeTrackWindow, refresh, resolvePropertyValues, restoreProperties, setCenterOfTrackWindow, setConfig, setFrame, setTrackGroup, setTrackGroupProperty, toView, toXML, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackTreeTrack

public TrackTreeTrack()

TrackTreeTrack

public TrackTreeTrack(String trackName)

TrackTreeTrack

public TrackTreeTrack(TrackInfo trackInfo)
Method Detail

factory

public static Track.TrackFactory factory()

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()
Specified by:
getWidget in interface Track
Returns:
the track widget

draw

public void draw()
Description copied from interface: Track
draw the track widget

Specified by:
draw in interface Track
Overrides:
draw in class TrackBase

setUp

public void setUp(TrackFrame trackFrame,
                  TrackGroup group)
Description copied from interface: Track
This method is invoked when TrackFrame and TrackGroup for this track become ready, that is, the track is drawable. Override this method to write initialization codes for your tracks.

Specified by:
setUp in interface Track
Overrides:
setUp in class TrackBase
group - the TrackGroup of this track

onAddTrackGroup

public void onAddTrackGroup(TrackGroup trackGroup)
Specified by:
onAddTrackGroup 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

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

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

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

saveProperties

public void saveProperties(CanonicalProperties saveData)
Description copied from class: TrackBase
Override this method to save internal state of the track into a Properties object

Specified by:
saveProperties in interface Track
Overrides:
saveProperties in class TrackBase

onResizeTrackWindow

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

onDetachedFromTrackGroup

public void onDetachedFromTrackGroup(TrackGroup trackGroup)


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