當前位置: 首頁>>代碼示例>>Java>>正文


Java ObjectPropertyBase類代碼示例

本文整理匯總了Java中javafx.beans.property.ObjectPropertyBase的典型用法代碼示例。如果您正苦於以下問題:Java ObjectPropertyBase類的具體用法?Java ObjectPropertyBase怎麽用?Java ObjectPropertyBase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ObjectPropertyBase類屬於javafx.beans.property包,在下文中一共展示了ObjectPropertyBase類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initialProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:GoSuji,項目名稱:Suji,代碼行數:23,代碼來源:GoTimer.java

示例2: currentProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:GoSuji,項目名稱:Suji,代碼行數:24,代碼來源:GoTimer.java

示例3: brightTextColorProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:SunburstChart,代碼行數:17,代碼來源:SunburstChart.java

示例4: darkTextColorProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:SunburstChart,代碼行數:17,代碼來源:SunburstChart.java

示例5: chartBackgroundProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:charts,代碼行數:12,代碼來源:XYPane.java

示例6: colorProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:horizon,代碼行數:11,代碼來源:Data.java

示例7: textOrientationProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:charts,代碼行數:12,代碼來源:SunburstChart.java

示例8: colorProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:horizon,代碼行數:12,代碼來源:Series.java

示例9: visibleDataProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:SunburstChart,代碼行數:12,代碼來源:SunburstChart.java

示例10: backgroundColorProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:SunburstChart,代碼行數:12,代碼來源:SunburstChart.java

示例11: textColorProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:SunburstChart,代碼行數:12,代碼來源:SunburstChart.java

示例12: RadialChart

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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();
}
 
開發者ID:HanSolo,項目名稱:radialchart,代碼行數:32,代碼來源:RadialChart.java

示例13: colorProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:circularplot,代碼行數:12,代碼來源:PlotItem.java

示例14: tickMarkColorProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:circularplot,代碼行數:12,代碼來源:CircularPlot.java

示例15: textColorProperty

import javafx.beans.property.ObjectPropertyBase; //導入依賴的package包/類
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;
}
 
開發者ID:HanSolo,項目名稱:circularplot,代碼行數:12,代碼來源:CircularPlot.java


注:本文中的javafx.beans.property.ObjectPropertyBase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。