diff src/java/de/intevation/mxd/reader/LineSymbolReader.java @ 72:2cbe423b1fda

Added wrapper for fill symbol reader.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 26 May 2011 16:49:03 +0200
parents 260748e3d08f
children fb93f20478cc
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/reader/LineSymbolReader.java	Thu May 26 16:01:29 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/LineSymbolReader.java	Thu May 26 16:49:03 2011 +0200
@@ -116,6 +116,12 @@
 
     public void setSymbol(ISymbol sym) {
         this.symbol = sym;
+        this.lineSymbol = null;
+    }
+
+    public void setSymbol(ILineSymbol sym) {
+        this.lineSymbol = sym;
+        this.symbol = null;
     }
 
     public boolean canRead(ISymbol sym) {
@@ -131,5 +137,19 @@
             return false;
         }
     }
+
+    public boolean canRead(ILineSymbol sym) {
+        if(sym instanceof SimpleLineSymbol ||
+           sym instanceof MarkerLineSymbol ||
+           sym instanceof PictureLineSymbol ||
+           sym instanceof MultiLayerLineSymbol ||
+           sym instanceof CartographicLineSymbol ||
+           sym instanceof HashLineSymbol) {
+            return true;
+        }
+        else {
+            return false;
+        }
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)