Class ChartViewer
java.lang.Object
org.eclipse.jface.viewers.Viewer
com._1c.g5.v8.dt.form.ui.internal.chart.editor.ChartViewer
- All Implemented Interfaces:
IChartSelectionListener
,IInputProvider
,IInputSelectionProvider
,ISelectionProvider
A viewer for displaying charts.
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionChartViewer
(org.eclipse.swt.widgets.Composite parent, IModelApi modelApi, ChartImageProvider chartImageProvider, String currentLanguageCode, boolean isReadOnlyMode) Creates new viewer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when chart legend selected.void
Called when chart main area selected.void
Called when chart title selected.org.eclipse.swt.widgets.Control
getInput()
void
refresh()
void
void
setSelection
(ISelection selection, boolean reveal) void
Called when the whole chart selected.Methods inherited from class org.eclipse.jface.viewers.Viewer
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, inputChanged, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection
-
Constructor Details
-
ChartViewer
public ChartViewer(org.eclipse.swt.widgets.Composite parent, IModelApi modelApi, ChartImageProvider chartImageProvider, String currentLanguageCode, boolean isReadOnlyMode) Creates new viewer.- Parameters:
parent
- the parent control, cannot benull
modelApi
- theIModelApi
instance, cannot benull
chartImageProvider
- the provider of chart images, cannot benull
currentLanguageCode
- the language code of the current project, cannot benull
isReadOnlyMode
- the flag indicating that chart editing is not allowed
-
-
Method Details
-
getControl
public org.eclipse.swt.widgets.Control getControl()- Specified by:
getControl
in classViewer
-
getInput
- Specified by:
getInput
in interfaceIInputProvider
- Specified by:
getInput
in classViewer
-
setInput
-
refresh
public void refresh() -
getSelection
- Specified by:
getSelection
in interfaceISelectionProvider
- Specified by:
getSelection
in classViewer
-
setSelection
- Specified by:
setSelection
in classViewer
-
wholeChartSelected
public void wholeChartSelected()Description copied from interface:IChartSelectionListener
Called when the whole chart selected.- Specified by:
wholeChartSelected
in interfaceIChartSelectionListener
-
chartMainAreaSelected
public void chartMainAreaSelected()Description copied from interface:IChartSelectionListener
Called when chart main area selected.- Specified by:
chartMainAreaSelected
in interfaceIChartSelectionListener
-
chartLegendSelected
public void chartLegendSelected()Description copied from interface:IChartSelectionListener
Called when chart legend selected.- Specified by:
chartLegendSelected
in interfaceIChartSelectionListener
-
chartTitleSelected
public void chartTitleSelected()Description copied from interface:IChartSelectionListener
Called when chart title selected.- Specified by:
chartTitleSelected
in interfaceIChartSelectionListener
-