Class LabelAttribute

java.lang.Object
org.moeaframework.analysis.plot.style.LabelAttribute
All Implemented Interfaces:
PlotAttribute, StyleAttribute

public class LabelAttribute extends Object implements StyleAttribute
Styles the label rendered alongside each data point.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LabelAttribute(String formatString)
    Constructs a new style attribute that renders labels.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.jfree.chart.plot.Plot plot, int dataset, int series)
    Applies the style to a specific dataset and series.
    of()
    Returns a style attribute that renders labels alongside points.
    of(String formatString)
    Returns a style attribute that renders labels alongside points.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.moeaframework.analysis.plot.style.StyleAttribute

    apply
  • Constructor Details

    • LabelAttribute

      public LabelAttribute(String formatString)
      Constructs a new style attribute that renders labels.
      Parameters:
      formatString - the format string, or null to use the default
  • Method Details

    • apply

      public void apply(org.jfree.chart.plot.Plot plot, int dataset, int series)
      Description copied from interface: StyleAttribute
      Applies the style to a specific dataset and series.
      Specified by:
      apply in interface StyleAttribute
      Parameters:
      plot - the plot
      dataset - the index of the dataset
      series - the index of the series
    • of

      public static LabelAttribute of()
      Returns a style attribute that renders labels alongside points.
      Returns:
      the resulting style attribute
    • of

      public static LabelAttribute of(String formatString)
      Returns a style attribute that renders labels alongside points.
      Parameters:
      formatString - the format string
      Returns:
      the resulting style attribute