javafx.beans.property.FloatProperty Java Examples

The following examples show how to use javafx.beans.property.FloatProperty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TableItemTask.java    From megan-ce with GNU General Public License v3.0 5 votes vote down vote up
/**
 * constructor
 *
 * @param doc
 * @param cNames
 * @param classificationName
 * @param tableView
 */
public TableItemTask(Document doc, String[] cNames, String classificationName, Set<Integer> classIds, TableView<TableItem> tableView, FloatProperty maxBitScore, FloatProperty maxNormalizedBitScore, IntegerProperty maxReadLength, ReadOnlyDoubleProperty layoutWidth) {
    this.doc = doc;
    this.cNames = cNames;
    this.classificationName = classificationName;
    this.classIds = classIds;
    this.tableView = tableView;
    this.maxBitScore = maxBitScore;
    this.maxNormalizedBitScore = maxNormalizedBitScore;
    this.maxReadLength = maxReadLength;
    this.layoutWidth = layoutWidth;
}
 
Example #2
Source File: FXWrapper.java    From dolphin-platform with Apache License 2.0 5 votes vote down vote up
/**
 * Create a JavaFX {@link javafx.beans.property.FloatProperty} as a wrapper for a dolphin platform property
 *
 * @param dolphinProperty the dolphin platform property
 * @return the JavaFX property
 */
public static FloatProperty wrapFloatProperty(final Property<Float> dolphinProperty) {
    Assert.requireNonNull(dolphinProperty, "dolphinProperty");
    final FloatProperty property = new SimpleFloatProperty();
    FXBinder.bind(property).bidirectionalToNumeric(dolphinProperty);
    return property;
}
 
Example #3
Source File: SessionContext.java    From jfxvnc with Apache License 2.0 5 votes vote down vote up
public Optional<FloatProperty> getFloatBinding(String key) {
  Optional<Property<?>> b = getBinding(key);
  if (!b.isPresent() || !FloatProperty.class.isInstance(b.get())) {
    return Optional.empty();
  }
  return Optional.of((FloatProperty) b.get());
}
 
Example #4
Source File: DevoxxBillboardLogo.java    From TweetwallFX with MIT License 4 votes vote down vote up
public FloatProperty prefWidthProperty() {
    return prefWidth;
}
 
Example #5
Source File: DevoxxBillboardLogo.java    From TweetwallFX with MIT License 4 votes vote down vote up
public FloatProperty prefHeightProperty() {
    return prefHeight;
}
 
Example #6
Source File: DevoxxBillboardLogo.java    From TweetwallFX with MIT License 4 votes vote down vote up
public FloatProperty frequencyProperty() {
    return frequency;
}
 
Example #7
Source File: DevoxxBillboardLogo.java    From TweetwallFX with MIT License 4 votes vote down vote up
public FloatProperty periodProperty() {
    return period;
}
 
Example #8
Source File: DevoxxBillboardLogo.java    From TweetwallFX with MIT License 4 votes vote down vote up
public FloatProperty waveLengthProperty() {
    return waveLength;
}
 
Example #9
Source File: DevoxxBillboardLogo.java    From TweetwallFX with MIT License 4 votes vote down vote up
public FloatProperty amplitudeProperty() {
    return amplitude;
}
 
Example #10
Source File: FloatJavaFXBidirectionalBinder.java    From dolphin-platform with Apache License 2.0 4 votes vote down vote up
public FloatJavaFXBidirectionalBinder(final FloatProperty javaFxProperty) {
    super(javaFxProperty);
}
 
Example #11
Source File: IcosahedronMesh.java    From FXyzLib with GNU General Public License v3.0 4 votes vote down vote up
public final FloatProperty diameterProperty() {
    return diameter;
}
 
Example #12
Source File: CubeMesh.java    From FXyzLib with GNU General Public License v3.0 4 votes vote down vote up
public FloatProperty imagePaddingProperty() {
    return imagePadding;
}
 
Example #13
Source File: FXBinder.java    From dolphin-platform with Apache License 2.0 2 votes vote down vote up
/**
 * Start point of the fluent API to create a binding.
 * @param property the javafx property
 * @return binder that can be used by the fluent API to create binding.
 */
public static NumericJavaFXBidirectionaBinder<Float> bind(FloatProperty property) {
    requireNonNull(property, "property");
    return new FloatJavaFXBidirectionalBinder(property);
}
 
Example #14
Source File: Var.java    From ReactFX with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Converts {@linkplain FloatProperty} to {@code Var<Float>} to help deal
 * with the consequences of {@linkplain FloatProperty} not being a subtype
 * of {@code Property<Float>}.
 */
static Var<Float> floatVar(FloatProperty p) {
    return mapBidirectional(p, Number::floatValue, Function.identity());
}