本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}