Package org.jfree.chart.editor
Class ChartEditorManager
- java.lang.Object
-
- org.jfree.chart.editor.ChartEditorManager
-
public class ChartEditorManager extends java.lang.ObjectThe central point for obtainingChartEditorinstances for editing charts. Right now, the API is minimal - the plan is to extend this class to provide customisation options for chart editors (for example, make some editor items read-only).
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static ChartEditorFactoryfactoryThis factory creates newChartEditorinstances as required.
-
Constructor Summary
Constructors Modifier Constructor Description privateChartEditorManager()Private constructor prevents instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChartEditorgetChartEditor(JFreeChart chart)Returns a component that can be used to edit the given chart.static ChartEditorFactorygetChartEditorFactory()Returns the current factory.static voidsetChartEditorFactory(ChartEditorFactory f)Sets the chart editor factory.
-
-
-
Field Detail
-
factory
static ChartEditorFactory factory
This factory creates newChartEditorinstances as required.
-
-
Method Detail
-
getChartEditorFactory
public static ChartEditorFactory getChartEditorFactory()
Returns the current factory.- Returns:
- The current factory (never
null).
-
setChartEditorFactory
public static void setChartEditorFactory(ChartEditorFactory f)
Sets the chart editor factory.- Parameters:
f- the new factory (nullnot permitted).
-
getChartEditor
public static ChartEditor getChartEditor(JFreeChart chart)
Returns a component that can be used to edit the given chart.- Parameters:
chart- the chart.- Returns:
- The chart editor.
-
-