public Var<Boolean> hideCommonAttributesProperty() { return Var.fromVal(hideCommonAttributesToggle.selectedProperty(), hideCommonAttributesToggle::setSelected); }
public final BooleanProperty selectedProperty() { return toggle.selectedProperty(); } }
private void initializeViewAnimation() { // gets captured in the closure final double defaultMainHorizontalSplitPaneDividerPosition = mainHorizontalSplitPane.getDividerPositions()[0]; // show/ hide bottom pane bottomTabsToggle.selectedProperty().addListener((observable, wasExpanded, isNowExpanded) -> { KeyValue keyValue = null; DoubleProperty divPosition = mainHorizontalSplitPane.getDividers().get(0).positionProperty(); if (wasExpanded && !isNowExpanded) { keyValue = new KeyValue(divPosition, 1); } else if (!wasExpanded && isNowExpanded) { keyValue = new KeyValue(divPosition, defaultMainHorizontalSplitPaneDividerPosition); } if (keyValue != null) { Timeline timeline = new Timeline(new KeyFrame(Duration.millis(200), keyValue)); timeline.play(); } }); }
getSkinnable().selectedProperty().addListener(observable -> {
public ExpandButton() { getStyleClass().add("quickbar-expand-button"); toggle.getStyleClass().addAll("pdfsam-toolbar-button", "quickbar-expand-toggle"); expand.setContent("M0,-5L5,0L0,5Z"); expand.getStyleClass().add("quickbar-button-arrow"); collapse.setContent("M0,-5L-5,0L0,5Z"); collapse.getStyleClass().add("quickbar-button-arrow"); toggle.setGraphic(expand); toggle.selectedProperty().addListener((observable, oldValue, newValue) -> { if (newValue) { toggle.setGraphic(collapse); } else { toggle.setGraphic(expand); } }); HBox.setMargin(toggle, new Insets(0, 7, 0, 7)); getChildren().add(toggle); }
getSkinnable().selectedProperty().addListener(observable -> { if (!toggleButton.isDisableAnimation()) { timer.reverseAndContinue();
public BooleanProperty getNextDatasetRequestedProperty() { return nextDatasetButton.selectedProperty(); }
public void bindControls() { messager.bindBidirectional(ShowBodyPath, showBodyPathToggleButton.selectedProperty(), true); messager.bindBidirectional(ShowNavigableRegionVisibilityMaps, showInnerRegionMapsToggleButton.selectedProperty(), true); messager.bindBidirectional(ShowInterRegionVisibilityMap, showInterRegionMapToggleButton.selectedProperty(), true); messager.bindBidirectional(ShowStartVisibilityMap, showStartMapToggleButton.selectedProperty(), true); messager.bindBidirectional(ShowGoalVisibilityMap, showGoalMapToggleButton.selectedProperty(), true); messager.bindBidirectional(ShowPlanarRegions, showPlanarRegionsToggleButton.selectedProperty(), true); messager.bindBidirectional(ShowClusterRawPoints, showClusterRawPointsToggleButton.selectedProperty(), true); messager.bindBidirectional(ShowClusterNavigableExtrusions, showClusterNavigableExtrusionsToggleButton.selectedProperty(), true); messager.bindBidirectional(ShowClusterNonNavigableExtrusions, showClusterNonNavigableExtrusionsToggleButton.selectedProperty(), true); messager.bindBidirectional(EnableWalkerAnimation, showWalkerToggleButton.selectedProperty(), true); }
public void initialize(LidarScanLoggerController loggerController) { this.loggerController = loggerController; startReadingToggleButton.selectedProperty().bindBidirectional(loggerController.readingProperty()); startReadingToggleButton.selectedProperty().addListener( (ChangeListener<Boolean>) (observable, oldValue, newValue) -> startReadingToggleButton.setText(newValue ? "Stop Reading" : "Start Reading")); pauseToggleButton.selectedProperty().bindBidirectional(loggerController.pauseReadingProperty()); waitForListenerToggleButton.selectedProperty().bindBidirectional(loggerController.waitForListenerWhenReadingProperty()); }
public void initialize(LidarScanLoggerController loggerController) { this.loggerController = loggerController; startReadingToggleButton.selectedProperty().bindBidirectional(loggerController.readingProperty()); startReadingToggleButton.selectedProperty().addListener( (ChangeListener<Boolean>) (observable, oldValue, newValue) -> startReadingToggleButton.setText(newValue ? "Stop Reading" : "Start Reading")); pauseToggleButton.selectedProperty().bindBidirectional(loggerController.pauseReadingProperty()); waitForListenerToggleButton.selectedProperty().bindBidirectional(loggerController.waitForListenerWhenReadingProperty()); }
/** * Configures a toolbar toggle button with the specified toggle action. * * @param toggleButton the toolbar toggle button to configure * @param action the toggle action * @param iconSize the icon size */ public static void configureToolbarToggleButton(ToggleButton toggleButton, FXToggleAction action, int iconSize) { configureToolbarButton(toggleButton, action, iconSize); toggleButton.selectedProperty().bindBidirectional(action.selectedProperty()); } }
public void initialize(LidarScanLoggerController loggerController, LidarScanLogViewer lidarScanLogViewer) { this.lidarScanLogViewer = lidarScanLogViewer; logDataToggleButton.selectedProperty().bindBidirectional(loggerController.writingProperty()); logDataToggleButton.selectedProperty().addListener( (ChangeListener<Boolean>) (observable, oldValue, newValue) -> logDataToggleButton.setText(newValue ? "Stop Writing" : "Start Writing")); connectToggleButton.selectedProperty().bindBidirectional(loggerController.enableNetworkProcessorClientProperty()); connectToggleButton.selectedProperty() .addListener((ChangeListener<Boolean>) (observable, oldValue, newValue) -> connectToggleButton.setText(newValue ? "Disconnect" : "Connect")); // logDataToggleButton.selectedProperty().bindBidirectional(connectToggleButton.disableProperty()); // connectToggleButton.selectedProperty().bindBidirectional(logDataToggleButton.disableProperty()); networkProcessorIPAdTextField.setTextFormatter(TextFormatterTools.ipAddressTextFormatter()); networkProcessorIPAdTextField.setText(loggerController.networkProcessorAddressProperty().get()); }
public void initialize(LidarScanLoggerController loggerController, LidarScanLogViewer lidarScanLogViewer) { this.lidarScanLogViewer = lidarScanLogViewer; logDataToggleButton.selectedProperty().bindBidirectional(loggerController.writingProperty()); logDataToggleButton.selectedProperty().addListener( (ChangeListener<Boolean>) (observable, oldValue, newValue) -> logDataToggleButton.setText(newValue ? "Stop Writing" : "Start Writing")); connectToggleButton.selectedProperty().bindBidirectional(loggerController.enableNetworkProcessorClientProperty()); connectToggleButton.selectedProperty() .addListener((ChangeListener<Boolean>) (observable, oldValue, newValue) -> connectToggleButton.setText(newValue ? "Disconnect" : "Connect")); // logDataToggleButton.selectedProperty().bindBidirectional(connectToggleButton.disableProperty()); // connectToggleButton.selectedProperty().bindBidirectional(logDataToggleButton.disableProperty()); networkProcessorIPAdTextField.setTextFormatter(TextFormatterTools.ipAddressTextFormatter()); networkProcessorIPAdTextField.setText(loggerController.networkProcessorAddressProperty().get()); }
public void bindControls() { load(); uiMessager.bindBidirectionalInternal(REAModuleAPI.UILidarScanShow, enableButton.selectedProperty(), true); uiMessager.bindBidirectionalInternal(REAModuleAPI.UILidarScanSize, scanHistorySizeSlider.valueProperty(), numberToIntegerConverter, true); }
@Override public void bindControls() { setupControls(); uiMessager.bindBidirectionalGlobal(REAModuleAPI.OcTreeEnable, enableButton.selectedProperty()); uiMessager.bindBidirectionalGlobal(REAModuleAPI.OcTreeBufferSize, bufferSizeSlider.valueProperty(), numberToIntegerConverter); load(); uiMessager.bindBidirectionalInternal(REAModuleAPI.UIOcTreeDepth, depthSlider.valueProperty(), numberToIntegerConverter, true); uiMessager.bindBidirectionalInternal(REAModuleAPI.UIOcTreeDisplayType, displayTypeComboBox.valueProperty(), true); uiMessager.bindBidirectionalInternal(REAModuleAPI.UIOcTreeColoringMode, coloringTypeComboBox.valueProperty(), true); uiMessager.bindBidirectionalInternal(REAModuleAPI.UIOcTreeShowBuffer, showBufferButton.selectedProperty(), true); uiMessager.bindBidirectionalInternal(REAModuleAPI.UILidarScanShow, showInputScanButton.selectedProperty(), true); }
public AquaToggleButtonSkin(ToggleButton button) { super(button); registerChangeListener(button.focusedProperty(), "FOCUSED"); registerChangeListener(button.selectedProperty(), "SELECTED"); if (getSkinnable().isFocused()) { setFocusBorder(); } else { setDropShadow(); } if (getSkinnable().isSelected()) { adjustToggleGroupBorders(); } }
@Override public void bindControls() { setupControls(); uiMessager.bindBidirectionalGlobal(REAModuleAPI.NormalEstimationEnable, enableButton.selectedProperty()); normalEstimationParametersProperty.bindBidirectionalSearchRadius(searchRadiusSlider.valueProperty()); normalEstimationParametersProperty.bindBidirectionalMaxDistanceFromPlane(maxDistanceFromPlaneSlider.valueProperty()); normalEstimationParametersProperty.bindBidirectionalMinConsensusRatio(minConsensusRatioSlider.valueProperty()); normalEstimationParametersProperty.bindBidirectionalMaxAverageDeviationRatio(maxAverageDeviationRatioSlider.valueProperty()); normalEstimationParametersProperty.bindBidirectionalNumberOfIterations(numberOfIterationsSlider.valueProperty()); uiMessager.bindBidirectionalGlobal(REAModuleAPI.NormalEstimationParameters, normalEstimationParametersProperty); }
public void bindControls() { setupControls(); messager.bindBidirectional(FootstepPlannerMessagerAPI.EnableNodeChecking, enableNodeChecking.selectedProperty(), false); nodeCheckerFootPosition.bindBidirectionalX(nodeCheckerFootXSpinner.getValueFactory().valueProperty()); nodeCheckerFootPosition.bindBidirectionalY(nodeCheckerFootYSpinner.getValueFactory().valueProperty()); messager.bindBidirectional(FootstepPlannerMessagerAPI.NodeCheckingPosition, nodeCheckerFootPosition, false); nodeCheckerFootYawProperty.bindBidirectionalYaw(nodeCheckerFootYaw.getValueFactory().valueProperty()); messager.bindBidirectional(FootstepPlannerMessagerAPI.NodeCheckingOrientation, nodeCheckerFootYawProperty, false); }
public void bindControls() { setupControls(); messager.bindBidirectional(FootstepPlannerMessagerAPI.PlannerTypeTopic, plannerTypeComboBox.valueProperty(), true); messager.registerJavaFXSyncedTopicListener(FootstepPlannerMessagerAPI.PlannerRequestIdTopic, new TextViewerListener<>(requestID)); messager.registerJavaFXSyncedTopicListener(FootstepPlannerMessagerAPI.ReceivedPlanIdTopic, new TextViewerListener<>(receivedRequestId)); messager.registerJavaFXSyncedTopicListener(FootstepPlannerMessagerAPI.PlannerTimeTakenTopic, new TextViewerListener<>(timeTaken)); messager.registerJavaFXSyncedTopicListener(FootstepPlannerMessagerAPI.PlanningResultTopic, new TextViewerListener<>(planningResult)); messager.registerJavaFXSyncedTopicListener(FootstepPlannerMessagerAPI.PlannerStatusTopic, new TextViewerListener<>(plannerStatus)); messager.bindBidirectional(FootstepPlannerMessagerAPI.AcceptNewPlanarRegions, acceptNewPlanarRegions.selectedProperty(), true); }
@Override public void bindControls() { setupControls(); uiMessager.bindBidirectionalGlobal(REAModuleAPI.PlanarRegionsSegmentationEnable, enableSegmentationButton.selectedProperty()); planarRegionSegmentationParametersProperty.bindBidirectionalSearchRadius(searchRadiusSlider.valueProperty()); planarRegionSegmentationParametersProperty.bindBidirectionalMaxDistanceFromPlane(maxDistanceFromPlaneSlider.valueProperty()); planarRegionSegmentationParametersProperty.bindBidirectionalMaxAngleFromPlane(maxAngleFromPlaneSlider.valueProperty()); planarRegionSegmentationParametersProperty.bindBidirectionalMinNormalQuality(minNormalQualitySlider.valueProperty()); planarRegionSegmentationParametersProperty.bindBidirectionalMinRegionSize(minRegionSizeSlider.valueProperty()); planarRegionSegmentationParametersProperty.bindBidirectionalMaxStandardDeviation(maxStandardDeviationSlider.valueProperty()); planarRegionSegmentationParametersProperty.bindBidirectionalMinVolumicDensity(minVolumicDensitySlider.valueProperty()); uiMessager.bindBidirectionalGlobal(REAModuleAPI.PlanarRegionsSegmentationParameters, planarRegionSegmentationParametersProperty); }