comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java @ 3076:5642a83420f2

FLYS artifacts: Removed trailing whitespace. flys-artifacts/trunk@4670 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 15 Jun 2012 09:30:07 +0000
parents f0cc556eda29
children 1edc17b0d79d
comparison
equal deleted inserted replaced
3075:db9e2bb34707 3076:5642a83420f2
60 60
61 public static final String DEFAULT_FORMAT = "png"; 61 public static final String DEFAULT_FORMAT = "png";
62 62
63 // TODO: Load fancy image from resources. 63 // TODO: Load fancy image from resources.
64 public static final byte [] EMPTY = { 64 public static final byte [] EMPTY = {
65 (byte)0x89, (byte)0x50, (byte)0x4e, (byte)0x47, 65 (byte)0x89, (byte)0x50, (byte)0x4e, (byte)0x47,
66 (byte)0x0d, (byte)0x0a, (byte)0x1a, (byte)0x0a, 66 (byte)0x0d, (byte)0x0a, (byte)0x1a, (byte)0x0a,
67 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0d, 67 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x0d,
68 (byte)0x49, (byte)0x48, (byte)0x44, (byte)0x52, 68 (byte)0x49, (byte)0x48, (byte)0x44, (byte)0x52,
69 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01, 69 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01,
70 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01, 70 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01,
71 (byte)0x08, (byte)0x00, (byte)0x00, (byte)0x00, 71 (byte)0x08, (byte)0x00, (byte)0x00, (byte)0x00,
72 (byte)0x00, (byte)0x3a, (byte)0x7e, (byte)0x9b, 72 (byte)0x00, (byte)0x3a, (byte)0x7e, (byte)0x9b,
73 (byte)0x55, (byte)0x00, (byte)0x00, (byte)0x00, 73 (byte)0x55, (byte)0x00, (byte)0x00, (byte)0x00,
74 (byte)0x01, (byte)0x73, (byte)0x52, (byte)0x47, 74 (byte)0x01, (byte)0x73, (byte)0x52, (byte)0x47,
75 (byte)0x42, (byte)0x00, (byte)0xae, (byte)0xce, 75 (byte)0x42, (byte)0x00, (byte)0xae, (byte)0xce,
76 (byte)0x1c, (byte)0xe9, (byte)0x00, (byte)0x00, 76 (byte)0x1c, (byte)0xe9, (byte)0x00, (byte)0x00,
77 (byte)0x00, (byte)0x09, (byte)0x70, (byte)0x48, 77 (byte)0x00, (byte)0x09, (byte)0x70, (byte)0x48,
78 (byte)0x59, (byte)0x73, (byte)0x00, (byte)0x00, 78 (byte)0x59, (byte)0x73, (byte)0x00, (byte)0x00,
79 (byte)0x0b, (byte)0x13, (byte)0x00, (byte)0x00, 79 (byte)0x0b, (byte)0x13, (byte)0x00, (byte)0x00,
80 (byte)0x0b, (byte)0x13, (byte)0x01, (byte)0x00, 80 (byte)0x0b, (byte)0x13, (byte)0x01, (byte)0x00,
81 (byte)0x9a, (byte)0x9c, (byte)0x18, (byte)0x00, 81 (byte)0x9a, (byte)0x9c, (byte)0x18, (byte)0x00,
82 (byte)0x00, (byte)0x00, (byte)0x07, (byte)0x74, 82 (byte)0x00, (byte)0x00, (byte)0x07, (byte)0x74,
83 (byte)0x49, (byte)0x4d, (byte)0x45, (byte)0x07, 83 (byte)0x49, (byte)0x4d, (byte)0x45, (byte)0x07,
84 (byte)0xdc, (byte)0x04, (byte)0x04, (byte)0x10, 84 (byte)0xdc, (byte)0x04, (byte)0x04, (byte)0x10,
85 (byte)0x30, (byte)0x15, (byte)0x7d, (byte)0x77, 85 (byte)0x30, (byte)0x15, (byte)0x7d, (byte)0x77,
86 (byte)0x36, (byte)0x0b, (byte)0x00, (byte)0x00, 86 (byte)0x36, (byte)0x0b, (byte)0x00, (byte)0x00,
87 (byte)0x00, (byte)0x08, (byte)0x74, (byte)0x45, 87 (byte)0x00, (byte)0x08, (byte)0x74, (byte)0x45,
88 (byte)0x58, (byte)0x74, (byte)0x43, (byte)0x6f, 88 (byte)0x58, (byte)0x74, (byte)0x43, (byte)0x6f,
89 (byte)0x6d, (byte)0x6d, (byte)0x65, (byte)0x6e, 89 (byte)0x6d, (byte)0x6d, (byte)0x65, (byte)0x6e,
90 (byte)0x74, (byte)0x00, (byte)0xf6, (byte)0xcc, 90 (byte)0x74, (byte)0x00, (byte)0xf6, (byte)0xcc,
91 (byte)0x96, (byte)0xbf, (byte)0x00, (byte)0x00, 91 (byte)0x96, (byte)0xbf, (byte)0x00, (byte)0x00,
92 (byte)0x00, (byte)0x0a, (byte)0x49, (byte)0x44, 92 (byte)0x00, (byte)0x0a, (byte)0x49, (byte)0x44,
93 (byte)0x41, (byte)0x54, (byte)0x08, (byte)0xd7, 93 (byte)0x41, (byte)0x54, (byte)0x08, (byte)0xd7,
94 (byte)0x63, (byte)0xf8, (byte)0x0f, (byte)0x00, 94 (byte)0x63, (byte)0xf8, (byte)0x0f, (byte)0x00,
95 (byte)0x01, (byte)0x01, (byte)0x01, (byte)0x00, 95 (byte)0x01, (byte)0x01, (byte)0x01, (byte)0x00,
96 (byte)0x1b, (byte)0xb6, (byte)0xee, (byte)0x56, 96 (byte)0x1b, (byte)0xb6, (byte)0xee, (byte)0x56,
97 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, 97 (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00,
98 (byte)0x49, (byte)0x45, (byte)0x4e, (byte)0x44, 98 (byte)0x49, (byte)0x45, (byte)0x4e, (byte)0x44,
99 (byte)0xae, (byte)0x42, (byte)0x60, (byte)0x82 99 (byte)0xae, (byte)0x42, (byte)0x60, (byte)0x82
100 }; 100 };
101 101
102 private static final Output empty() { 102 private static final Output empty() {
103 return new Output(EMPTY, "image/png"); 103 return new Output(EMPTY, "image/png");
165 return encode(chart, extent, format); 165 return encode(chart, extent, format);
166 } 166 }
167 167
168 protected static Output encode( 168 protected static Output encode(
169 JFreeChart chart, 169 JFreeChart chart,
170 Dimension extent, 170 Dimension extent,
171 String format 171 String format
172 ) { 172 ) {
173 BufferedImage image = chart.createBufferedImage( 173 BufferedImage image = chart.createBufferedImage(
174 extent.width, extent.height, 174 extent.width, extent.height,
175 Transparency.BITMASK, 175 Transparency.BITMASK,

http://dive4elements.wald.intevation.org