Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java @ 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 |
parents | 2f525f54e429 |
children | 0372797fc9cf |
line wrap: on
line diff
--- 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")) {