Search in sources :

Example 1 with PipelineSettingsView

use of de.unijena.cheminf.mortar.gui.views.PipelineSettingsView in project MORTAR by FelixBaensch.

the class PipelineSettingsViewController method showPipelineSettingsView.

// 
// <editor-fold desc="private methods" defaultstate="collapsed">
/**
 * Initialises stage and view and opens view in the initialised stage
 */
private void showPipelineSettingsView() {
    if (this.pipelineSettingsView == null)
        this.pipelineSettingsView = new PipelineSettingsView();
    this.pipelineSettingsViewStage = new Stage();
    Scene tmpScene = new Scene(this.pipelineSettingsView, GuiDefinitions.GUI_MAIN_VIEW_WIDTH_VALUE, GuiDefinitions.GUI_MAIN_VIEW_HEIGHT_VALUE);
    this.pipelineSettingsViewStage.setScene(tmpScene);
    this.pipelineSettingsViewStage.initModality(Modality.WINDOW_MODAL);
    this.pipelineSettingsViewStage.initOwner(this.mainStage);
    this.pipelineSettingsViewStage.setTitle(Message.get("PipelineSettingsView.title"));
    this.pipelineSettingsViewStage.setMinHeight(GuiDefinitions.GUI_MAIN_VIEW_HEIGHT_VALUE);
    this.pipelineSettingsViewStage.setMinWidth(GuiDefinitions.GUI_MAIN_VIEW_WIDTH_VALUE);
    Platform.runLater(() -> {
        this.pipelineSettingsView.addGrid(this.pipelineSettingsViewStage);
        this.addListenerAndBindings();
        for (IMoleculeFragmenter tmpFragmenter : this.fragmenterList) {
            this.addNewChoiceRow(tmpFragmenter.getFragmentationAlgorithmName());
        }
        this.setPipelineName(this.fragmentationService.getPipeliningFragmentationName());
        this.pipelineSettingsView.getFragmentButton().setDisable(!this.isMoleculeDataLoaded || this.isFragmentationRunning);
    });
    this.pipelineSettingsViewStage.showAndWait();
}
Also used : PipelineSettingsView(de.unijena.cheminf.mortar.gui.views.PipelineSettingsView) Stage(javafx.stage.Stage) Scene(javafx.scene.Scene) IMoleculeFragmenter(de.unijena.cheminf.mortar.model.fragmentation.algorithm.IMoleculeFragmenter)

Aggregations

PipelineSettingsView (de.unijena.cheminf.mortar.gui.views.PipelineSettingsView)1 IMoleculeFragmenter (de.unijena.cheminf.mortar.model.fragmentation.algorithm.IMoleculeFragmenter)1 Scene (javafx.scene.Scene)1 Stage (javafx.stage.Stage)1