}
};
}
private void initGraphics() {
frame = new Region();
frame.getStyleClass().setAll("frame");
off = new Region();
off.getStyleClass().setAll("off");
offInnerShadow = new InnerShadow();
offInnerShadow.setOffsetX(0);
offInnerShadow.setOffsetY(-5.0 / 144.0 * PREFERRED_SIZE);
offInnerShadow.setRadius(2.0 / 144.0 * PREFERRED_SIZE);
offInnerShadow.setColor(Color.web("0x00000080"));
offInnerShadow.setBlurType(BlurType.TWO_PASS_BOX);
offInnerShadow1 = new InnerShadow();
offInnerShadow1.setOffsetX(0.0);
offInnerShadow1.setOffsetY(0.0);
offInnerShadow1.setRadius(3.0 / 144.0 * PREFERRED_SIZE);
offInnerShadow1.setColor(Color.web("0x0000004d"));
offInnerShadow1.setBlurType(BlurType.TWO_PASS_BOX);
offInnerShadow1.setInput(offInnerShadow);
offDropShadow = new DropShadow();
offDropShadow.setOffsetX(0);
offDropShadow.setOffsetY(10.0 / 144.0 * PREFERRED_SIZE);
offDropShadow.setRadius(10.0 / 144.0 * PREFERRED_SIZE);
offDropShadow.setColor(Color.web("0x000000bf"));
offDropShadow.setBlurType(BlurType.TWO_PASS_BOX);
offDropShadow.setInput(offInnerShadow1);
off.setEffect(offDropShadow);
off.setVisible(!getSkinnable().isSelected());
ledOff = new Region();
ledOff.getStyleClass().setAll("off-led");
ledOff.setMouseTransparent(true);
ledOff.setVisible(!getSkinnable().isSelected());
ledOffInnerShadow = new InnerShadow();
ledOffInnerShadow.setOffsetX(0);
ledOffInnerShadow.setOffsetY(2.0 / 144.0 * PREFERRED_SIZE);
ledOffInnerShadow.setRadius(1.0 / 144.0 * PREFERRED_SIZE);
ledOffInnerShadow.setColor(Color.web("0x0000004d"));
ledOffInnerShadow.setBlurType(BlurType.TWO_PASS_BOX);
ledOffInnerShadow1 = new InnerShadow();
ledOffInnerShadow1.setOffsetX(0);
ledOffInnerShadow1.setOffsetY(-2.0);
ledOffInnerShadow1.setRadius(1.0 / 144.0 * PREFERRED_SIZE);
ledOffInnerShadow1.setColor(Color.web("0xffffffa6"));
ledOffInnerShadow1.setBlurType(BlurType.TWO_PASS_BOX);
ledOffInnerShadow1.setInput(ledOffInnerShadow);
ledOff.setEffect(ledOffInnerShadow1);
on = new Region();
on.getStyleClass().setAll("on");
onInnerShadow = new InnerShadow();
onInnerShadow.setOffsetX(0);
onInnerShadow.setOffsetY(-2.0 / 144.0 * PREFERRED_SIZE);
onInnerShadow.setRadius(2.0 / 144.0 * PREFERRED_SIZE);
onInnerShadow.setColor(Color.web("0x00000080"));
onInnerShadow.setBlurType(BlurType.TWO_PASS_BOX);
onInnerShadow1 = new InnerShadow();
onInnerShadow1.setOffsetX(0);
onInnerShadow1.setOffsetY(5.0 / 144.0 * PREFERRED_SIZE);
onInnerShadow1.setRadius(2.0 / 144.0 * PREFERRED_SIZE);
onInnerShadow1.setColor(Color.web("0x90909080"));
onInnerShadow1.setBlurType(BlurType.TWO_PASS_BOX);
onInnerShadow1.setInput(onInnerShadow);
onDropShadow = new DropShadow();
onDropShadow.setOffsetX(0);
onDropShadow.setOffsetY(1.0);
onDropShadow.setRadius(1.0 / 144.0 * PREFERRED_SIZE);
onDropShadow.setColor(Color.web("0x000000bf"));
onDropShadow.setBlurType(BlurType.TWO_PASS_BOX);
onDropShadow.setInput(onInnerShadow1);
on.setEffect(onDropShadow);
on.setVisible(getSkinnable().isSelected());
ledOn = new Region();
ledOn.getStyleClass().setAll("on-led");
ledOn.setMouseTransparent(true);
ledOn.setVisible(getSkinnable().isSelected());
ledOnInnerShadow = new InnerShadow();