User rating: 98
Joined: Mon 23 Jul, 2012, 02:02 Posts: 656 Location: United States, Durham, NC
Hi,
I would like the labels shown in the screenshot to extend to the LEFT from the time, rather than to the right, which is shown.
From the Strategy code I use setText with SwingConstants.RIGHT but this does not achieve right-justification of the text label relative to my time, which is the current time right side of the chart.
How can I achieve left-justification of this text?
Thanks, HyperScalper
Attachments:
File comment: Want label to extend to the left, not to the right JForexLabels.PNG [95.81 KiB]
Downloaded 254 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
Unfortunately, currently there is no such functionality. The only way to do that is to manually calculate size of text, then manually calculate size between bars on screen and then move text label several bars left.
Also you can make a feature request, but there is no guarantee that it will be implemented any time soon.
hyperscalper
Post subject: Re: Strategy Labels Right Justified
Post rating: 0
Posted: Mon 27 Oct, 2014, 17:50
User rating: 98
Joined: Mon 23 Jul, 2012, 02:02 Posts: 656 Location: United States, Durham, NC
Thanks. Is there a way for me to put all of my labels at the extreme LEFT side of the chart ? Or if I can get the timestamps of the extreme left side of the visible chart, then I could use those timestamps.