Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java Tue Sep 24 16:23:18 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/themes/ThemeDocument.java Tue Sep 24 18:13:51 2013 +0200 @@ -73,6 +73,8 @@ public final static String SHOW_AREA = "showarea"; + public final static String SHOW_AREA_LABEL = "showarealabel"; + public final static String SHOW_MIDDLE_HEIGHT = "showmiddleheight"; public final static String LABEL_FONT_COLOR = "labelfontcolor"; @@ -416,6 +418,11 @@ return parseBoolean(show, false); } + public boolean parseShowAreaLabel() { + String show = getValue(SHOW_AREA_LABEL); + return parseBoolean(show, false); + } + public boolean parseShowPointLabel() { String show = getValue(SHOW_POINT_LABEL); return parseBoolean(show, false);