Mercurial > mxd2map
annotate src/java/de/intevation/mxd/reader/MarkerSymbolReader.java @ 86:e19c5eb43099
Instantiate the mapscript writer before loading the MXD file.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 31 May 2011 15:37:19 +0200 |
parents | 9ea64427ac7e |
children | fb93f20478cc |
rev | line source |
---|---|
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
1 package de.intevation.mxd.reader; |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
2 |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
3 import java.lang.Exception; |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
4 |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
5 import org.w3c.dom.Element; |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
6 |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
7 import org.apache.log4j.Logger; |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
8 |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
9 import com.esri.arcgis.display.ISymbol; |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
10 import com.esri.arcgis.display.IMarkerSymbol; |
71
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
11 import com.esri.arcgis.display.SimpleMarkerSymbol; |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
12 import com.esri.arcgis.display.ArrowMarkerSymbol; |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
13 import com.esri.arcgis.display.CharacterMarkerSymbol; |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
14 import com.esri.arcgis.display.PictureMarkerSymbol; |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
15 import com.esri.arcgis.display.MultiLayerMarkerSymbol; |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
16 |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
17 /** |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
18 * Wrapper for marker symbol reader. |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
19 * |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
20 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
21 */ |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
22 public class MarkerSymbolReader |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
23 extends AbstractSymbolReader { |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
24 |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
25 /** |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
26 * The logger. |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
27 */ |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
28 private static final Logger logger = |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
29 Logger.getLogger(MarkerSymbolReader.class); |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
30 |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
31 private ISymbol symbol; |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
32 private IMarkerSymbol markerSymbol; |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
33 |
71
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
34 public MarkerSymbolReader(ISymbol symbol) |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
35 throws Exception { |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
36 logger.debug("contructor(ISymbol)"); |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
37 this.symbol = symbol; |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
38 this.markerSymbol = null; |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
39 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
40 |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
41 public MarkerSymbolReader(IMarkerSymbol symbol) |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
42 throws Exception { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
43 logger.debug("contructor(ISymbol)"); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
44 this.markerSymbol = symbol; |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
45 this.symbol = null; |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
46 } |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
47 |
71
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
48 public MarkerSymbolReader() { |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
49 logger.debug("contructor()"); |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
50 this.symbol = null; |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
51 this.markerSymbol = null; |
71
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
52 } |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
53 |
74
7eba97e8201b
Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents:
71
diff
changeset
|
54 public Element read() |
7eba97e8201b
Catch all exceptions in the MXDReader.
Raimund Renkert <rrenkert@intevation.de>
parents:
71
diff
changeset
|
55 throws Exception { |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
56 logger.debug("read()"); |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
57 ISymbolReader sreader = null; |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
58 |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
59 if(symbol != null) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
60 if(symbol instanceof SimpleMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
61 sreader = new SimpleMarkerSymbolReader(symbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
62 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
63 else if(symbol instanceof ArrowMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
64 sreader = new ArrowMarkerSymbolReader(symbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
65 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
66 else if(symbol instanceof CharacterMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
67 sreader = new CharacterMarkerSymbolReader(symbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
68 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
69 else if(symbol instanceof PictureMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
70 sreader = new PictureMarkerSymbolReader(symbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
71 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
72 else if(symbol instanceof MultiLayerMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
73 sreader = new MultiLayerMarkerSymbolReader(symbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
74 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
75 else { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
76 logger.debug("The reader for type " + symbol.getClass().toString() + |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
77 " is not implemented!"); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
78 return parent; |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
79 } |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
80 } |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
81 else if(markerSymbol != null) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
82 if(markerSymbol instanceof SimpleMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
83 sreader = new SimpleMarkerSymbolReader(markerSymbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
84 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
85 else if(markerSymbol instanceof ArrowMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
86 sreader = new ArrowMarkerSymbolReader(markerSymbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
87 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
88 else if(markerSymbol instanceof CharacterMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
89 sreader = new CharacterMarkerSymbolReader(markerSymbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
90 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
91 else if(markerSymbol instanceof PictureMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
92 sreader = new PictureMarkerSymbolReader(markerSymbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
93 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
94 else if(markerSymbol instanceof MultiLayerMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
95 sreader = new MultiLayerMarkerSymbolReader(markerSymbol); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
96 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
97 else { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
98 logger.debug("The reader for type " + symbol.getClass().toString() + |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
99 " is not implemented!"); |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
100 return parent; |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
101 } |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
102 } |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
103 if (sreader != null) { |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
104 sreader.setParent(parent); |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
105 sreader.setUtil(util); |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
106 sreader.read(); |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
107 } |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
108 return parent; |
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
109 } |
71
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
110 |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
111 public void setSymbol(ISymbol sym) { |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
112 this.symbol = sym; |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
113 this.markerSymbol = null; |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
114 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
115 |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
116 public void setSymbol(IMarkerSymbol sym) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
117 this.markerSymbol = sym; |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
118 this.symbol = null; |
71
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
119 } |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
120 |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
121 public boolean canRead(ISymbol sym) { |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
122 if(sym instanceof SimpleMarkerSymbol || |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
123 sym instanceof ArrowMarkerSymbol || |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
124 sym instanceof PictureMarkerSymbol || |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
125 sym instanceof CharacterMarkerSymbol || |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
126 sym instanceof MultiLayerMarkerSymbol) { |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
127 return true; |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
128 } |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
129 else { |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
130 return false; |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
131 } |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
132 } |
260748e3d08f
Added wrapper for line symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
70
diff
changeset
|
133 |
75
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
134 public boolean canRead(IMarkerSymbol sym) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
135 if(sym instanceof SimpleMarkerSymbol || |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
136 sym instanceof ArrowMarkerSymbol || |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
137 sym instanceof PictureMarkerSymbol || |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
138 sym instanceof CharacterMarkerSymbol || |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
139 sym instanceof MultiLayerMarkerSymbol) { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
140 return true; |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
141 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
142 else { |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
143 return false; |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
144 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
145 } |
9ea64427ac7e
Added marker fill symbol reader.
Raimund Renkert <rrenkert@intevation.de>
parents:
74
diff
changeset
|
146 |
70
6d181c02efce
Added wrapper for marker symbol reader and extracted methods from symbol
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
147 } |