ChartDirector 7.0 (Java Edition)

ViewPortListener


ViewPortListener is an interface for receiving viewport events, including selection changed event, and viewport changed event.

To handle these events, either implement this interface, or extend the abstract class ViewPortAdapter overriding only the methods of interest. ChartViewer.addViewPortListener can then be used to register the handler object to the ChartViewer.

MethodInheritedDescription
viewPortChanged(Self)The system will call this method when the viewport is changed through mouse actions, or when ChartViewer.updateViewPort is called.
selectionChanged(Self)The system will call this method when the user is selecting a region on the chart using "drag to select" mouse actions.