[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] How would I implement zoom-in-region for a canvas?

I have been trying to display financial information using SWT because I got fed up with the limitations of the spreadsheet and charting software I have. So far, I have been able to open a window with a title, axes, key, and drawing region set up relative to each other using a FlowLayout. It looks ok, but I can't zoom in yet.

I want to implement the ability to drag click across part of the chart, and have it box in the drag area into which the chart would zoom. I can manage the code for only drawing that partial region, but I wanted to figure out how to add the whole drag-click support to the GUI. Could somebody suggest some things I should look into?