Search in sources :

Example 1 with Palette

use of org.csstudio.display.builder.editor.palette.Palette in project org.csstudio.display.builder by kasemir.

the class DisplayEditor method create.

/**
 * Create UI elements
 *  @return Root Node
 */
public Parent create() {
    model_root = toolkit.createModelRoot();
    autoScrollHandler = new AutoScrollHandler(model_root);
    final Group scroll_body = (Group) model_root.getContent();
    widget_parent = (Pane) scroll_body.getChildren().get(0);
    scroll_body.getChildren().add(edit_tools);
    palette = new Palette(this);
    final Node palette_node = palette.create();
    final SplitPane model_and_palette = new SplitPane(model_root, palette_node);
    model_and_palette.setDividerPositions(1);
    SplitPane.setResizableWithParent(palette_node, false);
    edit_tools.getChildren().addAll(selection_tracker);
    hookListeners();
    toolbar = createToolbar();
    final BorderPane root = new BorderPane(model_and_palette);
    root.setTop(toolbar);
    return root;
}
Also used : Group(javafx.scene.Group) Palette(org.csstudio.display.builder.editor.palette.Palette) BorderPane(javafx.scene.layout.BorderPane) Node(javafx.scene.Node) SplitPane(javafx.scene.control.SplitPane) AutoScrollHandler(org.csstudio.display.builder.editor.util.AutoScrollHandler)

Aggregations

Group (javafx.scene.Group)1 Node (javafx.scene.Node)1 SplitPane (javafx.scene.control.SplitPane)1 BorderPane (javafx.scene.layout.BorderPane)1 Palette (org.csstudio.display.builder.editor.palette.Palette)1 AutoScrollHandler (org.csstudio.display.builder.editor.util.AutoScrollHandler)1