comparison src/java/de/intevation/mxd/reader/PictureLineSymbolReader.java @ 67:5ed9e720b6cd

Read the hash symbol in the hash line symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 25 May 2011 15:48:55 +0200
parents c73647bd71c0
children 7eba97e8201b
comparison
equal deleted inserted replaced
66:6bfebb7eb1df 67:5ed9e720b6cd
6 import java.awt.Image; 6 import java.awt.Image;
7 7
8 import org.apache.log4j.Logger; 8 import org.apache.log4j.Logger;
9 9
10 import com.esri.arcgis.display.ISymbol; 10 import com.esri.arcgis.display.ISymbol;
11 import com.esri.arcgis.display.ILineSymbol;
11 import com.esri.arcgis.display.PictureLineSymbol; 12 import com.esri.arcgis.display.PictureLineSymbol;
12 import com.esri.arcgis.support.ms.stdole.Picture; 13 import com.esri.arcgis.support.ms.stdole.Picture;
13 import com.esri.arcgis.display.esriSimpleLineStyle; 14 import com.esri.arcgis.display.esriSimpleLineStyle;
14 import com.esri.arcgis.display.IRgbColor; 15 import com.esri.arcgis.display.IRgbColor;
15 import com.esri.arcgis.display.RgbColor; 16 import com.esri.arcgis.display.RgbColor;
37 private PictureLineSymbol symbol; 38 private PictureLineSymbol symbol;
38 private MapToXMLUtils util; 39 private MapToXMLUtils util;
39 40
40 41
41 public PictureLineSymbolReader(ISymbol symbol) 42 public PictureLineSymbolReader(ISymbol symbol)
43 throws Exception {
44 logger.debug("contructor()");
45 if(symbol instanceof PictureLineSymbol) {
46 this.symbol = (PictureLineSymbol)symbol;
47 }
48 else {
49 throw new Exception("Not a PictureLineSymbol!");
50 }
51 }
52
53
54 public PictureLineSymbolReader(ILineSymbol symbol)
42 throws Exception { 55 throws Exception {
43 logger.debug("contructor()"); 56 logger.debug("contructor()");
44 if(symbol instanceof PictureLineSymbol) { 57 if(symbol instanceof PictureLineSymbol) {
45 this.symbol = (PictureLineSymbol)symbol; 58 this.symbol = (PictureLineSymbol)symbol;
46 } 59 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)