Documentation of 'de.erichseifert.gral.plots.legends.ValueLegend' Java class
ValueLegend
de.erichseifert.gral.plots.legends

Class ValueLegend

    • Constructor Detail

      • ValueLegend

        public ValueLegend()
        Initializes a new instance with default values.
    • Method Detail

      • add

        public void add(DataSource source)
        Description copied from class: AbstractLegend
        Adds the specified data source in order to display it.
        Specified by:
        add in interface Legend
        Overrides:
        add in class AbstractLegend
        Parameters:
        source - data source to be added.
      • dataAdded

        public void dataAdded(DataSource source,
                              DataChangeEvent... events)
        Method that is invoked when data has been added. This method is invoked by objects that provide support for DataListeners and should not be called manually.
        Specified by:
        dataAdded in interface DataListener
        Parameters:
        source - Data source that has been changed.
        events - Optional event object describing the data values that have been added.
      • dataUpdated

        public void dataUpdated(DataSource source,
                                DataChangeEvent... events)
        Method that is invoked when data has been updated. This method is invoked by objects that provide support for DataListeners and should not be called manually.
        Specified by:
        dataUpdated in interface DataListener
        Parameters:
        source - Data source that has been changed.
        events - Optional event object describing the data values that have been updated.
      • dataRemoved

        public void dataRemoved(DataSource source,
                                DataChangeEvent... events)
        Method that is invoked when data has been removed. This method is invoked by objects that provide support for DataListeners and should not be called manually.
        Specified by:
        dataRemoved in interface DataListener
        Parameters:
        source - Data source that has been changed.
        events - Optional event object describing the data values that have been removed.
      • getLabelColumn

        public int getLabelColumn()
        Returns the index of the column that contains the labels for the values.
        Returns:
        Column index containing the labels.
      • setLabelColumn

        public void setLabelColumn(int labelColumn)
        Sets the index of the column that contains the labels for the values.
        Parameters:
        labelColumn - Column index containing the labels.
      • getLabelFormat

        public java.text.Format getLabelFormat()
        Returns the format used to display data values.
        Returns:
        Format for data to label text conversion.
      • setLabelFormat

        public void setLabelFormat(java.text.Format labelFormat)
        Sets the format used to display data values.
        Parameters:
        labelFormat - Format for data to label text conversion.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.