At times, you may want to configure what users can or cannot do when they are viewing the chart using the Chart Viewer.
When the user is using Chart Viewer to view the chart, right clicking on the chart causes a menu to pop up. Using this menu, the user can select chart options such as changing chart type, changing chart dimension etc The user can also choose to export the chart and the type of the static image. While the default pop-up menu lists all available choices, API methods exist that control what options are available in the pop-up menu of Chart Viewer.
These API calls are available in IPopupMenu
:
IPopupMenu popupMenu = chart.gethPopupMenu(); popupMenu.setDimMenuEnabled(boolean b); popupMenu.setPopupMenuEnabled(boolean b); popupMenu.setTypeMenuEnabled(boolean b);
Please refer to the online API documentation for more information (quadbase.util.IPopupMenu).