Search in sources :

Example 6 with Separator

use of javafx.scene.control.Separator in project trex-stateless-gui by cisco-system-traffic-generator.

the class AbstractProtocolView method addSeparator.

/**
     *
     * @param top
     * @param left
     * @param width
     */
protected void addSeparator(double top, double left, double width) {
    Separator separator = new Separator(Orientation.HORIZONTAL);
    separator.setPrefWidth(width);
    separator.setPrefHeight(1);
    container.getChildren().add(separator);
    container.setTopAnchor(separator, top);
    container.setLeftAnchor(separator, left);
}
Also used : Separator(javafx.scene.control.Separator)

Example 7 with Separator

use of javafx.scene.control.Separator in project aic-praise by aic-sri-international.

the class SGSolverDemoController method openMenuContent.

private Node openMenuContent() {
    VBox openMenu = new VBox(2);
    openMenu.setPadding(new Insets(3, 3, 3, 3));
    Button saveAsButton = new Button("Save As...");
    saveAsButton.setOnAction(this::saveModelAs);
    FXUtil.setButtonStackedIcons(saveAsButton, FontAwesomeIcons.SAVE, FontAwesomeIcons.PENCIL);
    HBox saveAsHBox = newButtonHBox();
    saveAsHBox.getChildren().addAll(saveAsButton, new Label("Save As..."));
    Separator hSep = new Separator(Orientation.HORIZONTAL);
    hSep.setPrefWidth(170);
    importUAIModelButton.setOnAction(this::importUAIModel);
    FXUtil.setDefaultButtonIcon(importUAIModelButton, FontAwesomeIcons.PUZZLE_PIECE);
    HBox importUAIHBox = newButtonHBox();
    importUAIHBox.getChildren().addAll(importUAIModelButton, new Label("Import UAI Model..."));
    exportUAIModelButton.setOnAction(this::exportUAIModel);
    FXUtil.setDefaultButtonIcon(exportUAIModelButton, FontAwesomeIcons.ARCHIVE);
    HBox exportUAIHBox = newButtonHBox();
    exportUAIHBox.getChildren().addAll(exportUAIModelButton, new Label("Export to UAI Model..."));
    openMenu.getChildren().addAll(saveAsHBox, hSep, importUAIHBox, exportUAIHBox);
    return openMenu;
}
Also used : HBox(javafx.scene.layout.HBox) Insets(javafx.geometry.Insets) Button(javafx.scene.control.Button) Label(javafx.scene.control.Label) VBox(javafx.scene.layout.VBox) Separator(javafx.scene.control.Separator)

Aggregations

Separator (javafx.scene.control.Separator)7 Label (javafx.scene.control.Label)4 Insets (javafx.geometry.Insets)3 Button (javafx.scene.control.Button)3 ToolBar (javafx.scene.control.ToolBar)2 BorderPane (javafx.scene.layout.BorderPane)2 HBox (javafx.scene.layout.HBox)2 VBox (javafx.scene.layout.VBox)2 MultiplierType (com.exalttech.trex.ui.MultiplierType)1 MultiplierOption (com.exalttech.trex.ui.components.MultiplierOption)1 ArrayList (java.util.ArrayList)1 Node (javafx.scene.Node)1 Canvas (javafx.scene.canvas.Canvas)1 CheckBox (javafx.scene.control.CheckBox)1 ComboBox (javafx.scene.control.ComboBox)1 Slider (javafx.scene.control.Slider)1 SpinnerValueFactory (javafx.scene.control.SpinnerValueFactory)1 TextField (javafx.scene.control.TextField)1 ToggleGroup (javafx.scene.control.ToggleGroup)1 AnchorPane (javafx.scene.layout.AnchorPane)1