javafx.beans.property.ObjectPropertyBase Java Examples

The following examples show how to use javafx.beans.property.ObjectPropertyBase. 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: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>> onAttachingProperty() {
    if (onAttaching == null) {
        onAttaching = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_ATTACHING, get());
            }

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

            @Override
            public String getName() {
                return "onAttaching";
            }
        };
    }
    return onAttaching;
}
 
Example #2
Source File: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>> onHidingProperty() {
    if (onHiding == null) {
        onHiding = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_HIDING, get());
            }

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

            @Override
            public String getName() {
                return "onHiding";
            }
        };
    }
    return onHiding;
}
 
Example #3
Source File: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>> onHiddenProperty() {
    if (onHidden == null) {
        onHidden = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_HIDDEN, get());
            }

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

            @Override
            public String getName() {
                return "onHidden";
            }
        };
    }
    return onHidden;
}
 
Example #4
Source File: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>>
onCloseRequestProperty() {
    if (onCloseRequest == null) {
        onCloseRequest = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_CLOSE_REQUEST, get());
            }

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

            @Override
            public String getName() {
                return "onCloseRequest";
            }
        };
    }
    return onCloseRequest;
}
 
Example #5
Source File: SunburstChart.java    From charts with Apache License 2.0 6 votes vote down vote up
public ObjectProperty<Color> darkTextColorProperty() {
    if (null == darkTextColor) {
        darkTextColor = new ObjectPropertyBase<Color>(_darkTextColor) {
            @Override protected void invalidated() {
                if (isAutoTextColor()) {
                    adjustTextColors();
                    redraw();
                }
            }
            @Override public Object getBean() { return SunburstChart.this; }
            @Override public String getName() { return "darkTextColor"; }
        };
        _darkTextColor = null;
    }
    return darkTextColor;
}
 
Example #6
Source File: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>> onShownProperty() {
    if (onShown == null) {
        onShown = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_SHOWN, get());
            }

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

            @Override
            public String getName() {
                return "onShown";
            }
        };
    }
    return onShown;
}
 
Example #7
Source File: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>> onMaximizingProperty() {
    if (onMaximizing == null) {
        onMaximizing = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_MAXIMIZING, get());
            }

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

            @Override
            public String getName() {
                return "onMaximizing";
            }
        };
    }
    return onMaximizing;
}
 
Example #8
Source File: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>> onShowingProperty() {
    if (onShowing == null) {
        onShowing = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_SHOWING, get());
            }

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

            @Override
            public String getName() {
                return "onShowing";
            }
        };
    }
    return onShowing;
}
 
Example #9
Source File: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>> onRestoringProperty() {
    if (onRestoring == null) {
        onRestoring = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_RESTORING, get());
            }

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

            @Override
            public String getName() {
                return "onRestoring";
            }
        };
    }
    return onRestoring;
}
 
Example #10
Source File: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>> onAttachedProperty() {
    if (onAttached == null) {
        onAttached = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_ATTACHED, get());
            }

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

            @Override
            public String getName() {
                return "onAttached";
            }
        };
    }
    return onAttached;
}
 
Example #11
Source File: InternalWindow.java    From desktoppanefx with Apache License 2.0 6 votes vote down vote up
public final ObjectProperty<EventHandler<InternalWindowEvent>> onDetachingProperty() {
    if (onDetaching == null) {
        onDetaching = new ObjectPropertyBase<EventHandler<InternalWindowEvent>>() {
            @Override
            protected void invalidated() {
                setEventHandler(InternalWindowEvent.WINDOW_DETACHING, get());
            }

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

            @Override
            public String getName() {
                return "onDetaching";
            }
        };
    }
    return onDetaching;
}
 
Example #12
Source File: SunburstChart.java    From charts with Apache License 2.0 6 votes vote down vote up
public ObjectProperty<Color> brightTextColorProperty() {
    if (null == brightTextColor) {
        brightTextColor = new ObjectPropertyBase<Color>(_brightTextColor) {
            @Override protected void invalidated() {
                if (isAutoTextColor()) {
                    adjustTextColors();
                    redraw();
                }
            }
            @Override public Object getBean() { return SunburstChart.this; }
            @Override public String getName() { return "brightTextColor"; }
        };
        _brightTextColor = null;
    }
    return brightTextColor;
}
 
Example #13
Source File: ConcentricRingChart.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<NumberFormat> numberFormatProperty() {
    if (null == numberFormat) {
        numberFormat = new ObjectPropertyBase<NumberFormat>(_numberFormat) {
            @Override protected void invalidated() {
                updatePopup();
                redraw();
            }
            @Override public Object getBean() { return ConcentricRingChart.this; }
            @Override public String getName() { return "numberFormat"; }
        };
        _numberFormat = null;
    }
    return numberFormat;
}
 
Example #14
Source File: StreamChart.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Locale> localeProperty() {
    if (null == locale) {
        locale = new ObjectPropertyBase<Locale>(_locale) {
            @Override protected void invalidated() { prepareData(); }
            @Override public Object getBean() { return StreamChart.this; }
            @Override public String getName() { return "locale"; }
        };
    }
    _locale = null;
    return locale;
}
 
Example #15
Source File: PlotItem.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Color> strokeProperty() {
    if (null == stroke) {
        stroke = new ObjectPropertyBase<Color>(_stroke) {
            @Override protected void invalidated() { fireItemEvent(ITEM_EVENT); }
            @Override public Object getBean() { return PlotItem.this; }
            @Override public String getName() { return "stroke"; }
        };
        _stroke = null;
    }
    return stroke;
}
 
