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;
}
Aggregations