javafx.css.StyleableObjectProperty Java Examples

The following examples show how to use javafx.css.StyleableObjectProperty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SVGIcon.java    From ikonli with Apache License 2.0 6 votes vote down vote up
@Override
public ObjectProperty<Paint> iconColorProperty() {
    if (iconColor == null) {
        iconColor = new StyleableObjectProperty<Paint>(Color.BLACK) {
            @Override
            public CssMetaData getCssMetaData() {
                return StyleableProperties.ICON_COLOR;
            }

            @Override
            public Object getBean() {
                return SVGIcon.this;
            }

            @Override
            public String getName() {
                return "iconColor";
            }
        };
        iconColor.addListener(iconColorChangeListener);
    }
    return iconColor;
}
 
Example #2
Source File: SVGIcon.java    From ikonli with Apache License 2.0 6 votes vote down vote up
public ObjectProperty<Ikon> iconCodeProperty() {
    if (iconCode == null) {
        iconCode = new StyleableObjectProperty<Ikon>() {
            @Override
            public CssMetaData getCssMetaData() {
                return StyleableProperties.ICON_CODE;
            }

            @Override
            public Object getBean() {
                return SVGIcon.this;
            }

            @Override
            public String getName() {
                return "iconCode";
            }
        };
        iconCode.addListener(iconFontChangeListener);
    }
    return iconCode;
}
 
Example #3
Source File: StackedFontIcon.java    From ikonli with Apache License 2.0 6 votes vote down vote up
public ObjectProperty<Ikon[]> iconCodesProperty() {
    if (iconCodes == null) {
        iconCodes = new StyleableObjectProperty<Ikon[]>() {
            @Override
            public Object getBean() {
                return StackedFontIcon.this;
            }

            @Override
            public String getName() {
                return "iconCodes";
            }

            @Override
            public CssMetaData<? extends Styleable, Ikon[]> getCssMetaData() {
                return StyleableProperties.ICON_CODES;
            }
        };
        iconCodes.addListener(iconCodesChangeListener);
    }
    return iconCodes;
}
 
Example #4
Source File: StackedFontIcon.java    From ikonli with Apache License 2.0 6 votes vote down vote up
public ObjectProperty<Paint> iconColorProperty() {
    if (iconColor == null) {
        iconColor = new StyleableObjectProperty<Paint>(Color.BLACK) {
            @Override
            public CssMetaData getCssMetaData() {
                return StyleableProperties.ICON_COLOR;
            }

            @Override
            public Object getBean() {
                return StackedFontIcon.this;
            }

            @Override
            public String getName() {
                return "iconColor";
            }
        };
        iconColor.addListener(iconColorChangeListener);
    }
    return iconColor;
}
 
Example #5
Source File: StackedFontIcon.java    From ikonli with Apache License 2.0 6 votes vote down vote up
public ObjectProperty<Paint> iconColorProperty() {
    if (iconColor == null) {
        iconColor = new StyleableObjectProperty<Paint>(Color.BLACK) {
            @Override
            public CssMetaData getCssMetaData() {
                return StyleableProperties.ICON_COLOR;
            }

            @Override
            public Object getBean() {
                return StackedFontIcon.this;
            }

            @Override
            public String getName() {
                return "iconColor";
            }
        };
        iconColor.addListener(iconColorChangeListener);
    }
    return iconColor;
}
 
Example #6
Source File: FontIcon.java    From ikonli with Apache License 2.0 6 votes vote down vote up
@Override
public ObjectProperty<Paint> iconColorProperty() {
    if (iconColor == null) {
        iconColor = new StyleableObjectProperty<>(Color.BLACK) {
            @Override
            public CssMetaData getCssMetaData() {
                return StyleableProperties.ICON_COLOR;
            }

            @Override
            public Object getBean() {
                return FontIcon.this;
            }

            @Override
            public String getName() {
                return "iconColor";
            }
        };
        iconColor.addListener((v, o, n) -> FontIcon.this.setFill(n));
    }
    return iconColor;
}
 
Example #7
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> markerFill4Property() {
    if (null == markerFill4) {
        markerFill4 = new StyleableObjectProperty<Paint>(DEFAULT_MARKER_FILL_4) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.MARKER_FILL_4; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "markerFill4"; }
        };
    }
    return markerFill4;
}
 
Example #8
Source File: IconSwitch.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> thumbColorProperty() {
    if (null == thumbColor) {
        thumbColor = new StyleableObjectProperty<Paint>(DEFAULT_THUMB_COLOR) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.THUMB_COLOR; }

            @Override public Object getBean() { return IconSwitch.this; }

            @Override public String getName() { return "thumbColor"; }
        };
    }
    return thumbColor;
}
 
Example #9
Source File: RadialBargraph.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> tickMarkFillProperty() {
    if (null == tickMarkFill) {
        tickMarkFill = new StyleableObjectProperty<Paint>(Color.BLACK) {

            @Override public CssMetaData getCssMetaData() { return StyleableProperties.TICK_MARK_FILL; }

            @Override public Object getBean() { return RadialBargraph.this; }

            @Override public String getName() { return "tickMarkFill"; }
        };
    }
    return tickMarkFill;
}
 
Example #10
Source File: RadialBargraph.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill0Property() {
    if (null == sectionFill0) {
        sectionFill0 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_0) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_0; }
            @Override public Object getBean() { return RadialBargraph.this; }
            @Override public String getName() { return "sectionFill0"; }
        };
    }
    return sectionFill0;
}
 
