EchoPoint
1.0

echopoint.meter
Class MeterModelJFreeChartAdapter

java.lang.Object
  extended byechopoint.meter.MeterModelJFreeChartAdapter
All Implemented Interfaces:
nextapp.echo.event.ChangeListener, java.util.EventListener, java.io.Serializable

public class MeterModelJFreeChartAdapter
extends java.lang.Object
implements nextapp.echo.event.ChangeListener, java.io.Serializable

This class acts as a bridge between the Echo model architecture and the JFreeChart DataSet model architecture. Changes in the MeterModel are reflected into a backing MeterDataSet object which can then be used by a JFreeChart.

See Also:
Serialized Form

Constructor Summary
MeterModelJFreeChartAdapter()
          MeterModelAdapter constructor.
MeterModelJFreeChartAdapter(MeterModel model)
           
 
Method Summary
 org.jfree.data.MeterDataset getDataSet()
          Returns the JFreeChart MeterDataSet in use.
 MeterModel getModel()
          Returns the MeterModel in use.
 void setModel(MeterModel newModel)
          Sets trhe MeterModel to be "bridged"
 void stateChanged(nextapp.echo.event.ChangeEvent e)
          Invoked when a state change occurs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeterModelJFreeChartAdapter

public MeterModelJFreeChartAdapter()
MeterModelAdapter constructor.


MeterModelJFreeChartAdapter

public MeterModelJFreeChartAdapter(MeterModel model)
Method Detail

getDataSet

public org.jfree.data.MeterDataset getDataSet()
Returns the JFreeChart MeterDataSet in use.


getModel

public MeterModel getModel()
Returns the MeterModel in use.

Returns:
echopoint.meter.MeterModel

setModel

public void setModel(MeterModel newModel)
Sets trhe MeterModel to be "bridged"

Parameters:
newModel - echopoint.meter.MeterModel

stateChanged

public void stateChanged(nextapp.echo.event.ChangeEvent e)
Invoked when a state change occurs. The Adapter is listening on the MeterModel and informing the MeterDataset.

Specified by:
stateChanged in interface nextapp.echo.event.ChangeListener
Parameters:
e - The event describing the state change.

EchoPoint
1.0