changeset 1495:bd6c8b06cb94

Improved the StyledEditorWindow to support a list of pointsizes. flys-client/trunk@3588 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 04 Jan 2012 16:05:39 +0000 (2012-01-04)
parents 83b913a6eecb
children a882297ce63d
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Jan 04 15:57:07 2012 +0000
+++ b/flys-client/ChangeLog	Wed Jan 04 16:05:39 2012 +0000
@@ -1,3 +1,8 @@
+2012-01-04  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java:
+	  Added support for multiple point sizes.
+
 2012-01-04  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Wed Jan 04 15:57:07 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Wed Jan 04 16:05:39 2012 +0000
@@ -178,6 +178,7 @@
                          "font",
                          "textstyle",
                          "textsize",
+                         "pointsize",
                          "textcolor",
                          "textorientation",
                          "backgroundcolor",
@@ -252,6 +253,16 @@
                 valueMap.put("24", "24");
                 f.setValueMap(valueMap);
             }
+            else if (name.equals("pointsize")) {
+                LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
+                valueMap.put("1", "1");
+                valueMap.put("3", "3");
+                valueMap.put("5", "5");
+                valueMap.put("7", "7");
+                valueMap.put("9", "9");
+                valueMap.put("11", "11");
+                f.setValueMap(valueMap);
+            }
             f.setValue(value);
         }
         else if (type.equals("boolean")) {

http://dive4elements.wald.intevation.org