|
4 | 4 | import java.util.HashMap;
|
5 | 5 | import java.util.List;
|
6 | 6 |
|
| 7 | +import org.danvk.dygraphs.client.DygraphOptions; |
| 8 | +import org.danvk.dygraphs.client.DygraphOptions.SHOW_LEGEND; |
7 | 9 | import org.danvk.dygraphs.client.Dygraphs;
|
8 |
| -import org.danvk.dygraphs.client.Dygraphs.Options.SHOW_LEGEND; |
9 | 10 | import org.danvk.dygraphs.client.events.UnderlayHandler;
|
10 | 11 |
|
11 | 12 | import at.gmi.nordborglab.processingjs.client.Processing;
|
@@ -111,7 +112,7 @@ public enum SHOW_RANGE_SELECTOR {None,Bottom,Top};
|
111 | 112 | protected List<GenomeStat> currentGenomeStats;
|
112 | 113 | protected DataTable stackableGenomeStatsCache = null;
|
113 | 114 | protected HashMap<GenomeStat,DataTable> nonstackableGenomeStatsCache = new HashMap<GenomeStat,DataTable>();
|
114 |
| - protected Dygraphs.Options options = Dygraphs.Options.create(); |
| 115 | + protected DygraphOptions options = DygraphOptions.create(); |
115 | 116 | protected int width_offset = 31;
|
116 | 117 |
|
117 | 118 | private final ScheduledCommand layoutCmd = new ScheduledCommand() {
|
@@ -609,7 +610,7 @@ protected DataView filterStatsToDisplay() {
|
609 | 610 | return view;
|
610 | 611 | }
|
611 | 612 |
|
612 |
| - private Dygraphs.Options createOptions(boolean stepPlot) { |
| 613 | + private DygraphOptions createOptions(boolean stepPlot) { |
613 | 614 |
|
614 | 615 | options.setRollerPeriod(1000);
|
615 | 616 | options.setshowRoller(true);
|
@@ -638,7 +639,8 @@ public void onUnderlay(UnderlayEvent event) {
|
638 | 639 | int zoomStart = processing.getInstance().getZoomStart();
|
639 | 640 | int zoomEnd = processing.getInstance().getZoomEnd();
|
640 | 641 | event.canvas.save();
|
641 |
| - event.canvas.setFillStyle("yellow"); |
| 642 | + event.canvas.setFillStyle("#FFFF00"); |
| 643 | + event.canvas.setStrokeStyle("#000000"); |
642 | 644 | double left = event.dygraph.toDomXCoord(zoomStart);
|
643 | 645 | double right = event.dygraph.toDomXCoord(zoomEnd);
|
644 | 646 | double length = right - left;
|
|
0 commit comments