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 or spider charts).
Author:
Martin Schmitz
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Enum representing the style type of a chart (bar, line, area)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jfree.chart.JFreeChart
    applyToDataset(List<org.jfree.data.general.Dataset> aDatasetList)
     
    Returns the title for the chart.
    Returns the type of the chart style.
    Returns the title for the chart's x-axis.
    Returns the title for the chart's y-axis.
    boolean
     
    boolean
     
    boolean
     
    void
    setObservable(net.simplace.core.FWObservable aObservable)
    Sets the observable used to resolve parameters and captions of the style.
    void
    setTitle(String aTitle)
    Sets the title for the chart.
  • 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)
      Sets the title for the chart.
      Parameters:
      aTitle - the new chart title
    • 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:
      true if the chart is configured to generate a legend
    • hasTooltips

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

      boolean hasURLs()
      Returns:
      true if 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(net.simplace.core.FWObservable aObservable)
      Sets the observable used to resolve parameters and captions of the style.
      Parameters:
      aObservable - the observable, may be null