Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/LineFillSymbolReader.java @ 97:18e4f143896b
Added polygon writer.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 06 Jun 2011 17:24:43 +0200 |
parents | 59e06c405a9a |
children | fb93f20478cc |
comparison
equal
deleted
inserted
replaced
96:c285ed08b72c | 97:18e4f143896b |
---|---|
72 "offset", | 72 "offset", |
73 String.valueOf(symbol.getOffset())); | 73 String.valueOf(symbol.getOffset())); |
74 symbolElement.setAttribute( | 74 symbolElement.setAttribute( |
75 "separation", | 75 "separation", |
76 String.valueOf(symbol.getSeparation())); | 76 String.valueOf(symbol.getSeparation())); |
77 symbolElement.setAttribute("angle", String.valueOf(symbol.getAngle())); | |
77 | 78 |
78 if(symbol.getColor() instanceof IRgbColor) { | 79 if(symbol.getColor() instanceof IRgbColor) { |
79 IRgbColor color = (IRgbColor)symbol.getColor(); | 80 IRgbColor color = (IRgbColor)symbol.getColor(); |
80 Color c = new Color ( | 81 Color c = new Color ( |
81 color.getRed(), | 82 color.getRed(), |
110 " is not implemented!"); | 111 " is not implemented!"); |
111 } | 112 } |
112 ILineSymbol ls = symbol.getLineSymbol(); | 113 ILineSymbol ls = symbol.getLineSymbol(); |
113 LineSymbolReader lsr = new LineSymbolReader(); | 114 LineSymbolReader lsr = new LineSymbolReader(); |
114 if(lsr.canRead(ls)) { | 115 if(lsr.canRead(ls)) { |
116 symbolElement.setAttribute("hatch", "1"); | |
115 lsr.setSymbol(ls); | 117 lsr.setSymbol(ls); |
116 lsr.setUtil(util); | 118 lsr.setUtil(util); |
117 lsr.setParent(symbolElement); | 119 lsr.setParent(symbolElement); |
118 lsr.read(); | 120 lsr.read(); |
119 } | 121 } |