comparison artifacts/src/main/java/org/dive4elements/river/jfree/XYStyle.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 e4606eae8ea5
children 094ed9d1f2ad 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
47 /** 47 /**
48 * Applies line color, size and type attributes to renderer, also 48 * Applies line color, size and type attributes to renderer, also
49 * whether to draw lines and/or points. 49 * whether to draw lines and/or points.
50 */ 50 */
51 @Override 51 @Override
52 public XYLineAndShapeRenderer applyTheme(XYLineAndShapeRenderer r, int idx) { 52 public XYLineAndShapeRenderer applyTheme(
53 XYLineAndShapeRenderer r,
54 int idx
55 ) {
53 this.renderer = r; 56 this.renderer = r;
54 if (shape != null) { 57 if (shape != null) {
55 r.setShape(shape); 58 r.setShape(shape);
56 } 59 }
57 if (theme == null) { 60 if (theme == null) {
75 applyLineLabelFont(r, idx); 78 applyLineLabelFont(r, idx);
76 applyLineLabelColor(r, idx); 79 applyLineLabelColor(r, idx);
77 applyLineLabelBGColor(r, idx); 80 applyLineLabelBGColor(r, idx);
78 81
79 // Point label styles 82 // Point label styles
80 // TODO: Currently point label are annotations and are not drawn this way 83 // TODO: Currently point label are annotations and
84 // are not drawn this way
81 /* 85 /*
82 applyShowPointLabelBG(r, idx); 86 applyShowPointLabelBG(r, idx);
83 applyLinePointFont(r, idx); 87 applyLinePointFont(r, idx);
84 applyLinePointColor(r, idx); 88 applyLinePointColor(r, idx);
85 applyLinePointBGColor(r, idx);*/ 89 applyLinePointBGColor(r, idx);*/
121 protected void applyShowLineLabelBG(XYLineAndShapeRenderer r, int idx) { 125 protected void applyShowLineLabelBG(XYLineAndShapeRenderer r, int idx) {
122 if (!(r instanceof EnhancedLineAndShapeRenderer)) { 126 if (!(r instanceof EnhancedLineAndShapeRenderer)) {
123 return; 127 return;
124 } 128 }
125 boolean showLabelLine = theme.parseLabelShowBackground(); 129 boolean showLabelLine = theme.parseLabelShowBackground();
126 ((EnhancedLineAndShapeRenderer)r).setShowLineLabelBG(idx, showLabelLine); 130 ((EnhancedLineAndShapeRenderer)r).setShowLineLabelBG(
131 idx, showLabelLine);
127 } 132 }
128 133
129 /** Tell the renderer which font (and -size and -style) to use for 134 /** Tell the renderer which font (and -size and -style) to use for
130 * linelabels. */ 135 * linelabels. */
131 protected void applyLineLabelFont(XYLineAndShapeRenderer r, int idx) { 136 protected void applyLineLabelFont(XYLineAndShapeRenderer r, int idx) {

http://dive4elements.wald.intevation.org