com.day.cq.graphics.chart
Class Chart

java.lang.Object
  extended by com.day.cq.graphics.chart.Chart
Direct Known Subclasses:
BarChart, LineChart, PieChart

public abstract class Chart
extends Object

Implementations extend this

Author:
tripod

Field Summary
static HashMap<String,Class<?>> chartTypes
           
 
Constructor Summary
protected Chart()
           
 
Method Summary
abstract  com.day.image.Layer draw(Graph graph, boolean doDraw)
           
static Chart getInstance(String typeName)
           
static String getName()
          Returns the identification name of the chart
protected static void registerChartType(Class<?> chartClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chartTypes

public static final HashMap<String,Class<?>> chartTypes
Constructor Detail

Chart

protected Chart()
Method Detail

registerChartType

protected static void registerChartType(Class<?> chartClass)

getName

public static String getName()
Returns the identification name of the chart

Returns:
the identification name of the chart

getInstance

public static Chart getInstance(String typeName)
                         throws NoSuchElementException
Throws:
NoSuchElementException

draw

public abstract com.day.image.Layer draw(Graph graph,
                                         boolean doDraw)


Copyright © 2008 Day Management AG. All Rights Reserved.