org.ow2.jasmine.monitoring.mbeancmd.graph
Class Graph

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.graph.Graph
All Implemented Interfaces:
SerieListener

public class Graph
extends java.lang.Object
implements SerieListener

Implements a graph.


Field Summary
private  GraphConfig conf
          Graph configuration.
private  GraphDisplay display
          Graph display.
private  java.util.logging.Logger logger
          Event logger.
 
Constructor Summary
Graph(GraphConfig conf)
          Constructor: creates the graph based on the configuration and starts logging if enabled.
 
Method Summary
 GraphConfig getConfig()
           
 void update(java.lang.String serie, double x, double y)
          Implementation of inherited method.
 void update(java.lang.String serie, double x, long y)
          Implementation of inherited method.
 void update(java.lang.String serie, long t, double y)
          Implementation of inherited method.
 void update(java.lang.String serie, long x, long y)
          Implementation of inherited method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conf

private GraphConfig conf
Graph configuration.


display

private GraphDisplay display
Graph display.


logger

private java.util.logging.Logger logger
Event logger.

Constructor Detail

Graph

public Graph(GraphConfig conf)
Constructor: creates the graph based on the configuration and starts logging if enabled.

Parameters:
conf - Graph configuration.
Method Detail

update

public void update(java.lang.String serie,
                   long x,
                   long y)
Implementation of inherited method.

Specified by:
update in interface SerieListener
Parameters:
serie - Name of the series.
x - Abscissa of the new point.
y - Ordinate of the new point.
See Also:
SerieListener.update(String, long, long)

update

public void update(java.lang.String serie,
                   long t,
                   double y)
Implementation of inherited method.

Specified by:
update in interface SerieListener
Parameters:
serie - Name of the series.
t - Abscissa of the new point.
y - Ordinate of the new point.
See Also:
SerieListener.update(String, long, double)

update

public void update(java.lang.String serie,
                   double x,
                   long y)
Implementation of inherited method.

Specified by:
update in interface SerieListener
Parameters:
serie - Name of the series.
x - Abscissa of the new point.
y - Ordinate of the new point.
See Also:
SerieListener.update(String, double, long)

update

public void update(java.lang.String serie,
                   double x,
                   double y)
Implementation of inherited method.

Specified by:
update in interface SerieListener
Parameters:
serie - Name of the series.
x - Abscissa of the new point.
y - Ordinate of the new point.
See Also:
SerieListener.update(String, double, double)

getConfig

public GraphConfig getConfig()
Returns:
Graph configuration.