Interface StyleAttribute

All Superinterfaces:
PlotAttribute
All Known Implementing Classes:
LabelAttribute, PaintAttribute, PaintScaleAttribute, ShapeAttribute, SizeAttribute, TooltipAttribute

public interface StyleAttribute extends PlotAttribute
Interface for customizing the style of series plotted in a graph. Style attributes are best-effort, meaning if a style is applied to a plot not supporting that style, it is silently ignored.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    apply(org.jfree.chart.plot.Plot plot, int dataset)
    Applies the style to all series within the specified dataset.
    void
    apply(org.jfree.chart.plot.Plot plot, int dataset, int series)
    Applies the style to a specific dataset and series.
  • Method Details

    • apply

      void apply(org.jfree.chart.plot.Plot plot, int dataset, int series)
      Applies the style to a specific dataset and series.
      Parameters:
      plot - the plot
      dataset - the index of the dataset
      series - the index of the series
    • apply

      default void apply(org.jfree.chart.plot.Plot plot, int dataset)
      Applies the style to all series within the specified dataset.
      Parameters:
      plot - the plot
      dataset - the index of the dataset