< prev index next >

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

Print this page




  77      * relative. A value of true indicates that the coordinates are absolute
  78      * values. A value of false indicates that the values in this PathElement
  79      * are added to the coordinates of the previous PathElement to compute the
  80      * actual coordinates.
  81      *
  82      * @defaultValue true
  83      */
  84     private BooleanProperty absolute;
  85 
  86 
  87     public final void setAbsolute(boolean value) {
  88         absoluteProperty().set(value);
  89     }
  90 
  91     public final boolean isAbsolute() {
  92         return absolute == null || absolute.get();
  93     }
  94 
  95     public final BooleanProperty absoluteProperty() {
  96         if (absolute == null) {
  97             absolute = new BooleanPropertyBase() {
  98                 @Override protected void invalidated() {
  99                     u();
 100                 }
 101 
 102                 @Override
 103                 public Object getBean() {
 104                     return PathElement.this;
 105                 }
 106 
 107                 @Override
 108                 public String getName() {
 109                     return "absolute";
 110                 }
 111             };
 112         }
 113         return absolute;
 114     }
 115 }
 116 


  77      * relative. A value of true indicates that the coordinates are absolute
  78      * values. A value of false indicates that the values in this PathElement
  79      * are added to the coordinates of the previous PathElement to compute the
  80      * actual coordinates.
  81      *
  82      * @defaultValue true
  83      */
  84     private BooleanProperty absolute;
  85 
  86 
  87     public final void setAbsolute(boolean value) {
  88         absoluteProperty().set(value);
  89     }
  90 
  91     public final boolean isAbsolute() {
  92         return absolute == null || absolute.get();
  93     }
  94 
  95     public final BooleanProperty absoluteProperty() {
  96         if (absolute == null) {
  97             absolute = new BooleanPropertyBase(true) {
  98                 @Override protected void invalidated() {
  99                     u();
 100                 }
 101 
 102                 @Override
 103                 public Object getBean() {
 104                     return PathElement.this;
 105                 }
 106 
 107                 @Override
 108                 public String getName() {
 109                     return "absolute";
 110                 }
 111             };
 112         }
 113         return absolute;
 114     }
 115 }
 116 
< prev index next >