/** * @return the width */ public Double getWidth() { return width.get(); }
/** * @return Returns the opacity [0.0-1.0]. */ public Double opacity() { return this.opacityProperty.get(); }
private void setProgressProperty(SimpleDoubleProperty doubleProperty, int fileWeight, final double count) throws InterruptedException { Long nowProgress = Math.round((count / fileWeight)* 100.0); if (!nowProgress.equals(progressFileProperty.get())) { doubleProperty.set(new Double(nowProgress/100.0)); } }
protected void updateTabsSize() { double w = ViewStructure.instance().platformSceneWidth().get(); double d = 0.9 * (w / getTabs().size()); for(VLTab tab: getTabs()) { tab.setMaxWidth(d); tab.setMinWidth(d); } }
public class LineItem { private final SimpleDoubleProperty price = new SimpleDoubleProperty(); private final SimpleIntegerProperty qty = new SimpleIntegerProperty(); private final SimpleDoubleProperty total = new SimpleDoubleProperty(); public LineItem() { DoubleBinding db = new DoubleBinding() { { super.bind(price, qty); } @Override protected double computeValue() { return (price.get() * qty.get()); } }; total.bind(db); } //important! add getters and setters }
} else if (mouseEvent.getEventType() == MouseEvent.MOUSE_RELEASED) { if ((rectinitX.get() >= rectX.get()) && (rectinitY.get() >= rectY.get())) { yaxisShift = axisShift; System.out.println("yAxisUPPER:"+yAxis.getUpperBound()+"yAxisLOWER:"+ yAxis.getLowerBound()); newUpperBound = yAxis.getUpperBound() - ((rectinitY.get() - axisShift) / Tgap); newLowerBound = yAxis.getUpperBound() - (( rectY.get() - axisShift) / Tgap);
public double getRealized_PNL() {return realized_PNL.get();}
@Override public void buildFrom(IEmaginController controller, VLViewComponentXML configuration) { super.buildFrom(controller, configuration); leftTabItemsContainer.setVisible(false); rightTabItemsContainer.setVisible(false); leftTabItemsContainer.setManaged(false); rightTabItemsContainer.setManaged(false); centerTabItemsContainer.prefWidthProperty().bind(tabItemsContainer.prefWidthProperty().multiply(0.9)); // todo handle with max according to running platform if(ViewStructure.instance().platformSceneWidth().get() > 100) { double w = ViewStructure.instance().platformSceneWidth().get(); updateTabsSize(); } ViewStructure.instance().platformSceneWidth().addListener(new ChangeListener<Number>() { @Override public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) { updateTabsSize(); }}); }
return jobProgress.get();
private void animateShowSecondaryRSContent(Node node) { if(!AbstractApplicationRunner.isDesktop()) { ((Pane) node).maxWidthProperty().unbind(); ((Pane) node).minWidthProperty().unbind(); ((Pane) node).maxWidthProperty().bind(((Pane) node).prefWidthProperty()); ((Pane) node).minWidthProperty().bind(((Pane) node).prefWidthProperty()); ((Pane) node).setPrefWidth(ViewStructure.instance().platformSceneWidth().get()); } //showSecondaryStrWrapper.setOnFinished(e -> { //secondaryRSWrapperScrollpane.getChildren().add(scrollPane); //secondaryRSWrapperScrollpane.getChildren().add(new StackPane()); secondaryRSWrapperScrollpane.getChildren().clear(); secondaryRSWrapperScrollpane.getChildren().add(node); //secondaryRSWrapperScrollpane.requestFocus(); // }); showSecondaryStrWrapper.play(); //ViewStructure.instance().displayInSecondaryWR((Pane) node); }