Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/ChartOutputTab.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 4c99b8783e1d |
children | 05405292a7ca |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
68 | 68 |
69 /** The ChartInfo object that provides information about the current | 69 /** The ChartInfo object that provides information about the current |
70 * chart. */ | 70 * chart. */ |
71 protected ChartInfo chartInfo; | 71 protected ChartInfo chartInfo; |
72 | 72 |
73 /** Transformer used to transform image pixels into chart (data) coordinates. */ | 73 /** Transformer used to transform image pixels into chart (data) |
74 * coordinates. */ | |
74 protected Transform2D[] transformer; | 75 protected Transform2D[] transformer; |
75 | 76 |
76 /** The collection view.*/ | 77 /** The collection view.*/ |
77 protected CollectionView view; | 78 protected CollectionView view; |
78 | 79 |
418 public Number[] zoomAxis(Axis axis, int factor) { | 419 public Number[] zoomAxis(Axis axis, int factor) { |
419 GWT.log("Prepare Axis for zooming (factor: " + factor + ")"); | 420 GWT.log("Prepare Axis for zooming (factor: " + factor + ")"); |
420 | 421 |
421 Number min = axis.getMin(); | 422 Number min = axis.getMin(); |
422 Number max = axis.getMax(); | 423 Number max = axis.getMax(); |
423 Number range = isBigger(max, min) ? subtract(max, min) : subtract(min, max); | 424 Number range = isBigger(max, min) |
425 ? subtract(max, min) | |
426 : subtract(min, max); | |
424 | 427 |
425 Number curFrom = axis.getFrom(); | 428 Number curFrom = axis.getFrom(); |
426 Number curTo = axis.getTo(); | 429 Number curTo = axis.getTo(); |
427 | 430 |
428 Number diff = isBigger(curTo, curFrom) | 431 Number diff = isBigger(curTo, curFrom) |