Example #11
Source File: RadialBargraph.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill1Property() {
    if (null == sectionFill1) {
        sectionFill1 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_1) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_1; }
            @Override public Object getBean() { return RadialBargraph.this; }
            @Override public String getName() { return "sectionFill1"; }
        };
    }
    return sectionFill1;
}
 
Example #12
Source File: RadialBargraph.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill2Property() {
    if (null == sectionFill2) {
        sectionFill2 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_2) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_2; }
            @Override public Object getBean() { return RadialBargraph.this; }
            @Override public String getName() { return "sectionFill2"; }
        };
    }
    return sectionFill2;
}
 
Example #13
Source File: RadialBargraph.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill3Property() {
    if (null == sectionFill3) {
        sectionFill3 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_3) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_3; }
            @Override public Object getBean() { return RadialBargraph.this; }
            @Override public String getName() { return "sectionFill3"; }
        };
    }
    return sectionFill3;
}
 
Example #14
Source File: SimpleGauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> valueTextColorProperty() {
    if (null == valueTextColor) {
        valueTextColor = new StyleableObjectProperty<Paint>(DEFAULT_VALUE_TEXT_COLOR) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.VALUE_TEXT_COLOR; }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "valueTextColor"; }
        };
    }
    return valueTextColor;
}
 
Example #15
Source File: SimpleGauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionTextColorProperty() {
    if (null == sectionTextColor) {
        sectionTextColor = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_TEXT_COLOR) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_TEXT_COLOR; }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "sectionTextColor"; }
        };
    }
    return sectionTextColor;
}
 
Example #16
Source File: VuMeter.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill1Property() {
    if (null == sectionFill1) {
        sectionFill1 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_1) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_1; }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "sectionFill1"; }
        };
    }
    return sectionFill1;
}
 
Example #17
Source File: SimpleGauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill0Property() {
    if (null == sectionFill0) {
        sectionFill0 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_0) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_0; }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "sectionFill0"; }
        };
    }
    return sectionFill0;
}
 
Example #18
Source File: RadialBargraph.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> markerFill4Property() {
    if (null == markerFill4) {
        markerFill4 = new StyleableObjectProperty<Paint>(DEFAULT_MARKER_FILL_4) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.MARKER_FILL_4; }
            @Override public Object getBean() { return RadialBargraph.this; }
            @Override public String getName() { return "markerFill4"; }
        };
    }
    return markerFill4;
}
 
Example #19
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> markerFill3Property() {
    if (null == markerFill3) {
        markerFill3 = new StyleableObjectProperty<Paint>(DEFAULT_MARKER_FILL_3) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.MARKER_FILL_3; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "markerFill3"; }
        };
    }
    return markerFill3;
}
 
Example #20
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> markerFill2Property() {
    if (null == markerFill2) {
        markerFill2 = new StyleableObjectProperty<Paint>(DEFAULT_MARKER_FILL_2) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.MARKER_FILL_2; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "markerFill2"; }
        };
    }
    return markerFill2;
}
 
Example #21
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> markerFill1Property() {
    if (null == markerFill1) {
        markerFill1 = new StyleableObjectProperty<Paint>(DEFAULT_MARKER_FILL_1) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.MARKER_FILL_1; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "markerFill1"; }
        };
    }
    return markerFill1;
}
 
Example #22
Source File: RadialBargraph.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill7Property() {
    if (null == sectionFill7) {
        sectionFill7 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_7) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_7; }
            @Override public Object getBean() { return RadialBargraph.this; }
            @Override public String getName() { return "sectionFill7"; }
        };
    }
    return sectionFill7;
}
 
Example #23
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> histogramFillProperty() {
    if (null == histogramFill) {
        histogramFill = new StyleableObjectProperty<Paint>(DEFAULT_HISTOGRAM_FILL) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.HISTOGRAM_FILL; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "histogramFill"; }
        };
    }
    return histogramFill;
}
 
Example #24
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill9Property() {
    if (null == sectionFill9) {
        sectionFill9 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_9) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_9; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "sectionFill9"; }
        };
    }
    return sectionFill9;
}
 
Example #25
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill8Property() {
    if (null == sectionFill8) {
        sectionFill8 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_8) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_8; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "sectionFill8"; }
        };
    }
    return sectionFill8;
}
 
Example #26
Source File: SimpleGauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill8Property() {
    if (null == sectionFill8) {
        sectionFill8 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_8) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_8; }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "sectionFill8"; }
        };
    }
    return sectionFill8;
}
 
Example #27
Source File: SimpleGauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill6Property() {
    if (null == sectionFill6) {
        sectionFill6 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_6) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_6; }
            @Override public Object getBean() { return this; }
            @Override public String getName() { return "sectionFill6"; }
        };
    }
    return sectionFill6;
}
 
Example #28
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill4Property() {
    if (null == sectionFill4) {
        sectionFill4 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_4) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_4; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "sectionFill4"; }
        };
    }
    return sectionFill4;
}
 
Example #29
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill3Property() {
    if (null == sectionFill3) {
        sectionFill3 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_3) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_3; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "sectionFill3"; }
        };
    }
    return sectionFill3;
}
 
Example #30
Source File: Gauge.java    From Enzo with Apache License 2.0 5 votes vote down vote up
public final ObjectProperty<Paint> sectionFill2Property() {
    if (null == sectionFill2) {
        sectionFill2 = new StyleableObjectProperty<Paint>(DEFAULT_SECTION_FILL_2) {
            @Override public CssMetaData getCssMetaData() { return StyleableProperties.SECTION_FILL_2; }
            @Override public Object getBean() { return Gauge.this; }
            @Override public String getName() { return "sectionFill2"; }
        };
    }
    return sectionFill2;
}