Package jsx.style.value

Examples of jsx.style.value.Shadow


     * @param transparency A transparency of shadow.
     * @return
     */
    public Text shadow(Color color, double transparency) {
        color = new Color(0, 0, color.lightness < 50 ? 100 : 0, transparency);
        Shadow shadow1 = new Shadow().offset(1, 0, px).color(color);
        Shadow shadow2 = new Shadow().offset(0, 1, px).color(color);

        return shadow(shadow1, shadow2);
    }
View Full Code Here


     * @param transparency A transparency of shadow.
     * @return
     */
    public Text outline(Color color, double transparency) {
        color = new Color(0, 0, color.lightness < 50 ? 100 : 0, transparency);
        Shadow shadow1 = new Shadow().offset(1, 0, px).color(color);
        Shadow shadow2 = new Shadow().offset(0, 1, px).color(color);
        Shadow shadow3 = new Shadow().offset(-1, 0, px).color(color);
        Shadow shadow4 = new Shadow().offset(0, -1, px).color(color);

        return shadow(shadow1, shadow2, shadow3, shadow4);
    }
View Full Code Here

     * </p>
     *
     * @return A new shadow.
     */
    protected static final Shadow shadow() {
        return new Shadow();
    }
View Full Code Here

TOP

Related Classes of jsx.style.value.Shadow

Copyright © 2018 www.massapicom. 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.