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.

Rectangle label on right side
 Post subject: Rectangle label on right side Post rating: 0   New post Posted: Sun 26 Jul, 2020, 15:24 
User avatar

User rating: 7
Joined: Thu 05 Sep, 2013, 12:43
Posts: 56
Location: Russian Federation, Tomsk
Hello,

I need to place rectangle label to the right side (see screen). Rectangle on chart is IRectangleChartObject object. setText() method place text label to the left side by default and I can't to change alignment. I need method like setAlignment(SwingConstants.RIGHT) but I can't to find it. Can you help me?

Image

Regards.


 
 Post subject: Re: Rectangle label on right side Post rating: 0   New post Posted: Wed 09 Sep, 2020, 10:02 
Visual JForex expert at Dukascopy
User avatar

User rating:
Joined: Mon 22 Apr, 2013, 11:30
Posts: 604
Location: UkraineUkraine
Greetings.

IRectangleChartObject does not have setting for text alignment - label is always drawn in left upper corner.

Regards.


 

Jump to:  

  © 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