Tabnine Logo
WritableValue.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
javafx.beans.value.WritableValue

Best Java code snippets using javafx.beans.value.WritableValue.getValue (Showing top 16 results out of 315)

origin: jfoenixadmin/JFoenix

void reverse(double now) {
  currentDuration = duration - (currentDuration - now);
  // update initial values
  for (JFXKeyValue keyValue : keyValues) {
    final WritableValue target = keyValue.getTarget();
    if (target != null) {
      initialValuesMap.put(target, target.getValue());
      endValuesMap.put(target, keyValue.getEndValue());
    }
  }
}
origin: jfoenixadmin/JFoenix

public void applyEndValues() {
  for (JFXKeyValue keyValue : keyValues) {
    if (keyValue.isValid()) {
      final WritableValue target = keyValue.getTarget();
      if (target != null) {
        final Object endValue = keyValue.getEndValue();
        if (endValue != null && !target.getValue().equals(endValue)) {
          target.setValue(endValue);
        }
      }
    }
  }
}
origin: jfoenixadmin/JFoenix

public void init() {
  finished = false;
  for (JFXKeyValue keyValue : keyValues) {
    if (keyValue.getTarget() != null) {
      // replaced putIfAbsent for mobile compatibility
      if (!initialValuesMap.containsKey(keyValue.getTarget())) {
        initialValuesMap.put(keyValue.getTarget(), keyValue.getTarget().getValue());
      }
      if (!endValuesMap.containsKey(keyValue.getTarget())) {
        endValuesMap.put(keyValue.getTarget(), keyValue.getEndValue());
      }
    }
  }
}
origin: jfoenixadmin/JFoenix

public void animate(double now) {
  if (now <= currentDuration) {
    for (JFXKeyValue keyValue : keyValues) {
      if (keyValue.isValid()) {
        final WritableValue target = keyValue.getTarget();
        final Object endValue = endValuesMap.get(target);
        if (endValue != null && target != null && !target.getValue().equals(endValue)) {
          target.setValue(keyValue.getInterpolator().interpolate(initialValuesMap.get(target), endValue, now / currentDuration));
        }
      }
    }
  } else {
    if (!finished) {
      finished = true;
      for (JFXKeyValue keyValue : keyValues) {
        if (keyValue.isValid()) {
          final WritableValue target = keyValue.getTarget();
          if (target != null) {
            // set updated end value instead of cached
            final Object endValue = keyValue.getEndValue();
            if (endValue != null) {
              target.setValue(endValue);
            }
          }
        }
      }
      currentDuration = duration;
    }
  }
}
origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.core.databinding

@Override
protected Object doGetValue() {
  return property.getValue();
}
origin: com.jfoenix/jfoenix

@Override
public boolean interpolate(boolean startValue, boolean endValue, double fraction) {
 return condition.getAsBoolean()
   ? interpolator.interpolate(startValue, endValue, fraction)
   : (boolean) target.getValue();
}
origin: com.jfoenix/jfoenix

@Override
public int interpolate(int startValue, int endValue, double fraction) {
 return condition.getAsBoolean()
   ? interpolator.interpolate(startValue, endValue, fraction)
   : (int) target.getValue();
}
origin: com.jfoenix/jfoenix

@Override
public long interpolate(long startValue, long endValue, double fraction) {
 return condition.getAsBoolean()
   ? interpolator.interpolate(startValue, endValue, fraction)
   : (long) target.getValue();
}
origin: com.jfoenix/jfoenix

@Override
public Object interpolate(Object startValue, Object endValue, double fraction) {
 return condition.getAsBoolean()
   ? interpolator.interpolate(startValue, endValue, fraction)
   : target.getValue();
}
origin: com.jfoenix/jfoenix

@Override
public double interpolate(double startValue, double endValue, double fraction) {
 return condition.getAsBoolean()
   ? interpolator.interpolate(startValue, endValue, fraction)
   : (double) target.getValue();
}
origin: com.jfoenix/jfoenix

void reverse(double now) {
  currentDuration = duration - (currentDuration - now);
  // update initial values
  for (JFXKeyValue keyValue : keyValues) {
    final WritableValue target = keyValue.getTarget();
    if (target != null) {
      initialValuesMap.put(target, target.getValue());
      endValuesMap.put(target, keyValue.getEndValue());
    }
  }
}
origin: com.google.code.validationframework/validationframework-experimental

  @Override
  public void setValue(W w) {
    if (!ValueUtils.areEqual(wrapped.getValue(), w)) {
      wrapped.setValue(w);
    }
  }
}
origin: com.jfoenix/jfoenix

public void applyEndValues() {
  for (JFXKeyValue keyValue : keyValues) {
    if (keyValue.isValid()) {
      final WritableValue target = keyValue.getTarget();
      if (target != null) {
        final Object endValue = keyValue.getEndValue();
        if (endValue != null && !target.getValue().equals(endValue)) {
          target.setValue(endValue);
        }
      }
    }
  }
}
origin: com.jfoenix/jfoenix

public void init() {
  finished = false;
  for (JFXKeyValue keyValue : keyValues) {
    if (keyValue.getTarget() != null) {
      // replaced putIfAbsent for mobile compatibility
      if (!initialValuesMap.containsKey(keyValue.getTarget())) {
        initialValuesMap.put(keyValue.getTarget(), keyValue.getTarget().getValue());
      }
      if (!endValuesMap.containsKey(keyValue.getTarget())) {
        endValuesMap.put(keyValue.getTarget(), keyValue.getEndValue());
      }
    }
  }
}
origin: com.jfoenix/jfoenix

public void animate(double now) {
  if (now <= currentDuration) {
    for (JFXKeyValue keyValue : keyValues) {
      if (keyValue.isValid()) {
        final WritableValue target = keyValue.getTarget();
        final Object endValue = endValuesMap.get(target);
        if (endValue != null && target != null && !target.getValue().equals(endValue)) {
          target.setValue(keyValue.getInterpolator().interpolate(initialValuesMap.get(target), endValue, now / currentDuration));
        }
      }
    }
  } else {
    if (!finished) {
      finished = true;
      for (JFXKeyValue keyValue : keyValues) {
        if (keyValue.isValid()) {
          final WritableValue target = keyValue.getTarget();
          if (target != null) {
            // set updated end value instead of cached
            final Object endValue = keyValue.getEndValue();
            if (endValue != null) {
              target.setValue(endValue);
            }
          }
        }
      }
      currentDuration = duration;
    }
  }
}
origin: eu.mihosoft.vrl.jcsg/jcsg

|| (prev.first && target.getValue().equals(prev.keyValue.getEndValue()))) {
javafx.beans.valueWritableValuegetValue

Popular methods of WritableValue

  • setValue

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • startActivity (Activity)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Collectors (java.util.stream)
  • JTable (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now