Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalProfileChart.java @ 778:9a828e5a2390
Removed trailing whitespace
gnv-artifacts/trunk@851 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 07:58:51 +0000 |
parents | 79401c871da4 |
children | b1f5f2a8840f |
comparison
equal
deleted
inserted
replaced
777:8009961db1cb | 778:9a828e5a2390 |
---|---|
56 * Constant used for gap detection in @see #addGaps. Its value is {@value}. | 56 * Constant used for gap detection in @see #addGaps. Its value is {@value}. |
57 */ | 57 */ |
58 protected final int GAP_MAX_VALUES = 60; | 58 protected final int GAP_MAX_VALUES = 60; |
59 | 59 |
60 /** | 60 /** |
61 * Map to store max ranges of each parameter | 61 * Map to store max ranges of each parameter |
62 * (org.jfree.chart.axis.Axis.setAutoRange(true) doesn't seem to work | 62 * (org.jfree.chart.axis.Axis.setAutoRange(true) doesn't seem to work |
63 * properly. | 63 * properly. |
64 */ | 64 */ |
65 protected Map values; | 65 protected Map values; |
66 | 66 |
67 | 67 |
390 Series series, | 390 Series series, |
391 int startPos, | 391 int startPos, |
392 int endPos | 392 int endPos |
393 ) { | 393 ) { |
394 String axis = null; | 394 String axis = null; |
395 | 395 |
396 if (results.length > (startPos+1)) { | 396 if (results.length > (startPos+1)) { |
397 axis = getDependendAxisName( | 397 axis = getDependendAxisName( |
398 results[startPos], | 398 results[startPos], |
399 results[startPos+1] | 399 results[startPos+1] |
400 ); | 400 ); |
480 } | 480 } |
481 } | 481 } |
482 | 482 |
483 | 483 |
484 /** | 484 /** |
485 * Simple method to detect gaps. A gap is detected if the delta between two | 485 * Simple method to detect gaps. A gap is detected if the delta between two |
486 * data points (current, last) is bigger than <code>PERCENTAGE</code> percent | 486 * data points (current, last) is bigger than <code>PERCENTAGE</code> percent |
487 * of delta of start and end. | 487 * of delta of start and end. |
488 * <br> | 488 * <br> |
489 * (smallDelta > delta / 100 * PERCENTAGE) | 489 * (smallDelta > delta / 100 * PERCENTAGE) |
490 * | 490 * |
491 * @param start First data point value in a series. | 491 * @param start First data point value in a series. |
492 * @param end Last data point value in a series. | 492 * @param end Last data point value in a series. |
535 double smallDelta = Math.abs(current - last); | 535 double smallDelta = Math.abs(current - last); |
536 | 536 |
537 return (smallDelta > (3.0 / (count - 1) * delta)); | 537 return (smallDelta > (3.0 / (count - 1) * delta)); |
538 } | 538 } |
539 | 539 |
540 | 540 |
541 /** | 541 /** |
542 * Method used to detect gaps between two data points grids. If the delta | 542 * Method used to detect gaps between two data points grids. If the delta |
543 * between current and last is bigger than <code>GAP_MAX_LEVEL</code>, a gap | 543 * between current and last is bigger than <code>GAP_MAX_LEVEL</code>, a gap |
544 * is detected. | 544 * is detected. |
545 * | 545 * |
561 } | 561 } |
562 | 562 |
563 | 563 |
564 /** | 564 /** |
565 * This method returns the key which is used to retrieve the y-value served | 565 * This method returns the key which is used to retrieve the y-value served |
566 * by a <code>Result</code> object. | 566 * by a <code>Result</code> object. |
567 * | 567 * |
568 * @param first <code>Result</code> object - not used in this class. | 568 * @param first <code>Result</code> object - not used in this class. |
569 * @param second <code>Result</code> object - not used in this class. | 569 * @param second <code>Result</code> object - not used in this class. |
570 * | 570 * |
571 * @return the string "KPOSITION" | 571 * @return the string "KPOSITION" |