org.ow2.jasmine.monitoring.mbeancmd.graph.conf
Class GraphConfig

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.graph.conf.Constants
      extended by org.ow2.jasmine.monitoring.mbeancmd.graph.conf.GraphConfig

public class GraphConfig
extends Constants

Graph configuration.


Field Summary
 
Fields inherited from class org.ow2.jasmine.monitoring.mbeancmd.graph.conf.Constants
DOUBLE, GRAPH_CONFIG_PATH, LONG, TIME
 
Constructor Summary
GraphConfig(Configuration parent)
          Creates a graph configuration based on a Configuration parent.
 
Method Summary
 void addSerie(java.lang.String id, java.lang.String legend)
          Adds a series.
 java.lang.String getId()
           
 java.lang.String getLegend(java.lang.String id)
          Gets the legend for a given id.
 Configuration getParent()
           
 java.lang.String[] getSerieIds()
           
 java.lang.String getTitle()
           
 void setId(java.lang.String id)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.ow2.jasmine.monitoring.mbeancmd.graph.conf.Constants
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphConfig

public GraphConfig(Configuration parent)
Creates a graph configuration based on a Configuration parent.

Parameters:
parent - Configuration parent.
Method Detail

getParent

public Configuration getParent()
Returns:
Configuration parent.

getLegend

public java.lang.String getLegend(java.lang.String id)
Gets the legend for a given id.

Parameters:
id - Identifier to search for.
Returns:
Legend corresponding to id.

addSerie

public void addSerie(java.lang.String id,
                     java.lang.String legend)
Adds a series.

Parameters:
id - Identifier of the series.
legend - Legend name.

getSerieIds

public java.lang.String[] getSerieIds()
Returns:
Identifiers of all series.

getTitle

public java.lang.String getTitle()
Returns:
Graph title.

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - New graph title.

getId

public java.lang.String getId()
Returns:
Graph identifier.

setId

public void setId(java.lang.String id)
Parameters:
id - Graph identifier to set.


Copyright © 2010 OW2 Consortium. All Rights Reserved.