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

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.graph.conf.GraphConfig
All Implemented Interfaces:
Constants

public class GraphConfig
extends java.lang.Object
implements Constants

Graph configuration.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.jasmine.monitoring.mbeancmd.graph.conf.Constants
Constants.DataType
 
Field Summary
private  java.lang.String id
          Graph identifier.
private  Configuration parent
          Parent configuration.
private  java.util.Map<java.lang.String,java.lang.String> series
          Map of series.
private  java.lang.String title
          Graph title.
 
Fields inherited from interface org.ow2.jasmine.monitoring.mbeancmd.graph.conf.Constants
DATEFORMAT_LONG, GRAPH_CONFIG_PATH
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private java.lang.String id
Graph identifier.


title

private java.lang.String title
Graph title.


series

private java.util.Map<java.lang.String,java.lang.String> series
Map of series.


parent

private Configuration parent
Parent configuration.

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.