Dukascopy
 
 
Wiki JStore Search Login

Method IChart.getObjectsAt(Point pt) is missing in JForexAPI
 Post subject: Method IChart.getObjectsAt(Point pt) is missing in JForexAPI Post rating: 0   New post Posted: Thu 05 Oct, 2017, 09:24 

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.


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com