< prev index next >

modules/graphics/src/main/java/javafx/scene/shape/SVGPath.java

Print this page




  96     public SVGPath() {
  97     }
  98 
  99     public final void setFillRule(FillRule value) {
 100         if (fillRule != null || value != FillRule.NON_ZERO) {
 101             fillRuleProperty().set(value);
 102         }
 103     }
 104 
 105     public final FillRule getFillRule() {
 106         return fillRule == null ? FillRule.NON_ZERO : fillRule.get();
 107     }
 108 
 109     public final ObjectProperty<FillRule> fillRuleProperty() {
 110         if (fillRule == null) {
 111             fillRule = new ObjectPropertyBase<FillRule>(FillRule.NON_ZERO) {
 112 
 113                 @Override
 114                 public void invalidated() {
 115                     NodeHelper.markDirty(SVGPath.this, DirtyBits.SHAPE_FILLRULE);
 116                     impl_geomChanged();
 117                 }
 118 
 119                 @Override
 120                 public Object getBean() {
 121                     return SVGPath.this;
 122                 }
 123 
 124                 @Override
 125                 public String getName() {
 126                     return "fillRule";
 127                 }
 128             };
 129         }
 130         return fillRule;
 131     }
 132 
 133     /**
 134      * Defines the SVG Path encoded string as specified at:
 135      * <a href="http://www.w3.org/TR/SVG/paths.html">http://www.w3.org/TR/SVG/paths.html</a>.
 136      *
 137      * @defaultValue empty string
 138      */
 139     private StringProperty content;
 140 
 141 
 142     public final void setContent(String value) {
 143         contentProperty().set(value);
 144     }
 145 
 146     public final String getContent() {
 147         return content == null ? "" : content.get();
 148     }
 149 
 150     public final StringProperty contentProperty() {
 151         if (content == null) {
 152             content = new StringPropertyBase("") {
 153 
 154                 @Override
 155                 public void invalidated() {
 156                     NodeHelper.markDirty(SVGPath.this, DirtyBits.NODE_CONTENTS);
 157                     impl_geomChanged();
 158                     path2d = null;
 159                 }
 160 
 161                 @Override
 162                 public Object getBean() {
 163                     return SVGPath.this;
 164                 }
 165 
 166                 @Override
 167                 public String getName() {
 168                     return "content";
 169                 }
 170             };
 171         }
 172         return content;
 173     }
 174 
 175     private Object svgPathObject;
 176 
 177     /*




  96     public SVGPath() {
  97     }
  98 
  99     public final void setFillRule(FillRule value) {
 100         if (fillRule != null || value != FillRule.NON_ZERO) {
 101             fillRuleProperty().set(value);
 102         }
 103     }
 104 
 105     public final FillRule getFillRule() {
 106         return fillRule == null ? FillRule.NON_ZERO : fillRule.get();
 107     }
 108 
 109     public final ObjectProperty<FillRule> fillRuleProperty() {
 110         if (fillRule == null) {
 111             fillRule = new ObjectPropertyBase<FillRule>(FillRule.NON_ZERO) {
 112 
 113                 @Override
 114                 public void invalidated() {
 115                     NodeHelper.markDirty(SVGPath.this, DirtyBits.SHAPE_FILLRULE);
 116                     NodeHelper.geomChanged(SVGPath.this);
 117                 }
 118 
 119                 @Override
 120                 public Object getBean() {
 121                     return SVGPath.this;
 122                 }
 123 
 124                 @Override
 125                 public String getName() {
 126                     return "fillRule";
 127                 }
 128             };
 129         }
 130         return fillRule;
 131     }
 132 
 133     /**
 134      * Defines the SVG Path encoded string as specified at:
 135      * <a href="http://www.w3.org/TR/SVG/paths.html">http://www.w3.org/TR/SVG/paths.html</a>.
 136      *
 137      * @defaultValue empty string
 138      */
 139     private StringProperty content;
 140 
 141 
 142     public final void setContent(String value) {
 143         contentProperty().set(value);
 144     }
 145 
 146     public final String getContent() {
 147         return content == null ? "" : content.get();
 148     }
 149 
 150     public final StringProperty contentProperty() {
 151         if (content == null) {
 152             content = new StringPropertyBase("") {
 153 
 154                 @Override
 155                 public void invalidated() {
 156                     NodeHelper.markDirty(SVGPath.this, DirtyBits.NODE_CONTENTS);
 157                     NodeHelper.geomChanged(SVGPath.this);
 158                     path2d = null;
 159                 }
 160 
 161                 @Override
 162                 public Object getBean() {
 163                     return SVGPath.this;
 164                 }
 165 
 166                 @Override
 167                 public String getName() {
 168                     return "content";
 169                 }
 170             };
 171         }
 172         return content;
 173     }
 174 
 175     private Object svgPathObject;
 176 
 177     /*


< prev index next >