Example #16
Source File: ParetoBar.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Color> fillColorProperty() {
    if( null == fillColor){
        fillColor = new ObjectPropertyBase<Color>(_fillColor) {
            @Override public Object getBean() { return ParetoBar.this; }
            @Override public String getName() { return "fillColor"; }
        };
        _fillColor = null;
    }
    return fillColor;
}
 
Example #17
Source File: ChartItem.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Color> fillProperty() {
    if (null == fill) {
        fill = new ObjectPropertyBase<Color>(_fill) {
            @Override protected void invalidated() { fireItemEvent(UPDATE_EVENT); }
            @Override public Object getBean() { return ChartItem.this; }
            @Override public String getName() { return "fill"; }
        };
        _fill = null;
    }
    return fill;
}
 
Example #18
Source File: ChartItem.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Color> strokeProperty() {
    if (null == stroke) {
        stroke = new ObjectPropertyBase<Color>(_stroke) {
            @Override protected void invalidated() { fireItemEvent(UPDATE_EVENT); }
            @Override public Object getBean() { return ChartItem.this; }
            @Override public String getName() { return "stroke"; }
        };
        _stroke = null;
    }
    return stroke;
}
 
Example #19
Source File: LegendItem.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Symbol> symbolProperty() {
    if (null == symbol) {
        symbol = new ObjectPropertyBase<Symbol>(_symbol) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return LegendItem.this; }
            @Override public String getName() { return "symbol"; }
        };
        _symbol = null;
    }
    return symbol;
}
 
Example #20
Source File: MatrixChartItem.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Color> strokeProperty() {
    if (null == stroke) {
        stroke = new ObjectPropertyBase<Color>(_stroke) {
            @Override protected void invalidated() { fireItemEvent(ITEM_EVENT); }
            @Override public Object getBean() { return MatrixChartItem.this; }
            @Override public String getName() { return "stroke"; }
        };
        _stroke = null;
    }
    return stroke;
}
 
Example #21
Source File: Grid.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Paint> majorHGridLinePaintProperty() {
    if (null == majorHGridLinePaint) {
        majorHGridLinePaint = new ObjectPropertyBase<Paint>(_majorHGridLinePaint) {
            @Override protected void invalidated() { drawGrid(); }
            @Override public Object getBean() { return Grid.this; }
            @Override public String getName() { return "majorHGridLinePaint"; }
        };
        _majorHGridLinePaint = null;
    }
    return majorHGridLinePaint;
}
 
Example #22
Source File: Axis.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Color> zeroColorProperty() {
    if (null == zeroColor) {
        zeroColor = new ObjectPropertyBase<Color>(_zeroColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "zeroColor"; }
        };
        _zeroColor = null;
    }
    return zeroColor;
}
 
Example #23
Source File: Axis.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Color> titleColorProperty() {
    if (null == titleColor) {
        titleColor = new ObjectPropertyBase<Color>(_titleColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "titleColor"; }
        };
        _titleColor = null;
    }
    return titleColor;
}
 
Example #24
Source File: SankeyPlot.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<StreamFillMode> streamFillModeProperty() {
    if (null == streamFillMode) {
        streamFillMode = new ObjectPropertyBase<StreamFillMode>(_streamFillMode) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return SankeyPlot.this; }
            @Override public String getName() { return "streamFillMode"; }
        };
        _streamFillMode = null;
    }
    return streamFillMode;
}
 
Example #25
Source File: Axis.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Color> axisColorProperty() {
    if (null == axisColor) {
        axisColor = new ObjectPropertyBase<Color>(_axisColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "axisColor"; }
        };
        _axisColor = null;
    }
    return axisColor;
}
 
Example #26
Source File: ParallelCoordinatesChart.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Locale> localeProperty() {
    if (null == locale) {
        locale = new ObjectPropertyBase<Locale>(_locale) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return ParallelCoordinatesChart.this; }
            @Override public String getName() { return "locale"; }
        };
        _locale = null;
    }
    return locale;
}
 
Example #27
Source File: Axis.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Position> positionProperty() {
    if (null == position) {
        position = new ObjectPropertyBase<Position>(_position) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "position"; }
        };
        _position = null;
    }
    return position;
}
 
Example #28
Source File: LegendItem.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<Color> symbolFillProperty() {
    if (null == symbolFill) {
        symbolFill = new ObjectPropertyBase<Color>(_symbolFill) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return LegendItem.this; }
            @Override public String getName() { return "symbolFill"; }
        };
        _symbolFill = null;
    }
    return symbolFill;
}
 
Example #29
Source File: Axis.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<AxisType> typeProperty() {
    if (null == type) {
        type = new ObjectPropertyBase<AxisType>(_type) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() {  return Axis.this;  }
            @Override public String getName() {  return "axisType";  }
        };
        _type = null;
    }
    return type;
}
 
Example #30
Source File: SunburstChart.java    From charts with Apache License 2.0 5 votes vote down vote up
public ObjectProperty<TextOrientation> textOrientationProperty() {
    if (null == textOrientation) {
        textOrientation = new ObjectPropertyBase<TextOrientation>(_textOrientation) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return SunburstChart.this; }
            @Override public String getName() { return "textOrientation"; }
        };
        _textOrientation = null;
    }
    return textOrientation;
}