Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java @ 7106:ed8623b989f3 generator-refactoring
Minor cleanup / doc
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 24 Sep 2013 11:26:45 +0200 |
parents | eb3a2bc5d591 |
children | 564033adf9c6 |
comparison
equal
deleted
inserted
replaced
7105:ab57b6eee71c | 7106:ed8623b989f3 |
---|---|
188 | 188 |
189 /** | 189 /** |
190 * Return left most data points x value (on first axis). | 190 * Return left most data points x value (on first axis). |
191 */ | 191 */ |
192 protected double getLeftX() { | 192 protected double getLeftX() { |
193 if (isInverted()) { | 193 if (inverted) { |
194 return (Double)getXBounds(0).getUpper(); | 194 return (Double)getXBounds(0).getUpper(); |
195 } | 195 } |
196 return (Double)getXBounds(0).getLower(); | 196 return (Double)getXBounds(0).getLower(); |
197 } | 197 } |
198 | 198 |
199 | 199 |
200 /** | 200 /** |
201 * Return right most data points x value (on first axis). | 201 * Return right most data points x value (on first axis). |
202 */ | 202 */ |
203 protected double getRightX() { | 203 protected double getRightX() { |
204 if (isInverted()) { | 204 if (inverted) { |
205 return (Double)getXBounds(0).getLower(); | 205 return (Double)getXBounds(0).getLower(); |
206 } | 206 } |
207 return (Double)getXBounds(0).getUpper(); | 207 return (Double)getXBounds(0).getUpper(); |
208 } | 208 } |
209 | 209 |
833 } | 833 } |
834 | 834 |
835 | 835 |
836 /** | 836 /** |
837 * Adjusts the axes of a plot. This method sets the <i>labelFont</i> of the | 837 * Adjusts the axes of a plot. This method sets the <i>labelFont</i> of the |
838 * X axis and applies the inversion if isInverted. | 838 * X axis and applies the inversion if inverted is true. |
839 * | 839 * |
840 * (Duplicate in TimeseriesChartGenerator) | 840 * (Duplicate in TimeseriesChartGenerator) |
841 * | 841 * |
842 * @param plot The XYPlot of the chart. | 842 * @param plot The XYPlot of the chart. |
843 */ | 843 */ |
960 public boolean isInverted() { | 960 public boolean isInverted() { |
961 return inverted; | 961 return inverted; |
962 } | 962 } |
963 | 963 |
964 | 964 |
965 /** Set to true if x axis has been inverted. */ | 965 /** Set to true if x axis should be inverted. |
966 * This can not be set to false afterwards. */ | |
966 public void setInverted(boolean inverted) { | 967 public void setInverted(boolean inverted) { |
967 this.inverted = inverted; | 968 this.inverted = inverted; |
968 } | 969 } |
969 | 970 |
970 @Override | 971 @Override |