Class FxChart<W extends javafx.scene.chart.Chart & io.github.mmm.ui.fx.widget.chart.fx.AdvancedChart<J>,​D,​J>

    • Constructor Detail

      • FxChart

        public FxChart​(W widget)
        The constructor.
        Parameters:
        widget - the JavaFx widget.
    • Method Detail

      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface AttributeReadTitle
        Returns:
        the title of this object. Similar to text but more exposed (e.g. displayed in title-bar in case of a window). Will be the empty String if not set.
      • getLegnedPlacement

        public Direction getLegnedPlacement()
        Specified by:
        getLegnedPlacement in interface UiChart<W extends javafx.scene.chart.Chart & io.github.mmm.ui.fx.widget.chart.fx.AdvancedChart<J>>
        Returns:
        the Direction where the legend should be placed. Will be null if legend is disabled.
      • setData

        public void setData​(UiDataSet<D>... dataSets)
        Specified by:
        setData in interface UiChart<W extends javafx.scene.chart.Chart & io.github.mmm.ui.fx.widget.chart.fx.AdvancedChart<J>>
        Parameters:
        dataSets - the UiDataSets to set and display by this chart.
      • setDataColor

        protected abstract void setDataColor​(J data,
                                             String color)
        Parameters:
        data - the JavaFx chart data.
        color - the color to apply.
      • createDataArray

        protected abstract J[] createDataArray​(int length)
        Parameters:
        length - the array length.
        Returns:
        a new array of the JavaFx chart data.
      • convertData

        protected abstract J convertData​(UiDataSet<D> dataSet)
        Parameters:
        dataSet - the UiDataSet.
        Returns:
        the given value new converted to the JavaFx chart data.