Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
  private void clearModels() {
    structureStick.selectedProperty().unbind();
    structureBall.selectedProperty().unbind();
    structureMesh.selectedProperty().unbind();

    structureBall.setOnAction(event -> {});

    rnaSequence3D.getModels().clear();
  }
Example #5
0
 private void activateRightSideButtons() {
   colorPyrpur.setOnAction(
       (me) -> {
         ((MeshModel) rnaSequence3D.getModels().get(1)).colorPyrPur();
       });
   colorAugc.setOnAction(
       (me) -> {
         ((MeshModel) rnaSequence3D.getModels().get(1)).colorBases();
       });
   centerObject.setOnAction(
       (me) -> {
         tertiaryRoom.setCameraCenter(rnaSequence3D.computeCenter());
       });
 }
Example #6
0
  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));
  }
Example #7
0
  private void setFileDependingButtonBindings() {
    // MenuItems
    pyrpurItem.disableProperty().bind(model.fileLoadedProperty().not());
    augcItem.disableProperty().bind(model.fileLoadedProperty().not());
    meshItem.disableProperty().bind(model.fileLoadedProperty().not());
    stickItem.disableProperty().bind(model.fileLoadedProperty().not());
    ballItem.disableProperty().bind(model.fileLoadedProperty().not());

    // Buttons on the side
    colorPyrpur.disableProperty().bind(model.fileLoadedProperty().not());
    colorAugc.disableProperty().bind(model.fileLoadedProperty().not());
    structureMesh.disableProperty().bind(model.fileLoadedProperty().not());
    structureStick.disableProperty().bind(model.fileLoadedProperty().not());
    structureBall.disableProperty().bind(model.fileLoadedProperty().not());
    playRotate.disableProperty().bind(model.fileLoadedProperty().not());
    rotateLeft.disableProperty().bind(model.fileLoadedProperty().not());
    rotateRight.disableProperty().bind(model.fileLoadedProperty().not());
    zoomIn.disableProperty().bind(model.fileLoadedProperty().not());
    zoomOut.disableProperty().bind(model.fileLoadedProperty().not());
    centerObject.disableProperty().bind(model.fileLoadedProperty().not());
  }
Example #8
0
 private void bindMenuItemsToButtons() {
   pyrpurItem.selectedProperty().bindBidirectional(colorPyrpur.selectedProperty());
   augcItem.selectedProperty().bindBidirectional(colorAugc.selectedProperty());
   meshItem.selectedProperty().bindBidirectional(structureMesh.selectedProperty());
   stickItem.selectedProperty().bindBidirectional(structureStick.selectedProperty());
 }