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);
ctxTextFront = flapTextFront.getGraphicsContext2D();
ctxTextFront.setTextBaseline(VPos.CENTER);
ctxTextFront.setTextAlign(TextAlignment.CENTER);
flapTextBack = new Canvas();
flapTextBack.getTransforms().add(rotateFlap);
flapTextBack.setOpacity(0);
ctxTextBack = flapTextBack.getGraphicsContext2D();
ctxTextBack.setTextBaseline(VPos.CENTER);
ctxTextBack.setTextAlign(TextAlignment.CENTER);