CChartViewer is released in source code format in the MFC sample programs that comes with ChartDirector. The source code serves as an example on how one can display charts and handle mouse interactions in general GUI framework.
Method | Inherited | Description |
---|---|---|
setChart | (Self) | Sets a BaseChart object for display. |
getChart | (Self) | Gets the BaseChart pointer provided by the previous CChartViewer.setChart method call. |
setImageMap | (Self) | Sets the image map that defines the hot spots on the chart image. |
getImageMapHandler | (Self) | Gets the ImageMapHandler object for the current image map. |
setDefaultToolTip | (Self) | Sets the default tool tip to use when the mouse is over the CChartViewer but not over any hot spot. |
getToolTipCtrl | (Self) | Gets the MFC CToolTipCtrl object used by CChartViewer for handling the tool tips. |
setMouseUsage | (Self) | Sets the mouse usage mode of the control. |
getMouseUsage | (Self) | Gets the mouse usage mode of the control. |
setZoomDirection | (Self) | Sets the zoom direction for mouse zoom in/out actions. |
getZoomDirection | (Self) | Gets the zoom direction for mouse zoom in/out actions. |
setScrollDirection | (Self) | Sets the scroll direction for mouse scroll actions. |
getScrollDirection | (Self) | Gets the scroll direction for mouse scroll actions. |
setZoomInRatio | (Self) | Sets the magnification ratio for each zoom in click of the mouse. |
getZoomInRatio | (Self) | Gets the magnification ratio for each zoom in click of the mouse. |
setZoomOutRatio | (Self) | Sets the magnification ratio for each zoom out click of the mouse. |
getZoomOutRatio | (Self) | Gets the magnification ratio for each zoom out click of the mouse. |
setSelectionBorderWidth | (Self) | Sets the border width of the zoom selection box. |
getSelectionBorderWidth | (Self) | Gets the border width of the zoom selection box. |
setSelectionBorderColor | (Self) | Sets the border color of the zoom selection box as a Win32 COLORREF value. |
getSelectionBorderColor | (Self) | Gets the border color of the zoom selection box. |
setMinimumDrag | (Self) | Sets the minimum mouse drag distance before it is considered as an intentional drag. |
getMinimumDrag | (Self) | Gets the minimum mouse drag distance before it is considered as an intentional drag. |
setUpdateInterval | (Self) | Sets the minimum gap interval between two CVN_ViewPortChanged messages in milliseconds. |
getUpdateInterval | (Self) | Gets the minimum gap interval between two CVN_ViewPortChanged messages in milliseconds. |
updateViewPort | (Self) | Triggers the CVN_ViewPortChanged message. |
needUpdateChart | (Self) | Determines if the current CVN_ViewPortChanged message requires chart update. |
needUpdateImageMap | (Self) | Determines if the current CVN_ViewPortChanged message requires image map update. |
setChartMetrics | ViewPortManager | Sets the chart metrics to the ViewPortManager so it knows the positions of the necessary chart objects for supporting view ports. |
getPlotAreaLeft | ViewPortManager | Gets the x-coordinate of the left side of the plot area in pixels. |
getPlotAreaTop | ViewPortManager | Gets the y-coordinate of the top side of the plot area in pixels. |
getPlotAreaWidth | ViewPortManager | Gets the width of the plot area in pixels. |
getPlotAreaHeight | ViewPortManager | Gets the height of the plot area in pixels. |
inPlotArea | ViewPortManager | Determines if a given point is within the plot area. |
setViewPortLeft | ViewPortManager | Sets the position of the left side of the view port. |
getViewPortLeft | ViewPortManager | Gets the position of the left side of the view port. |
setViewPortTop | ViewPortManager | Sets the position of the top side of the view port. |
getViewPortTop | ViewPortManager | Gets the position of the top side of the view port. |
setViewPortWidth | ViewPortManager | Sets the width of the view port. |
getViewPortWidth | ViewPortManager | Gets the width of the view port. |
setViewPortHeight | ViewPortManager | Sets the height of the view port. |
getViewPortHeight | ViewPortManager | Gets the height of the view port. |
validateViewPort | ViewPortManager | Ensures the view port left, top, width and height are within valid ranges and adjusts them if necessary. |
setZoomInWidthLimit | ViewPortManager | Sets the view port width at maximum zoom in. |
getZoomInWidthLimit | ViewPortManager | Gets the view port width at maximum zoom in for mouse zoom in actions. |
setZoomOutWidthLimit | ViewPortManager | Sets the view port width at maximum zoom out. |
getZoomOutWidthLimit | ViewPortManager | Gets the view port width at maximum zoom out for mouse zoom out actions. |
setZoomInHeightLimit | ViewPortManager | Sets the view port height at maximum zoom in. |
getZoomInHeightLimit | ViewPortManager | Gets the view port height at maximum zoom in for mouse zoom in actions. |
setZoomOutHeightLimit | ViewPortManager | Sets the view port height at maximum zoom out. |
getZoomOutHeightLimit | ViewPortManager | Gets the view port height at maximum zoom out for mouse zoom out actions. |
canZoomIn | ViewPortManager | Checks if it is possible to zoom in further at a certain direction without violating zoom in limits. |
canZoomOut | ViewPortManager | Checks if it is possible to zoom out further at a certain direction without violating zoom out limits. |
zoomAt | ViewPortManager | Zooms in/out around a certain point. |
zoomTo | ViewPortManager | Zooms to the selected rectangular region. |
startDrag | ViewPortManager | Takes a snapshot of the view port to prepare for dragging. This method must be called before calling ViewPortManager.dragTo. |
dragTo | ViewPortManager | Scrolls the view port to reflect dragging of the underlying rectangular surface. |
Note: Methods inherited from CStatic are omitted. |