|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.charts.ChartUtils
public class ChartUtils
| Constructor Summary | |
|---|---|
ChartUtils()
|
|
| Method Summary | |
|---|---|
static org.jfree.chart.JFreeChart |
getBarChart(String chartName)
This method will returns a JFreeChart bar chart constructed based on XML configuration. |
static void |
getBarChart(String chartName,
OutputStream out)
Helper method that returns the JFreeChart to an output stream written in JPEG format. |
static byte[] |
getBarChartAsPNGByteArray(String chartName)
Helper method that returns the JFreeChart as a PNG byte array. |
static BarChart |
getBarChartConfigByName(String chartName)
Helper method used to retrieve the XML defined BarChart (castor class) |
static void |
getBarChartPNG(String chartName,
OutputStream out)
Helper method that returns the JFreeChart to an output stream written in JPEG format. |
static BufferedImage |
getChartAsBufferedImage(String chartName)
Helper method used to return a JFreeChart as a buffered Image. |
static Iterator |
getChartCollectionIterator()
Helper method used to fetch an Iterator for all defined Charts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChartUtils()
| Method Detail |
|---|
public static org.jfree.chart.JFreeChart getBarChart(String chartName)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException,
SQLException
chartName - Name specified in chart-configuration.xml
JFreeChart constructed from the chartName
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
SQLException
public static void getBarChart(String chartName,
OutputStream out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException,
SQLException
chartName - out -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
SQLException
public static void getBarChartPNG(String chartName,
OutputStream out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException,
SQLException
chartName - out -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
SQLException
public static byte[] getBarChartAsPNGByteArray(String chartName)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException,
SQLException
chartName -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
SQLException
public static BufferedImage getChartAsBufferedImage(String chartName)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException,
SQLException
chartName -
BufferedImage
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
SQLException
public static BarChart getBarChartConfigByName(String chartName)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
chartName -
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
IOException
public static Iterator getChartCollectionIterator()
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
BarChart Iterator
IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||