Package com.aquafx_project.controls.skin.effects

Source Code of com.aquafx_project.controls.skin.effects.FocusBorder

package com.aquafx_project.controls.skin.effects;

import javafx.scene.effect.BlurType;
import javafx.scene.effect.DropShadow;
import javafx.scene.effect.InnerShadow;
import javafx.scene.paint.Color;

/**
* Defines the Mac OS X specific focus style for all controls. (Blue inner- and outer glowing)
* It is a chained effect with an InnerShadow and a DropShadow.
*
* @author claudinezillmann
*
*/

public class FocusBorder extends DropShadow {

    public FocusBorder() {
        InnerShadow innerFocus = new InnerShadow();
        innerFocus.setColor(Color.rgb(104, 155, 201, 0.8));
        innerFocus.setBlurType(BlurType.ONE_PASS_BOX);
        innerFocus.setRadius(5.0);
        innerFocus.setChoke(0.8);
        innerFocus.setOffsetX(0.0);
       
        setSpread(0.6);
        setColor(Color.rgb(120, 171, 217));
        setBlurType(BlurType.ONE_PASS_BOX);
        setRadius(6.5);
        setOffsetX(0.0);
        setOffsetY(0.0);
        setInput(innerFocus);
    }
}
TOP

Related Classes of com.aquafx_project.controls.skin.effects.FocusBorder

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.