ChartDirector 6.2 (.NET Edition)
public void setPlotAreaMouseMargin(int m);
Public Sub setPlotAreaMouseMargin(m As Integer)
Sets all margins (left, right, top, and bottom) of the plot area mouse event region to the same value.
Plot area events are often used for implementing track cursors. For example, a track line can be drawn that follows the mouse cursor when the mouse cursor is moving on the plot area. For these usages, it is important to be able to put the mouse cursor at the edge of the plot area, because the latest data points are usually plotted at the edge.
In practice, it is difficult to put the mouse cursor exactly on the edge, as it is hard to move the mouse cursor precisely. To address this issue, ChartDirector supports extending the plot area event region by a configuration margin. A mouse cursor on that extended region will be treated as if it is on the nearest edge of the plot area for the purpose of trigger plot area events.
By default, the left, right, top and bottom margins of the plot area event region are 5 pixels.
|m||(Mandatory)||The left, right, top and bottom margins in pixels.
© 2017 Advanced Software Engineering Limited. All rights reserved.