comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 2906:1780841d79af

Added navigation to fix analysis charts. flys-client/trunk@4673 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 15 Jun 2012 12:13:09 +0000
parents 51ed89b754ae
children 725470fc57d2
comparison
equal deleted inserted replaced
2905:51ed89b754ae 2906:1780841d79af
116 116
117 protected int artifactsQueue; 117 protected int artifactsQueue;
118 protected int recommendationQueue; 118 protected int recommendationQueue;
119 protected Stack<Recommendation> newRecommendations; 119 protected Stack<Recommendation> newRecommendations;
120 120
121 /** Values for fix analysis charts*/
122 protected double currentKm;
123 protected double minKm;
124 protected double maxKm;
125 protected double steps;
121 126
122 /** 127 /**
123 * This constructor creates a new CollectionView that is used to display the 128 * This constructor creates a new CollectionView that is used to display the
124 * <i>collection</i>. 129 * <i>collection</i>.
125 */ 130 */
138 flys, this, messages.new_project()); 143 flys, this, messages.new_project());
139 this.artifactsQueue = 0; 144 this.artifactsQueue = 0;
140 this.recommendationQueue = 0; 145 this.recommendationQueue = 0;
141 this.newRecommendations = new Stack<Recommendation>(); 146 this.newRecommendations = new Stack<Recommendation>();
142 147
148 this.currentKm = -1d;
149 this.minKm = -1d;
150 this.maxKm = -1d;
151 this.steps = -1d;
152
143 addCollectionChangeHandler(this); 153 addCollectionChangeHandler(this);
144 addCollectionChangeHandler(parameterList); 154 addCollectionChangeHandler(parameterList);
145 addCollectionChangeHandler(flys); 155 addCollectionChangeHandler(flys);
146 addOutputModesChangeHandler(this); 156 addOutputModesChangeHandler(this);
147 addOutputModesChangeHandler(parameterList); 157 addOutputModesChangeHandler(parameterList);
162 this.tabs = new TabSet(); 172 this.tabs = new TabSet();
163 this.outputTabs = new HashMap<String, OutputTab>(); 173 this.outputTabs = new HashMap<String, OutputTab>();
164 this.handlers = new ArrayList<CollectionChangeHandler>(); 174 this.handlers = new ArrayList<CollectionChangeHandler>();
165 this.outHandlers = new ArrayList<OutputModesChangeHandler>(); 175 this.outHandlers = new ArrayList<OutputModesChangeHandler>();
166 this.layout = new VLayout(); 176 this.layout = new VLayout();
177
178 this.currentKm = -1d;
179 this.minKm = -1d;
180 this.maxKm = -1d;
181 this.steps = -1d;
167 182
168 if (artifact != null) { 183 if (artifact != null) {
169 this.parameterList = new ParameterList( 184 this.parameterList = new ParameterList(
170 flys, 185 flys,
171 this, 186 this,
677 692
678 693
679 public void registerTabHandler(TabSelectedHandler tse) { 694 public void registerTabHandler(TabSelectedHandler tse) {
680 tabs.addTabSelectedHandler(tse); 695 tabs.addTabSelectedHandler(tse);
681 } 696 }
697
698
699 public void setCurrentKm(double currentKm) {
700 this.currentKm = currentKm;
701 }
702
703 public double getCurrentKm() {
704 return this.currentKm;
705 }
706
707 public void setMinKm(double km) {
708 this.minKm = km;
709 }
710
711 public double getMinKm() {
712 return this.minKm;
713 }
714
715 public void setMaxKm(double km) {
716 this.maxKm = km;
717 }
718
719 public double getMaxKm() {
720 return this.maxKm;
721 }
722
723 public void setSteps(double step) {
724 this.steps = step;
725 }
726
727 public double getSteps() {
728 return this.steps;
729 }
682 } 730 }
683 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 731 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org