All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.gsi.chart.legend.Legend Maven / Gradle / Ivy

package de.gsi.chart.legend;

import java.util.List;

import de.gsi.chart.renderer.Renderer;
import de.gsi.dataset.DataSet;
import javafx.scene.Node;

public interface Legend {

    Node getNode();

    boolean isVertical();

    void setVertical(boolean value);

    /**
     * This is called whenever a series is added or removed and the legend needs to be updated
     * 
     * @param dataSets list of data sets to be displayed
     * @param renderers corresponding renderers
     */
    default void updateLegend(List dataSets, List renderers) {
        updateLegend(dataSets, renderers, false);
    }

    /**
     * This is called whenever a series is added or removed and the legend needs to be updated
     * 
     * @param dataSets list of data sets to be displayed
     * @param renderers corresponding renderers
     * @param forceUpdate {@code true} force update
     */
    void updateLegend(List dataSets, List renderers, boolean forceUpdate);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy