Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/TimeseriesChartGenerator.java @ 8489:be5ce2882708
Time series chart: bounds cannot allways be assumed to be given.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 02 Dec 2014 15:25:34 +0100 |
parents | 6dfc3a1fc70d |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8488:a63825ab9df9 | 8489:be5ce2882708 |
---|---|
851 axisSection.setIdentifier(identifier); | 851 axisSection.setIdentifier(identifier); |
852 axisSection.setLabel(getXAxisLabel()); | 852 axisSection.setLabel(getXAxisLabel()); |
853 axisSection.setFontSize(14); | 853 axisSection.setFontSize(14); |
854 axisSection.setFixed(false); | 854 axisSection.setFixed(false); |
855 | 855 |
856 axisSection.setUpperTimeRange(getRightX()); | 856 long rightX = xBounds.isEmpty() ? 0 : getRightX(); |
857 axisSection.setLowerTimeRange(getLeftX()); | 857 long leftX = xBounds.isEmpty() ? 0 : getLeftX(); |
858 axisSection.setUpperTimeRange(rightX); | |
859 axisSection.setLowerTimeRange(leftX); | |
858 | 860 |
859 axisSections.add(axisSection); | 861 axisSections.add(axisSection); |
860 | 862 |
861 return axisSections; | 863 return axisSections; |
862 } | 864 } |