ERPCategoryChart Class Reference

Inherits er::plot::ERPChart.

Collaboration diagram for ERPCategoryChart:

Collaboration graph
[legend]

List of all members.

Public Member Functions

String categoryKey ()
 ERPCategoryChart (WOContext context)
PlotOrientation orientation ()
void reset ()
String xName ()
String yName ()

Static Public Attributes

static final NSArray< StringSUPPORTED_TYPES

Protected Member Functions

JFreeChart createChart ()
Dataset createDataset ()
NSArray< StringsupportedTypes ()

Protected Attributes

String _categoryKey
PlotOrientation _orientation
String _xName
String _yName


Detailed Description

Display a category chart - a chart where you have 2 or 3 dimensions. The most important binding is items which should contain an array of objects from which the values xNameKey, yNameKey, categoryKey and valueKey are retrieved. For example, you might have an array of line items, with a valueKey amount, an xNameKey with invoice.datePurchased, yNameKey, categoryKeyand a nameKey product.name.

name the name of the chart chartType the type of the chart (possible values depend on the concrete subclass) imageType the type of the image to show: png (default) or jpeg width the width of the chart (400 pixel if not specified) height the height of the chart (400 pixel if not specified) dataset Dataset to use. If this is given, then items, nameKey, valueKey and categoryKey are not considered. items array of values to display the chart for nameKey the key for the name (must return Comparable) valueKey the key for the value (must return Number) categoryKey the key for the categories (optional, must return Comparable) xName the name for the x axis (String) yName the name for the y axis (String) showLegends true, if legends should be shown showToolTips true, if tool tips should be shown showUrls true, if urls should be shown orientation either "horizontal" (default) or "vertical" chart Chart to use instead of the created one. If this binding is set-able, then it will be set to the actually used chart configuration NSDictionary that will be applied to the chart via key-value-coding prior to rendering. Contains entries like antiAlias=true or categoryPlot.dataAreaRatio = 0.8.

Author:
ak

Constructor & Destructor Documentation

ERPCategoryChart ( WOContext  context  ) 


Member Function Documentation

String categoryKey (  ) 

JFreeChart createChart (  )  [protected, virtual]

Implements ERPChart.

Dataset createDataset (  )  [protected, virtual]

Implements ERPChart.

PlotOrientation orientation (  ) 

void reset (  ) 

Reimplemented from ERPChart.

NSArray<String> supportedTypes (  )  [protected, virtual]

Implements ERPChart.

String xName (  ) 

String yName (  ) 


Member Data Documentation

String _categoryKey [protected]

PlotOrientation _orientation [protected]

String _xName [protected]

String _yName [protected]

final NSArray<String> SUPPORTED_TYPES [static]

Initial value:

 new NSArray<String>(new String[]{
            "BarChart", "StackedBarChart", "BarChart3D", "StackedBarChart3D", "AreaChart", 
            "StackedAreaChart", "LineChart", "WaterfallChart"
    })


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:26 2012 for Project Wonder by  doxygen 1.5.8