better still...
[potlatch2.git] / net / systemeD / halcyon / styleparser / ShapeStyle.as
index d440a361c54562fd581da2e0d3f43af13bc255b3..fe83ea1e2cd16f36be5016355a5c24ea6319d2bb 100644 (file)
@@ -4,12 +4,13 @@ package net.systemeD.halcyon.styleparser {
        
        public class ShapeStyle extends Style {
 
-               public var width:Number;
+               public var width:Number=0;
                public var color:Number;
                public var opacity:Number;
                public var dashes:Array=[];
                public var linecap:String;
                public var linejoin:String;
+               public var line_style:String;
                
                public var fill_color:Number;
                public var fill_opacity:Number;
@@ -22,12 +23,16 @@ package net.systemeD.halcyon.styleparser {
                
                override public function get properties():Array {
                        return [
-                               'width','color','opacity','dashes','linecap','linejoin',
+                               'width','color','opacity','dashes','linecap','linejoin','line_style',
                                'fill_color','fill_opacity','fill_image',
                                'casing_width','casing_color','casing_opacity','casing_dashes'
                        ];
                }
                
+               override public function get drawn():Boolean {
+                       return (fill_image || fill_color || width || casing_width);
+               }
+
                public function applyStrokeStyle(g:Graphics):void {
                        g.lineStyle(width,
                                                color ? color : 0,
@@ -50,6 +55,7 @@ package net.systemeD.halcyon.styleparser {
                        g.beginFill(fill_color,
                                                fill_opacity ? fill_opacity : 1);
                }
+               
        }
 
 }