use of com.sri.ai.praise.sgsolver.demo.perspective.HOGMPerspective in project aic-praise by aic-sri-international.
the class SGSolverDemoController method initialize.
//
// PRIVATE
//
@FXML
private void initialize() throws IOException {
FXUtil.setDefaultButtonIcon(openMenuButton, FontAwesomeIcons.BARS);
//
FXUtil.setDefaultButtonIcon(newButton, FontAwesomeIcons.FILE_ALT);
FXUtil.setDefaultButtonIcon(openFileButton, FontAwesomeIcons.FOLDER_OPEN);
FXUtil.setDefaultButtonIcon(saveButton, FontAwesomeIcons.SAVE);
//
FXUtil.setDefaultButtonIcon(undoModelEditButton, FontAwesomeIcons.ROTATE_LEFT);
FXUtil.setDefaultButtonIcon(redoModelEditButton, FontAwesomeIcons.ROTATE_RIGHT);
//
FXUtil.setButtonStackedIcons(undoPagesChangeButton, FontAwesomeIcons.ROTATE_LEFT, FontAwesomeIcons.SQUARE_ALT);
FXUtil.setButtonStackedIcons(redoPagesChangeButton, FontAwesomeIcons.ROTATE_RIGHT, FontAwesomeIcons.SQUARE_ALT);
//
FXUtil.setPaginationButtonIcon(removePageButton, FontAwesomeIcons.MINUS);
FXUtil.setPaginationButtonIcon(previousPageButton, FontAwesomeIcons.CARET_LEFT);
FXUtil.setPaginationButtonIcon(nextPageButton, FontAwesomeIcons.CARET_RIGHT);
FXUtil.setPaginationButtonIcon(addPageButton, FontAwesomeIcons.PLUS);
//
FXUtil.setDefaultButtonIcon(configureButton, FontAwesomeIcons.WRENCH);
//
praiseFileChooser = new FileChooser();
praiseFileChooser.getExtensionFilters().addAll(new FileChooser.ExtensionFilter("Model Files", "*.praise"));
uaiFileChooser = new FileChooser();
uaiFileChooser.getExtensionFilters().addAll(new FileChooser.ExtensionFilter("UAI Files", "*.uai"));
openMenuPopOver.setArrowLocation(ArrowLocation.LEFT_TOP);
openMenuPopOver.setAutoHide(true);
openMenuPopOver.setDetachedTitle("Menu");
openMenuPopOver.setContentNode(openMenuContent());
configureSettingsPopOver.setArrowLocation(ArrowLocation.RIGHT_TOP);
configureSettingsPopOver.setAutoHide(true);
configureSettingsPopOver.setDetachedTitle("Configure Settings");
configureSettingsPopOver.setContentNode(configureSettingsContent());
//
//
modelPagination.setPageFactory(this::createModelPage);
modelPagination.pageCountProperty().addListener((observable, oldValue, newValue) -> updatePaginationControls(modelPagination.getCurrentPageIndex(), newValue.intValue()));
modelPagination.currentPageIndexProperty().addListener((observable, oldValue, newValue) -> updatePaginationControls(newValue.intValue(), modelPagination.getPageCount()));
examplesComboBox.getSelectionModel().selectedIndexProperty().addListener(this::exampleSelectionChaned);
setPerspective(new HOGMPerspective());
}
Aggregations