1 42 43 package org.jfree.chart.editor; 44 45 import org.jfree.chart.JFreeChart; 46 47 53 public class ChartEditorManager { 54 55 56 static ChartEditorFactory factory = new DefaultChartEditorFactory(); 57 58 61 private ChartEditorManager() { 62 } 64 65 70 public static ChartEditorFactory getChartEditorFactory() { 71 return factory; 72 } 73 74 79 public static void setChartEditorFactory(ChartEditorFactory f) { 80 if (f == null) { 81 throw new IllegalArgumentException ("Null 'f' argument."); 82 } 83 factory = f; 84 } 85 86 93 public static ChartEditor getChartEditor(JFreeChart chart) { 94 return factory.createEditor(chart); 95 } 96 } 97 | Popular Tags |