Java 类javafx.beans.property.ObjectPropertyBase 实例源码

项目:Suji    文件:GoTimer.java   
public ObjectProperty<Duration> initialProperty() {
    if ( initial == null ) {
        initial = new ObjectPropertyBase<Duration>(Duration.seconds(1)) {
            @Override
            public void invalidated() {
                refreshIndicator();
            }

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

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

    return initial;
}
项目:Suji    文件:GoTimer.java   
public ObjectProperty<Duration> currentProperty() {
    if ( current == null ) {
        current = new ObjectPropertyBase<Duration>(Duration.millis(1)) {
            @Override
            public void invalidated() {
                refreshIndicator();
                refreshLabel();
            }

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

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

    return current;
}
项目:SunburstChart    文件:SunburstChart.java   
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;
}
项目:SunburstChart    文件:SunburstChart.java   
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;
}
项目:charts    文件:SunburstChart.java   
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;
}
项目:charts    文件:SunburstChart.java   
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;
}
项目:charts    文件:XYPane.java   
public ObjectProperty<Paint> chartBackgroundProperty() {
    if (null == chartBackground) {
        chartBackground = new ObjectPropertyBase<Paint>(_chartBackground) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return XYPane.this; }
            @Override public String getName() { return "chartBackground"; }
        };
        _chartBackground = null;
    }
    return chartBackground;
}
项目:horizon    文件:Data.java   
public ObjectProperty<Color> colorProperty() {
    if (null == color) {
        color = new ObjectPropertyBase<Color>(_color) {
            @Override public Object getBean() { return Data.this; }
            @Override public String getName() { return "color"; }
        };
        _color = null;
    }
    return color;
}
项目:charts    文件:SunburstChart.java   
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;
}
项目:horizon    文件:Series.java   
public ObjectProperty<Color> colorProperty() {
    if (null == color) {
        color = new ObjectPropertyBase<Color>(_color) {
            @Override protected void invalidated() { refresh(); }
            @Override public Object getBean() {  return Series.this; }
            @Override public String getName() { return "color"; }
        };
        _color = null;
    }
    return color;
}
项目:SunburstChart    文件:SunburstChart.java   
public ObjectProperty<VisibleData> visibleDataProperty() {
    if (null == visibleData) {
        visibleData = new ObjectPropertyBase<VisibleData>(_visibleData) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return SunburstChart.this; }
            @Override public String getName() { return "visibleData"; }
        };
        _visibleData = null;
    }
    return visibleData;
}
项目:SunburstChart    文件:SunburstChart.java   
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;
}
项目:SunburstChart    文件:SunburstChart.java   
public ObjectProperty<Color> backgroundColorProperty() {
    if (null == backgroundColor) {
        backgroundColor = new ObjectPropertyBase<Color>(_backgroundColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return SunburstChart.this; }
            @Override public String getName() { return "backgroundColor"; }
        };
        _backgroundColor = null;
    }
    return backgroundColor;
}
项目:SunburstChart    文件:SunburstChart.java   
public ObjectProperty<Color> textColorProperty() {
    if (null == textColor) {
        textColor = new ObjectPropertyBase<Color>(_textColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return SunburstChart.this; }
            @Override public String getName() { return "textColor"; }
        };
        _textColor = null;
    }
    return textColor;
}
项目:radialchart    文件:RadialChart.java   
public RadialChart(final ChartData... DATA) {
    backgroundPaint    = Color.TRANSPARENT;
    borderPaint        = Color.TRANSPARENT;
    borderWidth        = 0d;
    dataList           = null == DATA ? FXCollections.observableArrayList() : FXCollections.observableArrayList(DATA);
    barBorderColor     = new ObjectPropertyBase<Color>(Color.LIGHTGRAY) {
        @Override protected void invalidated() { redraw(); }
        @Override public Object getBean() { return RadialChart.this; }
        @Override public String getName() { return "barBorderColor"; }
    };
    textColor          = new ObjectPropertyBase<Color>(Color.BLACK) {
        @Override protected void invalidated() { redraw(); }
        @Override public Object getBean() { return RadialChart.this; }
        @Override public String getName() { return "textColor"; }
    };
    chartEventListener = e -> drawChart();
    dataList.forEach(chartData -> chartData.addChartDataEventListener(chartEventListener));
    chartDataListener  = c -> {
        while (c.next()) {
            if (c.wasAdded()) {
                c.getAddedSubList().forEach(addedItem -> addedItem.addChartDataEventListener(chartEventListener));
            } else if (c.wasRemoved()) {
                c.getRemoved().forEach(removedItem -> removedItem.removeChartDataEventListener(chartEventListener));
            }
        }
        drawChart();
    };

    initGraphics();
    registerListeners();
}
项目:circularplot    文件:PlotItem.java   
public ObjectProperty<Color> colorProperty() {
    if (null == color) {
        color = new ObjectPropertyBase<Color>(_color) {
            @Override protected void invalidated() { fireChartItemEvent(UPDATED_EVENT); }
            @Override public Object getBean() { return PlotItem.this; }
            @Override public String getName() { return "color"; }
        };
        _color = null;
    }
    return color;
}
项目:circularplot    文件:CircularPlot.java   
public ObjectProperty<Color> tickMarkColorProperty() {
    if (null == tickMarkColor) {
        tickMarkColor = new ObjectPropertyBase<Color>(_tickMarkColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return CircularPlot.this; }
            @Override public String getName() { return "tickMarkColor"; }
        };
        _tickMarkColor = null;
    }
    return tickMarkColor;
}
项目:circularplot    文件:CircularPlot.java   
public ObjectProperty<Color> textColorProperty() {
    if (null == textColor) {
        textColor = new ObjectPropertyBase<Color>(_textColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return CircularPlot.this; }
            @Override public String getName() { return "textColor"; }
        };
        _textColor = null;
    }
    return textColor;
}
项目:smoothcharts    文件:SmoothedChart.java   
public ObjectProperty<ChartType> chartTypeProperty() {
    if (null == chartType) {
        chartType = new ObjectPropertyBase<ChartType>(_chartType) {
            @Override protected void invalidated() { layoutPlotChildren(); }
            @Override public Object getBean() { return SmoothedChart.this; }
            @Override public String getName() { return "chartType"; }
        };
        _chartType = null;
    }
    return chartType;
}
项目:smoothcharts    文件:SmoothedChart.java   
public ObjectProperty<Color> selectorFillColorProperty() {
    if (null == selectorFillColor) {
        selectorFillColor = new ObjectPropertyBase<Color>(_selectorFillColor) {
            @Override protected void invalidated() {
                selector.setFill(get());
                layoutPlotChildren(); 
            }
            @Override public Object getBean() { return SmoothedChart.this; }
            @Override public String getName() { return "selectorFillColor"; }
        };
        _selectorFillColor = null;
    }
    return selectorFillColor;
}
项目:smoothcharts    文件:SmoothedChart.java   
public ObjectProperty<Color> selectorStrokeColorProperty() {
    if (null == selectorStrokeColor) {
        selectorStrokeColor = new ObjectPropertyBase<Color>(_selectorStrokeColor) {
            @Override protected void invalidated() {
                selector.setStroke(get());
                layoutPlotChildren();
            }
            @Override public Object getBean() { return SmoothedChart.this; }
            @Override public String getName() { return "selectorStrokeColor"; }
        };
        _selectorStrokeColor = null;
    }
    return selectorStrokeColor;
}
项目:sankeyplot    文件:PlotItem.java   
public ObjectProperty<Color> colorProperty() {
    if (null == color) {
        color = new ObjectPropertyBase<Color>(_color) {
            @Override protected void invalidated() { fireChartItemEvent(UPDATED_EVENT); }
            @Override public Object getBean() { return PlotItem.this; }
            @Override public String getName() { return "color"; }
        };
        _color = null;
    }
    return color;
}
项目:sankeyplot    文件:SankeyPlot.java   
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;
}
项目:sankeyplot    文件:SankeyPlot.java   
public ObjectProperty<Color> streamColorProperty() {
    if (null == streamColor) {
        streamColor = new ObjectPropertyBase<Color>(_streamColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return SankeyPlot.this; }
            @Override public String getName() { return "streamColor"; }
        };
        _streamColor = null;
    }
    return streamColor;
}
项目:sankeyplot    文件:SankeyPlot.java   
public ObjectProperty<Color> textColorProperty() {
    if (null == textColor) {
        textColor = new ObjectPropertyBase<Color>(_textColor) {
            @Override protected void invalidated() { prepareData(); }
            @Override public Object getBean() { return SankeyPlot.this; }
            @Override public String getName() { return "textColor"; }
        };
        _textColor = null;
    }
    return textColor;
}
项目:sankeyplot    文件:SankeyPlot.java   
public ObjectProperty<Color> itemColorProperty() {
    if (null == itemColor) {
        itemColor = new ObjectPropertyBase<Color>(_itemColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return SankeyPlot.this; }
            @Override public String getName() { return "itemColor"; }
        };
    }
    return itemColor;
}
项目:charts    文件:CoxcombChart.java   
public ObjectProperty<Color> textColorProperty() {
    if (null == textColor) {
        textColor = new ObjectPropertyBase<Color>(_textColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return CoxcombChart.this; }
            @Override public String getName() { return "textColor"; }
        };
        _textColor = null;
    }
    return textColor;
}
项目:charts    文件:CoxcombChart.java   
public ObjectProperty<Order> orderProperty() {
    if (null == order) {
        order = new ObjectPropertyBase<Order>(_order) {
            @Override protected void invalidated() { reorder(get()); }
            @Override public Object getBean() { return CoxcombChart.this; }
            @Override public String getName() { return "order"; }
        };
        _order = null;
    }
    return order;
}
项目:charts    文件:Axis.java   
public ObjectProperty<LocalDateTime> startProperty() {
    if (null == start) {
        start = new ObjectPropertyBase<LocalDateTime>(_start) {
            @Override protected void invalidated() {
                if (AxisType.DATE != getType()) { throw new IllegalArgumentException("Axis type has to be DATE"); }
                setMinValue(get().toEpochSecond(Helper.getZoneOffset()));
            }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "start"; }
        };
        _start = null;
    }
    return start;
}
项目:charts    文件:Axis.java   
public ObjectProperty<LocalDateTime> endProperty() {
    if (null == end) {
        end = new ObjectPropertyBase<LocalDateTime>(_end) {
            @Override protected void invalidated() { setMaxValue(get().toEpochSecond(Helper.getZoneOffset())); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "end"; }
        };
        _end = null;
    }
    return end;
}
项目:charts    文件:Axis.java   
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;
}
项目:charts    文件:Axis.java   
public ObjectProperty<Orientation> orientationProperty() {
    if (null == orientation) {
        orientation = new ObjectPropertyBase<Orientation>(_orientation) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() {  return "orientation";  }
        };
        _orientation = null;
    }
    return orientation;
}
项目:charts    文件:Axis.java   
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;
}
项目:charts    文件:Axis.java   
public ObjectProperty<Color> axisBackgroundColorProperty() {
    if (null == axisBackgroundColor) {
        axisBackgroundColor = new ObjectPropertyBase<Color>(_axisBackgroundColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "axisBackgroundColor"; }
        };
        _axisBackgroundColor = null;
    }
    return axisBackgroundColor;
}
项目:charts    文件:StreamChart.java   
public ObjectProperty<Color> textColorProperty() {
    if (null == textColor) {
        textColor = new ObjectPropertyBase<Color>(_textColor) {
            @Override protected void invalidated() { prepareData(); }
            @Override public Object getBean() { return StreamChart.this; }
            @Override public String getName() { return "textColor"; }
        };
        _textColor = null;
    }
    return textColor;
}
项目:charts    文件:Axis.java   
public ObjectProperty<Color> tickLabelColorProperty() {
    if (null == tickLabelColor) {
        tickLabelColor = new ObjectPropertyBase<Color>(_tickLabelColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "tickLabelColor"; }
        };
        _tickLabelColor = null;
    }
    return tickLabelColor;
}
项目:charts    文件:Axis.java   
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;
}
项目:charts    文件:Axis.java   
public ObjectProperty<Color> minorTickMarkColorProperty() {
    if (null == minorTickMarkColor) {
        minorTickMarkColor = new ObjectPropertyBase<Color>(_minorTickMarkColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "minorTickMarkColor"; }
        };
        _minorTickMarkColor = null;
    }
    return minorTickMarkColor;
}
项目:charts    文件:Axis.java   
public ObjectProperty<Color> mediumTickMarkColorProperty() {
    if (null == mediumTickMarkColor) {
        mediumTickMarkColor = new ObjectPropertyBase<Color>(_mediumTickMarkColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "mediumTickMarkColor"; }
        };
        _mediumTickMarkColor = null;
    }
    return mediumTickMarkColor;
}
项目:charts    文件:Axis.java   
public ObjectProperty<Color> majorTickMarkColorProperty() {
    if (null == majorTickMarkColor) {
        majorTickMarkColor = new ObjectPropertyBase<Color>(_majorTickMarkColor) {
            @Override protected void invalidated() { redraw(); }
            @Override public Object getBean() { return Axis.this; }
            @Override public String getName() { return "majorTickMarkColor"; }
        };
        _majorTickMarkColor = null;
    }
    return majorTickMarkColor;
}