Klasse DefaultSimChartStyle

java.lang.Object
net.simplace.core.ui.jfreechart.AbstractChartStyle
net.simplace.core.ui.jfreechart.DefaultSimChartStyle
Alle implementierten Schnittstellen:
ChartStyle

public class DefaultSimChartStyle extends AbstractChartStyle
This class provides a basis chart style for line, area an bar charts.
Version:
1.0
Autor:
Andreas Enders
  • Felddetails

    • iOrientation

      protected org.jfree.chart.plot.PlotOrientation iOrientation
      Stores the orientation of the chart.
  • Konstruktordetails

    • DefaultSimChartStyle

      public DefaultSimChartStyle()
      Creates a normal line style with default values.
    • DefaultSimChartStyle

      public DefaultSimChartStyle(ChartStyle.ChartType aType)
      Creates a normal, vertical line, bar or area style.
      Parameter:
      aType - type of the chart layout
    • DefaultSimChartStyle

      public DefaultSimChartStyle(ChartStyle.ChartType aType, String aTitle, String aXTitle, String aYTitle, boolean aLegend, boolean aTooltips, boolean aURLs, Map<org.jfree.data.general.Dataset,FWSimVariable<?>> aDatasetMap, FWSimIOAdapter.FREQUENCE aFrequence)
      Creates a chart style.
      Parameter:
      aType - style type
      aTitle - title for the chart
      aXTitle - title for the chart's X-axis
      aYTitle - title for the chart's Y-axis
      aLegend - flag whether a legend is generated
      aTooltips - flag whether tool tips are generated
      aURLs - flag whether URLs are generated
      aDatasetMap -
      aFrequence -
      aStacked - flag whether the chart is stacked (ignored for line charts)
      aStepped - flag whether the chart is stepped (ignored for bar charts)
      aOrientation - orientation of the chart (
      Ungültige Referenz
      PlotOrientation.VERTICAL
      or
      Ungültige Referenz
      PlotOrientation.HORIZONTAL
      )
  • Methodendetails

    • applyToDataset

      public org.jfree.chart.JFreeChart applyToDataset(List<org.jfree.data.general.Dataset> aDataset)
      Generates a chart using the given data and the style represented by this class.
      Parameter:
      aDataset - the data for the chart
      Gibt zurück:
      JFreeChart
      Löst aus:
      UnsupportedOperationException - if the style can not be applied to the given dataset