comparison flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java @ 3286:f062b5a90e26

Add showpointlabel style attribute flys-artifacts/trunk@4948 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Christian Lins <christian.lins@intevation.de>
date Thu, 12 Jul 2012 11:51:32 +0000
parents 4a70525c5b0d
children d7b065b88f10
comparison
equal deleted inserted replaced
3285:dc083f61253a 3286:f062b5a90e26
307 protected void doQWDTextAnnotations(Map<Integer, int[]> annoIdxMap, 307 protected void doQWDTextAnnotations(Map<Integer, int[]> annoIdxMap,
308 TimeSeriesCollection tsc, QWD[] qwds, Document theme, 308 TimeSeriesCollection tsc, QWD[] qwds, Document theme,
309 boolean visible) { 309 boolean visible) {
310 logger.debug("doQWDTextAnnotation()"); 310 logger.debug("doQWDTextAnnotation()");
311 311
312 if (!ThemeUtil.parseShowLineLabel(theme)) { 312 if (!visible || !ThemeUtil.parseShowPointLabel(theme)) {
313 logger.debug("doQWDTextAnnotation: annotation not visible"); 313 logger.debug("doQWDTextAnnotation: annotation not visible");
314 return; 314 return;
315 } 315 }
316 316
317 List<XYTextAnnotation> textAnnos = new ArrayList<XYTextAnnotation>(); 317 List<XYTextAnnotation> textAnnos = new ArrayList<XYTextAnnotation>();
327 qwd.getDeltaW()); 327 qwd.getDeltaW());
328 textAnnos.add(anno); 328 textAnnos.add(anno);
329 logger.debug("annotation: " + x + "/" + qwd.getDeltaW()); 329 logger.debug("annotation: " + x + "/" + qwd.getDeltaW());
330 } 330 }
331 331
332 if(visible) { 332 FLYSAnnotation flysAnno = new FLYSAnnotation(null, null, null, theme);
333 FLYSAnnotation flysAnno = new FLYSAnnotation(null, null, null, theme); 333 flysAnno.setTextAnnotations(textAnnos);
334 flysAnno.setTextAnnotations(textAnnos); 334 addAnnotations(flysAnno);
335 addAnnotations(flysAnno);
336 }
337 } 335 }
338 336
339 337
340 protected void doReferenceEventsOut( 338 protected void doReferenceEventsOut(
341 FLYSArtifact artifact, 339 FLYSArtifact artifact,

http://dive4elements.wald.intevation.org