comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/MapserverStyle.java @ 1878:84cf67a2a19e

Added support for fillcolors of polygons in floodmaps. flys-artifacts/trunk@3237 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 11 Nov 2011 11:28:15 +0000
parents 1a6018d5f0b7
children 27cc95e65f18
comparison
equal deleted inserted replaced
1877:1a6018d5f0b7 1878:84cf67a2a19e
40 public interface ClazzItem { 40 public interface ClazzItem {
41 void toString(StringBuilder sb); 41 void toString(StringBuilder sb);
42 } 42 }
43 43
44 public static class Style implements ClazzItem { 44 public static class Style implements ClazzItem {
45 protected String color;
45 protected String outlinecolor; 46 protected String outlinecolor;
46 protected String symbol; 47 protected String symbol;
47 protected int size; 48 protected int size;
49
50 public void setColor(String color) {
51 this.color = color;
52 }
48 53
49 public void setOutlineColor(String outlinecolor) { 54 public void setOutlineColor(String outlinecolor) {
50 this.outlinecolor = outlinecolor; 55 this.outlinecolor = outlinecolor;
51 } 56 }
52 57
62 67
63 public void toString(StringBuilder sb) { 68 public void toString(StringBuilder sb) {
64 sb.append("STYLE\n"); 69 sb.append("STYLE\n");
65 sb.append("WIDTH " + String.valueOf(size) + "\n"); 70 sb.append("WIDTH " + String.valueOf(size) + "\n");
66 sb.append("OUTLINECOLOR " + outlinecolor + "\n"); 71 sb.append("OUTLINECOLOR " + outlinecolor + "\n");
72
73 if (color != null) {
74 sb.append("COLOR " + color + "\n");
75 }
67 76
68 if (symbol != null) { 77 if (symbol != null) {
69 sb.append("SYMBOL '" + symbol + "'\n"); 78 sb.append("SYMBOL '" + symbol + "'\n");
70 } 79 }
71 80

http://dive4elements.wald.intevation.org