selectedSet.addAll(getSkinnable().getSelectedSet());
}
private void initGraphics() {
fixtureRight = new Region();
fixtureRight.getStyleClass().setAll(getSkinnable().isDarkFixture() ? "fixture-dark" : "fixture");
fixtureRight.setOpacity(getSkinnable().isWithFixture() ? 1 : 0);
fixtureLeft = new Region();
fixtureLeft.getStyleClass().setAll(getSkinnable().isDarkFixture() ? "fixture-dark" : "fixture");
fixtureLeft.setOpacity(getSkinnable().isWithFixture() ? 1 : 0);
innerShadow = new InnerShadow();
innerShadow.setOffsetY(-0.01 * flapHeight);
innerShadow.setRadius(0.01 * flapHeight);
innerShadow.setColor(Color.rgb(0, 0, 0, 0.65));
innerShadow.setBlurType(BlurType.TWO_PASS_BOX);
innerHighlight = new InnerShadow();
innerHighlight.setOffsetY(0.01 * flapHeight);
innerHighlight.setRadius(0.01 * flapHeight);
innerHighlight.setColor(Color.rgb(255, 255, 255, 0.65));
innerHighlight.setBlurType(BlurType.TWO_PASS_BOX);
innerHighlight.setInput(innerShadow);
reversedInnerShadow = new InnerShadow();
reversedInnerShadow.setOffsetY(-0.01 * 0.4920634921 * height);
reversedInnerShadow.setRadius(0.01 * 0.4920634921 * height);
reversedInnerShadow.setColor(Color.rgb(0, 0, 0, 0.65));
reversedInnerShadow.setBlurType(BlurType.TWO_PASS_BOX);
reversedInnerHighlight = new InnerShadow();
reversedInnerHighlight.setOffsetY(0.01 * 0.4920634921 * height);
reversedInnerHighlight.setRadius(0.01 * 0.4920634921 * height);
reversedInnerHighlight.setColor(Color.rgb(255, 255, 255, 0.65));
reversedInnerHighlight.setBlurType(BlurType.TWO_PASS_BOX);
reversedInnerHighlight.setInput(innerShadow);
getSkinnable().setStyle("-flap-base: " + Util.colorToCss(getSkinnable().getFlapColor()) + ";");
upperBackground = new Region();
upperBackground.setEffect(innerHighlight);
font = Fonts.bebasNeue(PREFERRED_HEIGHT);
upperTextFill = new LinearGradient(0, 0,
0, flapHeight,
false, CycleMethod.NO_CYCLE,
new Stop(0.0, getSkinnable().getTextColor()),
new Stop(1.0, getSkinnable().getTextColor().darker()));
upperBackgroundText = new Canvas();
ctxUpperBackgroundText = upperBackgroundText.getGraphicsContext2D();
ctxUpperBackgroundText.setTextBaseline(VPos.CENTER);
ctxUpperBackgroundText.setTextAlign(TextAlignment.CENTER);
lowerBackground = new Region();
lowerBackground.setEffect(innerHighlight);
lowerTextFill = new LinearGradient(0, 0.5079365079365079 * PREFERRED_HEIGHT,
0, 0.5079365079365079 * PREFERRED_HEIGHT + flapHeight,
false, CycleMethod.NO_CYCLE,
new Stop(0.0, getSkinnable().getTextColor().darker()),
new Stop(1.0, getSkinnable().getTextColor()));
lowerBackgroundText = new Canvas();
ctxLowerBackgroundText = lowerBackgroundText.getGraphicsContext2D();
ctxLowerBackgroundText.setTextBaseline(VPos.CENTER);
ctxLowerBackgroundText.setTextAlign(TextAlignment.CENTER);
flap = new Region();
flap.setEffect(innerHighlight);
flap.getTransforms().add(rotateFlap);
flapTextFront = new Canvas();
flapTextFront.getTransforms().add(rotateFlap);