Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Mouse over / Label for Line Objects
 Post subject: Mouse over / Label for Line Objects Post rating: 0   New post Posted: Sat 13 Nov, 2010, 16:02 

User rating: 0
Joined: Wed 10 Nov, 2010, 00:56
Posts: 16
Hi,

i draw multiple lines using chart.draw from within a strategy. Is it possible to make a tooltip display on mouseover? e.g. display the name/key of the line or any custom text? Using color to differentiate
the lines is not an option. I need some kind of mouseover -> textlabel solution.

Thanks


 
 Post subject: Re: Mouse over / Label for Line Objects Post rating: 0   New post Posted: Mon 15 Nov, 2010, 10:28 

User rating: 0
Joined: Wed 10 Nov, 2010, 00:56
Posts: 16
my solution:

IChartObject.setChartObjectListener(new ChartObjectAdapter() {
public void highlighted(ChartObjectEvent e) {
IChartObject source=(IChartObject)e.getSource();
}

public void highlightingRemoved(ChartObjectEvent e) {
IChartObject source=(IChartObject)e.getSource();
}
});


 

Jump to:  

  © 1998-2025 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