ERPChart Class Reference

Inherits er::extensions::components::ERXStatelessComponent.

Inherited by ERPCategoryChart, and ERPPieChart.

Collaboration diagram for ERPChart:

Collaboration graph
[legend]

List of all members.

Public Member Functions

JFreeChart chart ()
String chartType ()
NSDictionary< String,?> configuration ()
Dataset dataset ()
 ERPChart (WOContext context)
int height ()
NSData imageData ()
String imageMap ()
String imageType ()
NSArray<?> items ()
String nameKey ()
String otherTagString ()
void reset ()
boolean showLegends ()
boolean showToolTips ()
boolean showUrls ()
String valueKey ()
int width ()

Public Attributes

String _imageKey
String _imageMap
String _imageMapName

Protected Member Functions

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

Protected Attributes

JFreeChart _chart
String _chartType
NSDictionary< String,?> _configuration
Dataset _dataset
int _height = 0
NSData _imageData
String _imageType
NSArray<?> _items
String _name
String _nameKey
String _valueKey
int _width = 0

Static Protected Attributes

static final int DEFAULT_SIZE = 400
static final Logger log = Logger.getLogger(ERPChart.class)


Detailed Description

Abstract superclass of the charts. The most important binding is items which should contain an array of objects from which the values nameKey and valueKey are retrieved. For example, you might have an array of line items, with a valueKey amount and 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) showLegends true, if legends should be shown showToolTips true, if tool tips should be shown showUrls true, if urls should be shown chart Chart to use instead of the created one. If this binding is setable, 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

ERPChart ( WOContext  context  ) 

Public constructor

Parameters:
context the context


Member Function Documentation

JFreeChart chart (  ) 

String chartType (  ) 

NSDictionary<String,?> configuration (  ) 

abstract JFreeChart createChart (  )  [protected, pure virtual]

Implemented in ERPCategoryChart, and ERPPieChart.

abstract Dataset createDataset (  )  [protected, pure virtual]

Implemented in ERPCategoryChart, and ERPPieChart.

Dataset dataset (  ) 

int height (  ) 

NSData imageData (  ) 

String imageMap (  ) 

String imageType (  ) 

NSArray<?> items (  ) 

String nameKey (  ) 

Reimplemented in ERPPieChart.

String otherTagString (  ) 

void reset (  ) 

Reimplemented from ERXStatelessComponent.

Reimplemented in ERPCategoryChart.

boolean showLegends (  ) 

boolean showToolTips (  ) 

boolean showUrls (  ) 

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

Implemented in ERPCategoryChart, and ERPPieChart.

String valueKey (  ) 

Reimplemented in ERPPieChart.

int width (  ) 


Member Data Documentation

JFreeChart _chart [protected]

String _chartType [protected]

NSDictionary<String,?> _configuration [protected]

Dataset _dataset [protected]

int _height = 0 [protected]

NSData _imageData [protected]

String _imageType [protected]

NSArray<?> _items [protected]

String _name [protected]

String _nameKey [protected]

String _valueKey [protected]

int _width = 0 [protected]

final int DEFAULT_SIZE = 400 [static, protected]

final Logger log = Logger.getLogger(ERPChart.class) [static, protected]

logging support


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