Package org.jfree.chart.editor
Class ChartEditorManager
java.lang.Object
org.jfree.chart.editor.ChartEditorManager
The central point for obtaining
ChartEditor instances 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
FieldsModifier and TypeFieldDescription(package private) static ChartEditorFactoryThis factory creates newChartEditorinstances as required. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor prevents instantiation. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChartEditorgetChartEditor(JFreeChart chart) Returns a component that can be used to edit the given chart.static ChartEditorFactoryReturns the current factory.static voidSets the chart editor factory.
-
Field Details
-
factory
This factory creates newChartEditorinstances as required.
-
-
Constructor Details
-
ChartEditorManager
private ChartEditorManager()Private constructor prevents instantiation.
-
-
Method Details
-
getChartEditorFactory
Returns the current factory.- Returns:
- The current factory (never
null).
-
setChartEditorFactory
Sets the chart editor factory.- Parameters:
f- the new factory (nullnot permitted).
-
getChartEditor
Returns a component that can be used to edit the given chart.- Parameters:
chart- the chart.- Returns:
- The chart editor.
-