Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » IntensityGraph, when the axis are updated?
icon1.gif  IntensityGraph, when the axis are updated? [message #1220339] Wed, 11 December 2013 03:25 Go to next message
Cedric L'homme is currently offline Cedric L'homme
Messages: 2
Registered: December 2013
Junior Member
Hello,

I need to access to the pixel location of a value to trace some helping lines when the application appears but if I use the following code
intensityGraph.getYAxis().getValuePosition(anyValue, false);

In @PostConstruct, the value is not good, I tried repaint(), pack(), updateTick(), etc. nothing works.
In @Focus, the first call is also not good but the following call are (whose are too late).

Is there a way to force internal calculus or something like that to use getvaluePosition in @PostConstruct?

Thanks.
Re: IntensityGraph, when the axis are updated? [message #1220481 is a reply to message #1220339] Thu, 12 December 2013 00:33 Go to previous messageGo to next message
Xihui Chen is currently offline Xihui Chen
Messages: 3
Registered: December 2013
Junior Member
Your code seems right. It should be called after the axis is layouted.

Could you write a minimum example of your use case and paste it here?

Re: IntensityGraph, when the axis are updated? [message #1220968 is a reply to message #1220481] Mon, 16 December 2013 06:48 Go to previous message
Cedric L'homme is currently offline Cedric L'homme
Messages: 2
Registered: December 2013
Junior Member
Is there any particular place or annotation to use to be sure that the axis is layouted?
Even the first call to @Focus seems too soon.
Previous Topic:Maximize animation and maven question
Next Topic:change the background color of column headers in the Grid widget
Goto Forum:
  


Current Time: Sat Aug 02 04:43:37 EDT 2014

Powered by FUDForum. Page generated in 0.01614 seconds