org.utgenome.gwt.utgb.client.track.lib
Class ToolBoxTrack
java.lang.Object
org.utgenome.gwt.utgb.client.track.TrackBase
org.utgenome.gwt.utgb.client.track.lib.ToolBoxTrack
- All Implemented Interfaces:
- Track, TrackEntry, TrackGroupPropertyChangeListener
- Direct Known Subclasses:
- DebugToolBoxTrack
public class ToolBoxTrack
- extends TrackBase
ToolBoxTrack has a list of Tracks. When you click one of the elements, the corresponding
Track will be inserted to the TrackGroup in which the ToolBoxTrack belongs.
- Author:
- leo
| Methods inherited from class org.utgenome.gwt.utgb.client.track.TrackBase |
beforeChangeTrackWindow, error, getBrowserService, getClassName, getConfig, getCoordinate, getFrame, getMinimumWindowHeight, getName, getTrackGroup, getTrackGroupProperty, getTrackGroupProperty, getTrackInfo, getTrackWindow, isInitialized, isTrack, isTrackGroup, loadView, onChange, onChangeTrackConfig, onChangeTrackGroupProperty, onChangeTrackHeight, onChangeTrackWindow, refresh, resolvePropertyValues, restoreProperties, saveProperties, 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 |
ToolBoxTrack
public ToolBoxTrack()
ToolBoxTrack
public ToolBoxTrack(String trackName)
factory
public static Track.TrackFactory factory()
setupToolbox
public void setupToolbox()
- override this method to implement your own tool box
addTrackFactory
public void addTrackFactory(String label,
Track.TrackFactory trackFactory)
getDefaultWindowHeight
public int getDefaultWindowHeight()
- Specified by:
getDefaultWindowHeight in interface Track- Overrides:
getDefaultWindowHeight in class TrackBase
- Returns:
- default height of the track window
getWidget
public com.google.gwt.user.client.ui.Widget getWidget()
- 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
Copyright © 2007-2012 utgenome.org. All Rights Reserved.