org.utgenome.gwt.utgb.client.track.lib
Class RulerTrack
java.lang.Object
org.utgenome.gwt.utgb.client.track.TrackBase
org.utgenome.gwt.utgb.client.track.lib.RulerTrack
- All Implemented Interfaces:
- RangeSelectable, Track, TrackEntry, TrackGroupPropertyChangeListener
public class RulerTrack
- extends TrackBase
- implements RangeSelectable
RulerTrack
- 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, refresh, resolvePropertyValues, 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 |
RulerTrack
public RulerTrack()
RulerTrack
public RulerTrack(int windowLeftMargin)
factory
public static Track.TrackFactory factory()
clear
public void clear()
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
getDefaultWindowHeight
public int getDefaultWindowHeight()
- Specified by:
getDefaultWindowHeight
in interface Track
- Overrides:
getDefaultWindowHeight
in class TrackBase
- Returns:
- default height of the track window
onChangeTrackWindow
public void onChangeTrackWindow(TrackWindow newWindow)
- Description copied from interface:
Track
- An event handler when the track window location has changed
- Specified by:
onChangeTrackWindow
in interface Track
- Overrides:
onChangeTrackWindow
in class TrackBase
getAbsoluteFocusPanel
public AbsoluteFocusPanel getAbsoluteFocusPanel()
- Specified by:
getAbsoluteFocusPanel
in interface RangeSelectable
onRangeSelect
public void onRangeSelect(int x1OnTrackWindow,
int x2OnTrackWindow)
- Specified by:
onRangeSelect
in interface RangeSelectable
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
restoreProperties
public void restoreProperties(CanonicalProperties properties)
- Description copied from class:
TrackBase
- Override this method to restore internal state of the track
- Specified by:
restoreProperties
in interface Track
- Overrides:
restoreProperties
in class TrackBase
Copyright © 2007-2012 utgenome.org. All Rights Reserved.