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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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(); }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }