com.googlecode.wickedcharts.highcharts.options.processing
Class IdGeneratorProcessor

java.lang.Object
  extended by com.googlecode.wickedcharts.highcharts.options.processing.IdGeneratorProcessor
All Implemented Interfaces:
IOptionsProcessor

public class IdGeneratorProcessor
extends Object
implements IOptionsProcessor

This IOptionsProcessor assigns a unique ID to all Series, Axis and Points that are contained in an Options object.

After this processor has processed an Options object, you can retrieve the assigned IDs by calling getWickedChartsId() on the Series and Points.

Author:
Tom Hombergs (tom.hombergs@gmail.com)

Constructor Summary
IdGeneratorProcessor()
           
 
Method Summary
 void processOptions(Options options, OptionsProcessorContext context)
          Processes the given Options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdGeneratorProcessor

public IdGeneratorProcessor()
Method Detail

processOptions

public void processOptions(Options options,
                           OptionsProcessorContext context)
Description copied from interface: IOptionsProcessor
Processes the given Options. This method gives the opportunity to modify an Options object before it is rendered as JSON.

This class is not part of the public API!

Specified by:
processOptions in interface IOptionsProcessor
Parameters:
options - the Options to process or modify.
context - the context containing some context variables that may be accessed and changed by the processor.


Copyright © 2013. All Rights Reserved.