comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/XYStyle.java @ 3405:b0ba96bbf01d

Use Integer.parseInt() instead of Integer.valueOf() + Autounboxing. flys-artifacts/trunk@5057 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 19 Jul 2012 09:37:52 +0000
parents 698d09930329
children 0b9b2a0c4e64
comparison
equal deleted inserted replaced
3404:d7b065b88f10 3405:b0ba96bbf01d
123 /** Set stroke of series. */ 123 /** Set stroke of series. */
124 protected void applyLineSize(XYLineAndShapeRenderer r, int idx) { 124 protected void applyLineSize(XYLineAndShapeRenderer r, int idx) {
125 int size = ThemeUtil.parseLineWidth(theme); 125 int size = ThemeUtil.parseLineWidth(theme);
126 r.setSeriesStroke( 126 r.setSeriesStroke(
127 idx, 127 idx,
128 new BasicStroke(Integer.valueOf(size))); 128 new BasicStroke(size));
129 } 129 }
130 130
131 131
132 /** Set stroke strength of series. */ 132 /** Set stroke strength of series. */
133 protected void applyLineType(XYLineAndShapeRenderer r, int idx) { 133 protected void applyLineType(XYLineAndShapeRenderer r, int idx) {
139 return; 139 return;
140 } 140 }
141 141
142 r.setSeriesStroke( 142 r.setSeriesStroke(
143 idx, 143 idx,
144 new BasicStroke(Integer.valueOf(size), 144 new BasicStroke(size,
145 BasicStroke.CAP_BUTT, 145 BasicStroke.CAP_BUTT,
146 BasicStroke.JOIN_ROUND, 146 BasicStroke.JOIN_ROUND,
147 1.0f, 147 1.0f,
148 dashes, 148 dashes,
149 0.0f)); 149 0.0f));

http://dive4elements.wald.intevation.org