|Zooming not workin properly in canvas [message #63709]
||Mon, 01 June 2009 06:58
Registered: July 2009
I have made a plug-in for selecting a wave file from a Table View and
drawing a waveform in Canvas. The user can select a point or a portion in
the waveform. For this I have created a WaveForm class which implements
Composite in which I have added a PaintListener to the canvas for drawing
the waveform and mouse listener for selection. This WaveForm class is
called by another which create a Group and hence waveform. For zooming the
waveform in x-axis I have called Composite.setMinSize with new width and
also initialized the mouse listeners with new x and y co-ordinates
values and called the listeners once again as this is a singleton model.
But I am not getting the proper selection specially after the first zoom
in. Please help, I will send the plug-in or the WaveForm class if required.
Powered by FUDForum
. Page generated in 0.04310 seconds