// Focus drop shadows: radius, spread, offsets
dsFocused = new DropShadow(BlurType.THREE_PASS_BOX, Color.BLACK, SHADOW_WIDTH, 0.1, 0, 0);
dsNotFocused = new DropShadow(BlurType.THREE_PASS_BOX, Color.DARKGREY, SHADOW_WIDTH, 0, 0, 0);
shadowRectangle = new Rectangle();
// UI part of the decoration
try {
FXMLLoader fxmlLoader = new FXMLLoader(stageDecorationFxmlAsURL);
// fxmlLoader.setController(new StageDecorationController(this));
fxmlLoader.setController(this);
stageDecoration = (Pane) fxmlLoader.load();
} catch (Exception ex) {
LOGGER.log(Level.SEVERE, "Decorations not found", ex);
}
initDecoration();
/*
* Resize rectangle
*/
resizeRect = new Rectangle();
resizeRect.setFill(null);
resizeRect.setStrokeWidth(RESIZE_PADDING);
resizeRect.setStrokeType(StrokeType.INSIDE);
resizeRect.setStroke(Color.TRANSPARENT);
undecoratorController.setStageResizableWith(stage, resizeRect, RESIZE_PADDING, SHADOW_WIDTH);