Ejemplo n.º 1
0
 /**
  * Sets the style that will be used when creating new charts.
  *
  * @param style the style ({@code null} not permitted).
  * @since 1.2
  */
 public static void setDefaultChartStyle(ChartStyle style) {
   ArgChecks.nullNotPermitted(style, "style");
   defaultStyle = style.clone();
 }
Ejemplo n.º 2
0
 /**
  * Returns a new instance of the default chart style (so that, by default, all charts will have an
  * independent style instance).
  *
  * @return The default chart style (never {@code null}).
  * @since 1.2
  */
 public static ChartStyle getDefaultChartStyle() {
   return defaultStyle.clone();
 }