class StunnerPointHandleDecorator extends PointHandleDecorator {

    @Override
    public Shape decorate(Shape shape, ShapeState state) {
        switch (state) {
            case NONE:
            case VALID:
                shape.setFillColor(MAIN_COLOR)
                        .setFillAlpha(0.8)
                        .setStrokeAlpha(1)
                        .setShadow(SHADOW_SELECTED)
                        .setStrokeWidth(2)
                        .setStrokeColor(STROKE_COLOR);
                break;
            case INVALID:
                shape.setFillColor(ColorName.WHITE)
                        .setFillAlpha(1)
                        .setShadow(SHADOW_SELECTED)
                        .setStrokeAlpha(1)
                        .setStrokeWidth(2)
                        .setStrokeColor(MAIN_COLOR);
                break;
        }
        return shape;
    }

}