User rating: 18
Joined: Thu 20 Apr, 2017, 22:42 Posts: 165 Location: Russian Federation,
|
Hi, in my plugin I'd like to perform some actions on mouse click over some chart objects. JForexAPI provides the way to subscribe for mouse events (via IChart.addMouseListener), but I see no way to get a chart object at clicked coordinates.
I see following options, not sure which are better for implementation in JForex platform:
1. Add method `List<IChartObject>` IChart.getObjectsAt(Point pt)` - this way I will be able to get object from mouse coordinates 2. Add method `List<IChartObject>` IChartPanelMouseEvent.getObjectsUnderCursor()` - same thing, but platform will take coordinates from current mouse events 3. Add method `List<IChartObject>` IChart.getSelectedObjects()` - i see platform already performs selection of the objects for own need, just expose that list via API
#1 seems to be the most universal for client usage.
|
|