ChartDirector 5.1 (Java Edition)

ViewPortListener


ViewPortListener is an interface for receiving view port events, including selection changed event, and view port 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 view port 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.