View Javadoc

1   /*--------------------------------------------------------------------------
2    *  Copyright 2007 utgenome.org
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *--------------------------------------------------------------------------*/
16  //--------------------------------------
17  // GenomeBrowser Project
18  //
19  // DebugToolBoxTrack.java
20  // Since: Jun 14, 2007
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client.track.lib.debug;
26  
27  import org.utgenome.gwt.utgb.client.track.Track;
28  import org.utgenome.gwt.utgb.client.track.lib.ToolBoxTrack;
29  import org.utgenome.gwt.utgb.client.track.lib.old.OldUTGBAddTrackTrack;
30  import org.utgenome.gwt.utgb.client.track.lib.old.OperationTrack;
31  
32  /**
33   * A tool box for debug purpose tracks
34   * 
35   * @author leo
36   * 
37   */
38  public class DebugToolBoxTrack extends ToolBoxTrack {
39  	public static TrackFactory factory() {
40  		return new TrackFactory() {
41  			public Track newInstance() {
42  				return new DebugToolBoxTrack();
43  			}
44  		};
45  	}
46  
47  	public DebugToolBoxTrack() {
48  		super("Debug Toolbox");
49  	}
50  
51  	public void setupToolbox() {
52  		addTrackFactory("Operation", OperationTrack.factory("http://medaka3.gi.k.u-tokyo.ac.jp/~kobayashi/EnsemblPredGene/EnsemblTranscript.xml"));
53  		addTrackFactory("Property", PropertyEditTrack.factory());
54  		addTrackFactory("URL Query", URLQueryArgumentTrack.factory());
55  		addTrackFactory("Legacy Track Loader", OldUTGBAddTrackTrack.factory());
56  	}
57  
58  }