I have a pretty large ZEST Tree, displaying a Hashtree (Merkletree). Because of its size and limited available space it gets so compressed you can't read it anymore:
Therefore I want to be able to grab more space than the actual shell has, and implement a scrolling/dragging option to move around with the mouse.
However, I can't find a subelement in which I can contain it, which doesn't get filled into the space I have.
I already have tried SashForm
(org.eclipse.swt.custom.SashForm), but it couldn't become bigger than the window.
Is there a possibility to implement my plan or is it generally not supported in SWT?
After some time I got it working in a decent way. I use a simple PaintListener with the method setSize. For the Zooming I use the class org.eclipse.gef.editparts.ZoomManager. I found one big disatvantage, this class needs a lot of performance and there are certainly other solutions as well.
I hope the code makes clear why and how.
Note: I didn't include the imports