Examples of LinearGradient


Examples of booton.css.value.LinearGradient

     * </p>
     *
     * @return A new linear gradient image.
     */
    public static final LinearGradient linear() {
        return new LinearGradient();
    }
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.LinearGradient

        return res;
    }

    private Button.StyleClass<Button> ButtonStyle() {
        Button.StyleClass<Button> res = new Button.StyleClass<Button>();
        LinearGradient bg = new LinearGradient(0.0, new ColorStop(0.0, Color.FUNKY_BLUE), new ColorStop(1.0, Color.fadeColors(Color.BLACK, Color.FUNKY_BLUE, 0.9)));
        res.getBackground().setValue(new StyleValue<ABackground>(bg));
        res.getPadding().setValue(new StyleValue<Padding>(new Padding(10, 5, 10, 5)));
        res.getBorder().setValue(new StyleValue<Border>(new Border(1, Color.fadeColors(Color.BLACK, Color.FUNKY_BLUE, 0.85), 0)));
        res.getForeColor().setValue(new StyleValue<Color>(Color.WHITE));
        res.getFontSize().setValue(new StyleValue<Integer>(14));
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.LinearGradient

        return res;
    }

    private ComboBox.StyleClass<ComboBox> ComboBoxStyle() {
        ComboBox.StyleClass<ComboBox> res = new ComboBox.StyleClass<ComboBox>();
        LinearGradient bg = new LinearGradient(0.0, new ColorStop(0.0, Color.WHITE), new ColorStop(1.0, Color.getRgbColor(0xf0f0f0)));
        res.getBackground().setValue(new StyleValue<ABackground>(bg));
        res.getPadding().setValue(new StyleValue<Padding>(new Padding(10, 5, 10, 5)));
        res.getBorder().setValue(new StyleValue<Border>(new Border(1, Color.LIGHT_GRAY, 0)));
        return res;
    }
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.LinearGradient

        return res;
    }

    private Button.StyleClass<Button> ButtonStyle() {
        Button.StyleClass<Button> res = new Button.StyleClass<Button>();
        LinearGradient bg = new LinearGradient(0.0, new ColorStop(0.0, Color.FUNKY_BLUE), new ColorStop(1.0, Color.fadeColors(Color.BLACK, Color.FUNKY_BLUE, 0.9)));
        res.getBackground().setValue(new StyleValue<ABackground>(bg));
        res.getPadding().setValue(new StyleValue<Padding>(new Padding(10, 5, 10, 5)));
        res.getBorder().setValue(new StyleValue<Border>(new Border(1, Color.fadeColors(Color.BLACK, Color.FUNKY_BLUE, 0.85), 0)));
        res.getForeColor().setValue(new StyleValue<Color>(Color.WHITE));
        res.getFontSize().setValue(new StyleValue<Integer>(14));
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.LinearGradient

        return res;
    }

    private ComboBox.StyleClass<ComboBox> ComboBoxStyle() {
        ComboBox.StyleClass<ComboBox> res = new ComboBox.StyleClass<ComboBox>();
        LinearGradient bg = new LinearGradient(0.0, new ColorStop(0.0, Color.WHITE), new ColorStop(1.0, Color.getRgbColor(0xf0f0f0)));
        res.getBackground().setValue(new StyleValue<ABackground>(bg));
        res.getPadding().setValue(new StyleValue<Padding>(new Padding(10, 5, 10, 5)));
        res.getBorder().setValue(new StyleValue<Border>(new Border(1, Color.LIGHT_GRAY, 0)));
        return res;
    }
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.LinearGradient

            public void onChanged(Object sender) {
                refreshColors();
            }
        });

        LinearGradient lg = new LinearGradient(0.0, new ColorStop(0.0, Color.getArgbColor(0x40000000)),
                new ColorStop(1.0, Color.getArgbColor(0x40ffffff)));
        this.backgroundProperty().set(lg);

        this.ledPanel = new Panel();
        this.ledPanel.translateXProperty().set(2);
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.LinearGradient

    public IntegerProperty sizeProperty() {
        return size;
    }

    private void refreshColors() {
        LinearGradient lgLed;
        if (light.get()) {
            lgLed = new LinearGradient(0.0, new ColorStop(0.0, Color.fadeColors(color.get(), Color.WHITE, 0.5)),
                    new ColorStop(0.5, color.get()),
                    new ColorStop(1.0, Color.fadeColors(color.get(), Color.BLACK, 0.25)));
        } else {
            lgLed = new LinearGradient(0.0, new ColorStop(0.0, Color.getRgbColor(0xe0e0e0)),
                    new ColorStop(1.0, Color.getRgbColor(0xc0c0c0)));
        }
        this.ledPanel.backgroundProperty().set(lgLed);
    }
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.LinearGradient

    private final Label label = new Label();

    public ComboBox() {
        this.paddingProperty().set(new Padding(5));
        this.borderProperty().set(new Border(1, Color.getRgbColor(0xc0c0c0), 0));
        this.backgroundProperty().set(new LinearGradient(0.0,
                new ColorStop(0.0, Color.getRgbColor(0xe0e0e0)),
                new ColorStop(1.0, Color.getRgbColor(0xc0c0c0))
        ));
        this.cursorProperty().set(ECursor.POINTER);
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.LinearGradient

                bind(buttonColor);
            }

            @Override
            public ABackground calculate() {
                LinearGradient lg = new LinearGradient(0.0,
                        new ColorStop(0.0, Color.fadeColors(Color.WHITE, buttonColor.get(), 0.5)),
                        new ColorStop(0.0, buttonColor.get()),
                        new ColorStop(1.0, Color.fadeColors(Color.BLACK, buttonColor.get(), 0.8))
                );
                return lg;
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.LinearGradient

    public ExpandButton() {
        this.widthProperty().set(9);
        this.heightProperty().set(9);
        this.borderProperty().set(new Border(1, Color.GRAY, 0));
        LinearGradient lg = new LinearGradient(0.0, new ColorStop(0.0, Color.WHITE), new ColorStop(1.0, Color.getRgbColor(0xf0f0f0)));
        this.backgroundProperty().set(lg);
       
        horizontalLine = new Panel();
        horizontalLine.widthProperty().set(5);
        horizontalLine.heightProperty().set(1);
View Full Code Here
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.