root -> SstackPane
body -> AnchorPane
top_left -> Path
top_right -> Path -- rotation 90°
bottom_left -> Path -- rotation 270°
bottom_right -> Path -- rotation 180°
Constrotors
GNDecorator decorator = new GNDecorator();
Setting content
decorator.setContent(content);
decorator.fullBody() // the content occupies all of size
decorator.floatActions(); // the controls are float
Menus
Menu menu = new Menu("File");
menu.getItems().add(new MenuItem("Open"));
menu.getItems().add(new MenuItem("Close"));
decorator.addMenu(menu);
decorator.addMenu(1, menu);// add with a index
Tittle
decorator.setTitle("JavaFx Application");
decorator.centralizeTitle(); // Centralize
Controls
ButtonTest a1 = new ButtonTest("Button 1");
decorator.addMenu(a1);
decorator.addMenu(index, a1); // add with a index