Interface ChartStyle

All Known Implementing Classes:
AbstractChartStyle, BasicChartStyle, DefaultSimChartStyle, XMLChartStyle

public interface ChartStyle
This interface is a general super class for a design style of a JFreeChart. Sub classes should read the style from an xml element or something like that. Maybe there could be a general implementation representing a style for basic charts (bar, line and area charts) and special implementations for special chart types (e.g. financial, statistical oder spider charts).
Version:
1.0
Author:
Martin Schmitz
  • Method Details

    • getType

      Returns the type of the chart style.
      Returns:
      the type of the chart style
    • getTitle

      String getTitle()
      Returns the title for the chart.
      Returns:
      empty string if no title is set
    • setTitle

      void setTitle(String aTitle)
      Returns the title for the chart.
      Parameters:
      aTitle -
    • getXAxisTitle

      String getXAxisTitle()
      Returns the title for the chart's x-axis.
      Returns:
      empty string if no title is set
    • getYAxisTitle

      String getYAxisTitle()
      Returns the title for the chart's y-axis.
      Returns:
      empty string if no title is set
    • hasLegend

      boolean hasLegend()
      Returns:
      Returns whether the chart is configured to generate a legend.
    • hasTooltips

      boolean hasTooltips()
      Returns:
      Returns whether the chart is configured to generate tooltips for the data.
    • hasURLs

      boolean hasURLs()
      Returns:
      Returns whether the chart is configured to generate URLs.
    • applyToDataset

      org.jfree.chart.JFreeChart applyToDataset(List<org.jfree.data.general.Dataset> aDatasetList)
      Parameters:
      aDatasetList - the data for the chart
      Returns:
      a chart using the given data and the style represented by this class.
      Throws:
      UnsupportedOperationException - if the style can not be applied to the given dataset
    • setObservable

      void setObservable(FWObservable aObservable)
      Parameters:
      aObservable -