comparison artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java @ 7119:988dde49ae65

Fix area label rendering. Previously the showarealabel setting was neither parsed nor used to decide if the arealabel should be drawn. It is mostly off but enabled for Cross Sections. It is now also shown in the style editors in case someone got used to it ;)
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 24 Sep 2013 18:13:51 +0200
parents 234b1a3b527d
children 4dbbdf0c8b2c
comparison
equal deleted inserted replaced
7118:4605d6ca4ee9 7119:988dde49ae65
71 71
72 public final static String AREA_TRANSPARENCY = "areatransparency"; 72 public final static String AREA_TRANSPARENCY = "areatransparency";
73 73
74 public final static String SHOW_AREA = "showarea"; 74 public final static String SHOW_AREA = "showarea";
75 75
76 public final static String SHOW_AREA_LABEL = "showarealabel";
77
76 public final static String SHOW_MIDDLE_HEIGHT = "showmiddleheight"; 78 public final static String SHOW_MIDDLE_HEIGHT = "showmiddleheight";
77 79
78 public final static String LABEL_FONT_COLOR = "labelfontcolor"; 80 public final static String LABEL_FONT_COLOR = "labelfontcolor";
79 81
80 public final static String LABEL_FONT_SIZE = "labelfontsize"; 82 public final static String LABEL_FONT_SIZE = "labelfontsize";
411 } 413 }
412 414
413 415
414 public boolean parseShowArea() { 416 public boolean parseShowArea() {
415 String show = getValue(SHOW_AREA); 417 String show = getValue(SHOW_AREA);
418 return parseBoolean(show, false);
419 }
420
421 public boolean parseShowAreaLabel() {
422 String show = getValue(SHOW_AREA_LABEL);
416 return parseBoolean(show, false); 423 return parseBoolean(show, false);
417 } 424 }
418 425
419 public boolean parseShowPointLabel() { 426 public boolean parseShowPointLabel() {
420 String show = getValue(SHOW_POINT_LABEL); 427 String show = getValue(SHOW_POINT_LABEL);

http://dive4elements.wald.intevation.org