comparison src/java/de/intevation/mxd/reader/SimpleMarkerSymbolReader.java @ 75:9ea64427ac7e

Added marker fill symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 27 May 2011 12:04:19 +0200
parents 7eba97e8201b
children 83932f18dddc
comparison
equal deleted inserted replaced
74:7eba97e8201b 75:9ea64427ac7e
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.SimpleMarkerSymbol; 11 import com.esri.arcgis.display.SimpleMarkerSymbol;
11 import com.esri.arcgis.display.esriSimpleMarkerStyle; 12 import com.esri.arcgis.display.esriSimpleMarkerStyle;
12 import com.esri.arcgis.display.IRgbColor; 13 import com.esri.arcgis.display.IRgbColor;
13 import com.esri.arcgis.display.RgbColor; 14 import com.esri.arcgis.display.RgbColor;
14 15
33 /** 34 /**
34 * Private member. 35 * Private member.
35 */ 36 */
36 private SimpleMarkerSymbol symbol; 37 private SimpleMarkerSymbol symbol;
37 38
39 public SimpleMarkerSymbolReader(ISymbol symbol)
40 throws Exception {
41 logger.debug("contructor()");
42 if(symbol instanceof SimpleMarkerSymbol) {
43 this.symbol = (SimpleMarkerSymbol)symbol;
44 }
45 else {
46 throw new Exception("Not a SimpleMarkerSymbol!");
47 }
48 }
38 49
39 public SimpleMarkerSymbolReader(ISymbol symbol) 50 public SimpleMarkerSymbolReader(IMarkerSymbol symbol)
40 throws Exception { 51 throws Exception {
41 logger.debug("contructor()"); 52 logger.debug("contructor()");
42 if(symbol instanceof SimpleMarkerSymbol) { 53 if(symbol instanceof SimpleMarkerSymbol) {
43 this.symbol = (SimpleMarkerSymbol)symbol; 54 this.symbol = (SimpleMarkerSymbol)symbol;
44 } 55 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)