ChartDirector 7.0 (Java Edition)

ViewPortControl.setCursor


Usage

public setCursor(int position, java.awt.Cursor cursor)

Description

Sets the mouse cursors to be used at various parts of the control.

The ViewPortControl will use different mouse cursors when the mouse is over the four borders of the viewport rectangle as a feedback to the user that the borders can be dragged. Similarly, there are mouse cursors at the four corners, inside and outside of the viewport rectangle. In total, there can be 10 different mouse cursors.

Arguments

ArgumentDefaultDescription
position(Mandatory)The mouse cursor position to be set, which must be one of Left, Right, Top and Bottom for the 4 borders, and TopLeft, TopRight, BottomLeft, BottomRight for the 4 corners, Center for inside the viewport and 0 for outside the viewport.
cursor(Mandatory)The mouse cursor to use at the specified position.

Return Value

None