Index: src/Common/DelftTools.Controls.Swf/Charting/IChartView.cs =================================================================== diff -u -r0f4f3090613131cc878aeff213dd14e7658e0a7b -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/Common/DelftTools.Controls.Swf/Charting/IChartView.cs (.../IChartView.cs) (revision 0f4f3090613131cc878aeff213dd14e7658e0a7b) +++ src/Common/DelftTools.Controls.Swf/Charting/IChartView.cs (.../IChartView.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -8,6 +8,21 @@ /// public interface IChartView : IView { + /// + /// Selected point of the active series has been changed + /// + event EventHandler SelectionPointChanged; + + /// + /// The visible viewport of the chart has changed either due to a zoom, pan or scroll event + /// + event EventHandler ViewPortChanged; + + /// + /// Fires when the active state of one of the tools changes + /// + event EventHandler ToolsActiveChanged; + /// /// Get or set the title of the Chart (shown above the chart) /// @@ -19,25 +34,29 @@ IEventedList Tools { get; } /// - /// Selected point of the active series has been changed + /// Set and get the selected Point Index (of the active series) /// - event EventHandler SelectionPointChanged; + int SelectedPointIndex { get; set; } /// - /// The visible viewport of the chart has changed either due to a zoom, pan or scroll event + /// Chart used for this chartView /// - event EventHandler ViewPortChanged; + IChart Chart { get; set; } /// - /// Fires when the active state of one of the tools changes + /// Zoom and Pan move to chart or tools? /// - event EventHandler ToolsActiveChanged; + IChartViewZoom Zoom { get; } + bool AllowPanning { get; set; } + /// - /// Set and get the selected Point Index (of the active series) + /// Enables zoom using mouse wheel /// - int SelectedPointIndex { get; set; } + bool WheelZoom { get; set; } + IChartCoordinateService ChartCoordinateService { get; } + /// /// Sets the bottom axis to the supplied and value /// @@ -53,36 +72,17 @@ void ZoomToValues(double min, double max); /// - /// Chart used for this chartView - /// - IChart Chart { get; set; } - - /// - /// Zoom and Pan move to chart or tools? - /// - IChartViewZoom Zoom { get; } - - bool AllowPanning { get; set; } - - /// /// Gets the first tool of the right type () /// /// Type of tool to search for IChartViewTool GetTool(); /// - /// Enables zoom using mouse wheel - /// - bool WheelZoom { get; set; } - - /// /// Disables the deleting of points by SelectPointTool (& delete key) /// /// Enable deleting void EnableDelete(bool enable); - IChartCoordinateService ChartCoordinateService { get; } - /// /// Exports the chart as image /// TODO: just make it return current chart as Image, implement dialogs externally in the same way.