ChartDirector 5.1 (Java Edition)

ChartViewer.addViewPortListener


Usage

public void addViewPortListener(ViewPortListener listener)

Description

Adds the specified ViewPortListener to receive view port events.

Currently, view port events include the "view port changed" event and the "selection changed" event. The "view port changed" event occurs when the view port is changed by mouse actions (see ChartViewer.setMouseUsage), or ChartViewer.updateViewPort is called. The "selection changed" event occurs when the selection box is changed (becomes visible or invisible or change in size) by "drag to select" mouse actions.

Arguments

ArgumentDefaultDescription
listener(Mandatory)The ViewPortListener object to receive view port events.

Return Value

None