Class AbstractDataFormattingPlugin

    • Constructor Detail

      • AbstractDataFormattingPlugin

        protected AbstractDataFormattingPlugin()
        Creates a new instance of AbstractDataIndicator.
    • Method Detail

      • getXValueFormatter

        public final javafx.util.StringConverter<java.lang.Number> getXValueFormatter()
        Returns the value of the xValueFormatterProperty().
        Returns:
        the X value formatter
      • getYValueFormatter

        public final javafx.util.StringConverter<java.lang.Number> getYValueFormatter()
        Returns the value of the xValueFormatterProperty().
        Returns:
        the X value formatter
      • setXValueFormatter

        public final void setXValueFormatter​(javafx.util.StringConverter<java.lang.Number> formatter)
        Sets the value of the xValueFormatterProperty().
        Parameters:
        formatter - the X value formatter
      • setYValueFormatter

        public final void setYValueFormatter​(javafx.util.StringConverter<java.lang.Number> formatter)
        Sets the value of the xValueFormatterProperty().
        Parameters:
        formatter - the X value formatter
      • xValueFormatterProperty

        public final javafx.beans.property.ObjectProperty<javafx.util.StringConverter<java.lang.Number>> xValueFormatterProperty()
        StringConverter used to format X values. If null a default will be used.
        Returns:
        the X value formatter property
      • yValueFormatterProperty

        public final javafx.beans.property.ObjectProperty<javafx.util.StringConverter<java.lang.Number>> yValueFormatterProperty()
        StringConverter used to format Y values. If null a default will be used.
        Returns:
        the Y value formatter property
      • formatData

        protected java.lang.String formatData​(Chart chart,
                                              de.gsi.dataset.spi.utils.Tuple<java.lang.Number,​java.lang.Number> data)
        Formats the data to be displayed by this plugin. Uses the specified xValueFormatterProperty() and yValueFormatterProperty() to obtain the corresponding formatters.

        Can be overridden to modify formatting of the data.

        Parameters:
        chart - reference to chart
        data - the data point to be formatted
        Returns:
        formatted data