org.eclipse.modisco.utils.chart.birt.core.internal.exported
Class BirtGraphHelper

java.lang.Object
  extended by org.eclipse.modisco.utils.chart.birt.core.internal.exported.BirtGraphHelper

public final class BirtGraphHelper
extends java.lang.Object

Class providing support for generating a chart with Birt in png The chart is generated from a birtchart model @see org.eclipse.modisco.utils.chart.metamodel

Author:
Guillaume Doux

Method Summary
 void createBirtGraph(Chart birtChart, java.io.File targetFolder, java.lang.String fileName)
          Create a Birt chart using the chart passed with the birtchart parameter Works only with graph having 2 dimensions
 java.util.List<ColorDefinition> getColors()
           
static BirtGraphHelper getInstance()
          Give an instance of the chart generator
 void setColors(java.util.List<ColorDefinition> colors)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColors

public java.util.List<ColorDefinition> getColors()

setColors

public void setColors(java.util.List<ColorDefinition> colors)

getInstance

public static BirtGraphHelper getInstance()
Give an instance of the chart generator

Returns:
the BirtGraphHelper

createBirtGraph

public void createBirtGraph(Chart birtChart,
                            java.io.File targetFolder,
                            java.lang.String fileName)
                     throws java.lang.Exception
Create a Birt chart using the chart passed with the birtchart parameter Works only with graph having 2 dimensions

Parameters:
birtChart -
targetFolder -
fileName+".png" - name of the png file (without extension)
Throws:
ChartException, - Exception
java.lang.Exception