Mercurial > mxd2map
comparison src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java @ 63:5c5ef5768893
Added MultiLayerLineSymbolReader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 24 May 2011 16:51:01 +0200 |
parents | 8e6d529e9a22 |
children | 7eba97e8201b |
comparison
equal
deleted
inserted
replaced
62:e468cf8701ea | 63:5c5ef5768893 |
---|---|
5 import java.awt.Color; | 5 import java.awt.Color; |
6 | 6 |
7 import org.apache.log4j.Logger; | 7 import org.apache.log4j.Logger; |
8 | 8 |
9 import com.esri.arcgis.display.ISymbol; | 9 import com.esri.arcgis.display.ISymbol; |
10 import com.esri.arcgis.display.IMarkerSymbol; | |
10 import com.esri.arcgis.display.CharacterMarkerSymbol; | 11 import com.esri.arcgis.display.CharacterMarkerSymbol; |
11 import com.esri.arcgis.display.IColor; | 12 import com.esri.arcgis.display.IColor; |
12 import com.esri.arcgis.support.ms.stdole.Font; | 13 import com.esri.arcgis.support.ms.stdole.Font; |
13 | 14 |
14 import org.w3c.dom.Element; | 15 import org.w3c.dom.Element; |
43 } | 44 } |
44 else { | 45 else { |
45 throw new Exception("Not a CharacterMarkerSymbol!"); | 46 throw new Exception("Not a CharacterMarkerSymbol!"); |
46 } | 47 } |
47 } | 48 } |
49 | |
50 public CharacterMarkerSymbolReader(IMarkerSymbol symbol) | |
51 throws Exception { | |
52 logger.debug("contructor()"); | |
53 if(symbol instanceof CharacterMarkerSymbol) { | |
54 this.symbol = (CharacterMarkerSymbol)symbol; | |
55 } | |
56 else { | |
57 throw new Exception("Not a CharacterMarkerSymbol!"); | |
58 } | |
59 } | |
60 | |
48 | 61 |
49 /** | 62 /** |
50 * Setter for the parent XML element. | 63 * Setter for the parent XML element. |
51 * | 64 * |
52 * @param parent The XML parent node. | 65 * @param parent The XML parent node. |