private void clearModels() { structureStick.selectedProperty().unbind(); structureBall.selectedProperty().unbind(); structureMesh.selectedProperty().unbind(); structureBall.setOnAction(event -> {}); rnaSequence3D.getModels().clear(); }
private void createShowAlertsButton() { showAlertsToggleButton = new ToggleButton(FontAwesome.ICON_WARNING); showAlertsToggleButton.setFont(Font.font("FontAwesome", 14)); showAlertsToggleButton.setTextFill(Color.DARKGOLDENROD); showAlertsToggleButton.setTooltip(new Tooltip("Show/Hide Alerts.")); showAlertsToggleButton.selectedProperty().bindBidirectional(showAlerts); }
private void createProxyRequestsButton() { proxyRequestsToggleButton = new ToggleButton(FontAwesome.ICON_EXCHANGE); proxyRequestsToggleButton.setFont(Font.font("FontAwesome", 14)); proxyRequestsToggleButton.setTextFill(Color.BLACK); proxyRequestsToggleButton.setTooltip(new Tooltip("Enable/Disable Proxying via Burp")); proxyRequestsToggleButton.selectedProperty().bindBidirectional(isProxyingEnabled); }
private void createShowConsoleButton() { consoleToggleButton = new ToggleButton(FontAwesome.ICON_TERMINAL); consoleToggleButton.setFont(Font.font("FontAwesome", 14)); consoleToggleButton.setTextFill(Color.DARKBLUE); consoleToggleButton.setTooltip(new Tooltip("Show/Hide Console.")); consoleToggleButton.selectedProperty().bindBidirectional(isDetailNodeVisible); }
private void loadAllmodels() { rnaSequence3D.addModel(new StickModel()); rnaSequence3D.addModel(new MeshModel()); rnaSequence3D.addModel(new BallModel()); structureStick.selectedProperty().unbind(); structureMesh.selectedProperty().unbind(); structureBall.selectedProperty().unbind(); rnaSequence3D.getModels().get(0).visibleProperty().bind(structureStick.selectedProperty()); rnaSequence3D.getModels().get(1).visibleProperty().bind(structureMesh.selectedProperty()); rnaSequence3D.getModels().get(2).visibleProperty().bind(structureBall.selectedProperty()); tertiaryRoom.getObject().getChildren().addAll(rnaSequence3D.getModels().get(0)); tertiaryRoom.getObject().getChildren().addAll(rnaSequence3D.getModels().get(1)); tertiaryRoom.getObject().getChildren().addAll(rnaSequence3D.getModels().get(2)); }
private void bindMenuItemsToButtons() { pyrpurItem.selectedProperty().bindBidirectional(colorPyrpur.selectedProperty()); augcItem.selectedProperty().bindBidirectional(colorAugc.selectedProperty()); meshItem.selectedProperty().bindBidirectional(structureMesh.selectedProperty()); stickItem.selectedProperty().bindBidirectional(structureStick.selectedProperty()); }