|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.chart.ChartFactory
public class ChartFactory
Name: PieChart2D
Description: A class rendering 2D pie charts.
| Constructor Summary | |
|---|---|
ChartFactory()
|
|
| Method Summary | |
|---|---|
static Chart |
createChart(String type)
Creates a chart instance. |
static Chart |
createChart(String type,
ChartModel model,
ChartAttributes attributes)
Creates a chart instance. |
static void |
registerChart(String name,
Class clazz)
Registers the given chart class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChartFactory()
| Method Detail |
|---|
public static final void registerChart(String name,
Class clazz)
name - The chart's name.clazz - The chart class to register.
public static Chart createChart(String type)
throws ChartException
type - The name of the chart type to instanciate.
ChartException - In case the chart construction or configuration failed.
public static Chart createChart(String type,
ChartModel model,
ChartAttributes attributes)
throws ChartException
type - The name of the chart type to instanciate.model - The chart model.attributes - The chart attributes.
ChartException - In case the chart construction or configuration failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||