Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/jfree/AnnotationHelper.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 | ebf74d92be38 |
children | 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/AnnotationHelper.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/jfree/AnnotationHelper.java Thu Jan 18 20:12:01 2018 +0100 @@ -160,7 +160,8 @@ textStyle.apply(ta); } ta.setY(area.above(0.05d, ta.getY())); - plot.getRenderer().addAnnotation(ta, org.jfree.ui.Layer.FOREGROUND); + plot.getRenderer().addAnnotation( + ta, org.jfree.ui.Layer.FOREGROUND); } } } @@ -196,7 +197,9 @@ if (annotation.atX()) { textAnnotation = new CollisionFreeXYTextAnnotation( - annotation.getText(), annotation.getPos(), area.ofGround(TEXT_OFF)); + annotation.getText(), + annotation.getPos(), + area.ofGround(TEXT_OFF)); // OPTIMIZE externalize the calculation involving PI. //textAnnotation.setRotationAngle(270f*Math.PI/180f); lineAnnotation = createGroundStickAnnotation( @@ -230,7 +233,8 @@ XYLineAnnotation hitLineAnnotation = createStickyLineAnnotation( StickyAxisAnnotation.SimpleAxis.X_AXIS, - annotation.getHitPoint(), annotation.getPos(),// annotation.getHitPoint(), + annotation.getHitPoint(), annotation.getPos(), + // annotation.getHitPoint(), area2, lineStyle); renderer.addAnnotation(hitLineAnnotation, org.jfree.ui.Layer.BACKGROUND); @@ -248,10 +252,13 @@ } else { // Stick to the left y-axis. textAnnotation = new CollisionFreeXYTextAnnotation( - annotation.getText(), area.ofLeft(TEXT_OFF), annotation.getPos()); + annotation.getText(), + area.ofLeft(TEXT_OFF), + annotation.getPos()); textAnnotation.setRotationAnchor(TextAnchor.CENTER_LEFT); textAnnotation.setTextAnchor(TextAnchor.CENTER_LEFT); - lineAnnotation = createLeftStickAnnotation(area, annotation.getPos(), lineStyle); + lineAnnotation = createLeftStickAnnotation( + area, annotation.getPos(), lineStyle); if (!Float.isNaN(annotation.getHitPoint()) && theme != null) { // New line annotation to hit curve. if (theme.parseShowHorizontalLine()) {