comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartFactory.java @ 221:21152e1bf325

Implemented the special case for TimeGaps in Meshes issue45 gnv-artifacts/trunk@282 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 03 Nov 2009 11:46:30 +0000
parents 3dcd2b0b456e
children 219e9666f590
comparison
equal deleted inserted replaced
220:ee2d4134d0b3 221:21152e1bf325
401 int pStart ,int pEnd, 401 int pStart ,int pEnd,
402 int gapID, Collection<TimeGap> timeGaps){ 402 int gapID, Collection<TimeGap> timeGaps){
403 long gap = 0; 403 long gap = 0;
404 404
405 if (gapID < 0 || gapID >= 99){ 405 if (gapID < 0 || gapID >= 99){
406 if (pEnd-pStart < 60) 406
407 gap = (3/(pEnd-pStart)) * (dEnd.getTime() - dStart.getTime()); 407 if (gapID == -1){ // Mesh
408 gap = Long.MAX_VALUE; // Es gibt keine Lücken in Netzen.
409 }else if (pEnd-pStart < 60){
410 gap = (3/(pEnd-pStart)) * (dEnd.getTime() - dStart.getTime());
411 }
408 }else{ 412 }else{
409 413
410 Iterator<TimeGap> it = timeGaps.iterator(); 414 Iterator<TimeGap> it = timeGaps.iterator();
411 415
412 while (it.hasNext()){ 416 while (it.hasNext()){

http://dive4elements.wald.intevation.org