ca.sqlpower.wabit.report.chart
Class ChartUtil

java.lang.Object
  extended by ca.sqlpower.wabit.report.chart.ChartUtil

public class ChartUtil
extends java.lang.Object

A bucket of static goodness for dealing with the chart API.


Method Summary
static void setDefaults(Chart chart)
          Sets the given chart to its default settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDefaults

public static void setDefaults(@Nonnull
                               Chart chart)
Sets the given chart to its default settings. The particular defaults chosen depend on the chart's current type. All other settings are subject to change.

Note: with a little thought, we could move this behaviour into the DatasetTypes enum. That would be better design.

Parameters:
chart - The chart to set to a useful default configuration.


Copyright © 2009. All Rights Reserved.