org.expasy.jpl.commons.base.render
Interface ChartRenderer

All Known Subinterfaces:
BarChartRenderer
All Known Implementing Classes:
Abstract2DChartRenderer, BarCodeRenderer, HistogramDataSetRenderer, StatisticalSerieRenderer

public interface ChartRenderer

All chart renderers will have to implements these methods.

Version:
1.0
Author:
nikitin

Method Summary
 void exportChart(String filename)
          create an image file
 Paint getChartColor(int chartIndex)
          get the color of ith chart
 ImageFormat getImageFormat()
          get the image format (jpg, png, ...)
 BufferedImage render()
          render the chart
 void setBackgroundColor(Paint color)
          set the background color
 void setChartColor(int chartIndex, Paint color)
          set the color of ith chart
 void setDimension(Dimension dim)
          set chart dimension
 void setXAxisDefaultInterval()
           
 void setXAxisInterval(double from, double to)
          set the x-axis interval to render
 void setXAxisLegend(String legend)
          set x axis legend
 void setYAxisLegend(String legend)
          set y axis legend
 

Method Detail

setChartColor

void setChartColor(int chartIndex,
                   Paint color)
set the color of ith chart


getChartColor

Paint getChartColor(int chartIndex)
get the color of ith chart


getImageFormat

ImageFormat getImageFormat()
get the image format (jpg, png, ...)


setDimension

void setDimension(Dimension dim)
set chart dimension


setBackgroundColor

void setBackgroundColor(Paint color)
set the background color


setXAxisInterval

void setXAxisInterval(double from,
                      double to)
set the x-axis interval to render


setXAxisDefaultInterval

void setXAxisDefaultInterval()

setXAxisLegend

void setXAxisLegend(String legend)
set x axis legend


setYAxisLegend

void setYAxisLegend(String legend)
set y axis legend


render

BufferedImage render()
                     throws ImageRenderingException
render the chart

Throws:
ImageRenderingException

exportChart

void exportChart(String filename)
                 throws ImageRenderingException
create an image file

Throws:
ImageRenderingException


Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.