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  // OldUTGBRulerTrack.java
20  // Since: 2007/07/18
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client.track.lib.old;
26  
27  import java.util.HashMap;
28  import java.util.Map;
29  
30  import org.utgenome.gwt.utgb.client.track.Track;
31  
32  public class OldUTGBRulerTrack extends OldUTGBTrack {
33  
34  	public static TrackFactory factory() {
35  		return new TrackFactory() {
36  			Map<String, String> properties = new HashMap<String, String>();
37  
38  			public Track newInstance() {
39  				OldUTGBRulerTrack track = new OldUTGBRulerTrack();
40  				final String descriptionXMLURL = (String) (properties.get("descriptionXMLURL"));
41  				if (descriptionXMLURL != null) {
42  					track.setDescriptionXML(descriptionXMLURL);
43  				}
44  				return track;
45  			}
46  
47  			public void setProperty(String key, String value) {
48  				properties.put(key, value);
49  			}
50  		};
51  	}
52  
53  	public OldUTGBRulerTrack() {
54  	}
55  
56  	public int getDefaultWindowHeight() {
57  		return 10;
58  	}
59  
60  	public int getMinimumWindowHeight() {
61  		return 10;
62  	}
63  
64  }