org.opennms.netmgt.config.charts
Class ChartConfiguration

java.lang.Object
  extended by org.opennms.netmgt.config.charts.ChartConfiguration
All Implemented Interfaces:
java.io.Serializable

public class ChartConfiguration
extends java.lang.Object
implements java.io.Serializable

Class ChartConfiguration.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
ChartConfiguration()
           
 
Method Summary
 void addBarChart(BarChart vBarChart)
          Method addBarChart
 void addBarChart(int index, BarChart vBarChart)
          Method addBarChart
 void clearBarChart()
          Method clearBarChart
 java.util.Enumeration enumerateBarChart()
          Method enumerateBarChart
 BarChart[] getBarChart()
          Method getBarChart
 BarChart getBarChart(int index)
          Method getBarChart
 java.util.ArrayList getBarChartCollection()
          Method getBarChartCollection Returns a reference to 'barChart'.
 int getBarChartCount()
          Method getBarChartCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeBarChart(BarChart vBarChart)
          Method removeBarChart
 void setBarChart(java.util.ArrayList barChartCollection)
          Method setBarChart Sets the value of 'barChart' by copying the given ArrayList.
 void setBarChart(BarChart[] barChartArray)
          Method setBarChart
 void setBarChart(int index, BarChart vBarChart)
          Method setBarChart
 void setBarChartCollection(java.util.ArrayList barChartCollection)
          Method setBarChartCollection Sets the value of 'barChart' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartConfiguration

public ChartConfiguration()
Method Detail

addBarChart

public void addBarChart(BarChart vBarChart)
                 throws java.lang.IndexOutOfBoundsException
Method addBarChart

Parameters:
vBarChart -
Throws:
java.lang.IndexOutOfBoundsException

addBarChart

public void addBarChart(int index,
                        BarChart vBarChart)
                 throws java.lang.IndexOutOfBoundsException
Method addBarChart

Parameters:
index -
vBarChart -
Throws:
java.lang.IndexOutOfBoundsException

clearBarChart

public void clearBarChart()
Method clearBarChart


enumerateBarChart

public java.util.Enumeration enumerateBarChart()
Method enumerateBarChart

Returns:
Enumeration

getBarChart

public BarChart getBarChart(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getBarChart

Parameters:
index -
Returns:
BarChart
Throws:
java.lang.IndexOutOfBoundsException

getBarChart

public BarChart[] getBarChart()
Method getBarChart

Returns:
BarChart

getBarChartCollection

public java.util.ArrayList getBarChartCollection()
Method getBarChartCollection Returns a reference to 'barChart'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getBarChartCount

public int getBarChartCount()
Method getBarChartCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeBarChart

public boolean removeBarChart(BarChart vBarChart)
Method removeBarChart

Parameters:
vBarChart -
Returns:
boolean

setBarChart

public void setBarChart(int index,
                        BarChart vBarChart)
                 throws java.lang.IndexOutOfBoundsException
Method setBarChart

Parameters:
index -
vBarChart -
Throws:
java.lang.IndexOutOfBoundsException

setBarChart

public void setBarChart(BarChart[] barChartArray)
Method setBarChart

Parameters:
barChartArray -

setBarChart

public void setBarChart(java.util.ArrayList barChartCollection)
Method setBarChart Sets the value of 'barChart' by copying the given ArrayList.

Parameters:
barChartCollection - the Vector to copy.

setBarChartCollection

public void setBarChartCollection(java.util.ArrayList barChartCollection)
Method setBarChartCollection Sets the value of 'barChart' by setting it to the given ArrayList. No type checking is performed.

Parameters:
barChartCollection - the ArrayList to copy.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.