org.openi.chart
Class ChartCustomizer

java.lang.Object
  extended by org.openi.chart.ChartCustomizer

public class ChartCustomizer
extends java.lang.Object

customizes chart properties based on model (enhanced chart component)


Constructor Summary
ChartCustomizer()
           
 
Method Summary
 void customizeChart(org.jfree.chart.JFreeChart chart, java.awt.Paint bgPaint, java.awt.Font axisFont, java.awt.Font axisTickFont, java.awt.Font legendFont, int legendPosition, double tickLabelRotate, float foregoundAlpha)
           
 void customizeSlicer(org.jfree.chart.JFreeChart chart, com.tonbeller.jpivot.olap.model.Result result, java.awt.Font slicerFont, int slicerPosition, int slicerAlignment, java.util.Locale locale)
           
 void formatNumberAxis(java.text.NumberFormat numberFormatter, org.jfree.chart.plot.CategoryPlot plot)
           
 void generatePareto(org.jfree.chart.plot.CategoryPlot plot)
           
 void setupSeriesPaint(java.util.List paintList, org.jfree.chart.renderer.category.CategoryItemRenderer renderer)
          Series paint will be set in the list order of the colorPallette parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartCustomizer

public ChartCustomizer()
Method Detail

customizeChart

public void customizeChart(org.jfree.chart.JFreeChart chart,
                           java.awt.Paint bgPaint,
                           java.awt.Font axisFont,
                           java.awt.Font axisTickFont,
                           java.awt.Font legendFont,
                           int legendPosition,
                           double tickLabelRotate,
                           float foregoundAlpha)

setupSeriesPaint

public void setupSeriesPaint(java.util.List paintList,
                             org.jfree.chart.renderer.category.CategoryItemRenderer renderer)
Series paint will be set in the list order of the colorPallette parameter. Can contain a list of any java.awt.Paint objects (Color, GradientPaint, etc). Will only attempt if the paintList is not null.

Parameters:
colorPalette - list of java.awt.Paint objects
renderer -

generatePareto

public void generatePareto(org.jfree.chart.plot.CategoryPlot plot)

formatNumberAxis

public void formatNumberAxis(java.text.NumberFormat numberFormatter,
                             org.jfree.chart.plot.CategoryPlot plot)

customizeSlicer

public void customizeSlicer(org.jfree.chart.JFreeChart chart,
                            com.tonbeller.jpivot.olap.model.Result result,
                            java.awt.Font slicerFont,
                            int slicerPosition,
                            int slicerAlignment,
                            java.util.Locale locale)