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.

How to set IChartObject fill color
 Post subject: How to set IChartObject fill color Post rating: 0   New post Posted: Sat 23 Oct, 2010, 16:15 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Release 2.6.19 does allow to set a fill color for IChartObject shapes.

I somehow couldn't find the appropriate method to change the fill color through the API in the currently published API documentation 2.6.18.

Could you please point me out to the IChartObject.ATTR_COLOR -value that allows changing the fill color?

Thanks a lot!
Best, RR.


 
 Post subject: Re: How to set IChartObject fill color Post rating: 0   New post Posted: Tue 26 Oct, 2010, 09:08 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,
there is new attributes IChartObject.ATTR_COLOR.FILLCOLOR for a color to fill the triangle. Also there was added new method setOpacity, which set an opacity of the filled triangle IChartObject.setOpacity(0.2f).
here is sample how to use them:
chartObject.setAttrColor(IChartObject.ATTR_COLOR.FILLCOLOR, Color.green);
chartObject.setOpacity((float) 0.2);


 

Jump to:  

cron
  © 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