public abstract class ChartUtils extends Object
ChartUtils class.
Constructor and Description |
---|
ChartUtils() |
Modifier and Type | Method and Description |
---|---|
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
|
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 Collection<BarChart> |
getChartCollection()
Helper method used to fetch an Iterator for all defined Charts
|
static Iterator<BarChart> |
getChartCollectionIterator()
Helper method used to fetch an Iterator for all defined Charts
|
public static org.jfree.chart.JFreeChart getBarChart(String chartName) throws IOException, SQLException
chartName
- Name specified in chart-configuration.xmlJFreeChart
constructed from the chartNameIOException
- if any.SQLException
- if any.public static void getBarChart(String chartName, OutputStream out) throws IOException, SQLException
chartName
- a String
object.out
- a OutputStream
object.IOException
- if any.SQLException
- if any.public static void getBarChartPNG(String chartName, OutputStream out) throws IOException, SQLException
chartName
- a String
object.out
- a OutputStream
object.IOException
- if any.SQLException
- if any.public static byte[] getBarChartAsPNGByteArray(String chartName) throws IOException, SQLException
chartName
- a String
object.IOException
- if any.SQLException
- if any.public static BufferedImage getChartAsBufferedImage(String chartName) throws IOException, SQLException
chartName
- a String
object.BufferedImage
IOException
- if any.SQLException
- if any.public static BarChart getBarChartConfigByName(String chartName) throws IOException
chartName
- a String
object.IOException
- if any.public static Collection<BarChart> getChartCollection() throws IOException
BarChart
IteratorIOException
- if any.public static Iterator<BarChart> getChartCollectionIterator() throws IOException
BarChart
IteratorIOException
- if any.Copyright © 2021. All rights reserved.