1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 package org.utgenome.gwt.utgb.client.bio;
26
27 import java.io.Serializable;
28
29
30
31
32
33
34
35 public class ReadQueryConfig implements Serializable {
36
37
38
39
40 private static final long serialVersionUID = 1L;
41
42 public static enum Layout {
43 PILEUP, COVERAGE
44 }
45
46 public boolean hasCanvasSupport;
47 public Layout layout;
48 public int pixelWidth;
49 public int maxmumNumberOfReadsToDisplay = 500;
50
51
52
53 public String wigPath;
54 public GraphWindow window = GraphWindow.MAX;
55
56 public ReadQueryConfig() {
57 }
58
59 public ReadQueryConfig(int pixelWidth, boolean hasCanvasSupport, Layout layout, int maxmumNumberOfReadsToDisplay, String wigPath) {
60 this(pixelWidth, hasCanvasSupport, layout);
61 this.maxmumNumberOfReadsToDisplay = maxmumNumberOfReadsToDisplay;
62 if (wigPath != null && wigPath.trim().length() != 0)
63 this.wigPath = wigPath;
64 }
65
66 public ReadQueryConfig(int pixelWidth, boolean hasCanvasSupport, Layout layout) {
67 this.pixelWidth = pixelWidth;
68 this.layout = layout;
69 this.hasCanvasSupport = hasCanvasSupport;
70 }
71
72 }