|Rubberbanding without Tracker [message #1076145]
||Tue, 30 July 2013 19:57
| Mark Fenbers
Registered: July 2009
Location: Ohio, USA
I use gc.setXORMode(true) to implement a rubberbanding shape similar to how Tracker behaves (except that Tracker uses a rectangle, but my shape is more complex). My use of setXORMode worked fine until last week when I upgraded to Kepler (and corresponding SWT update).
I know gc.setXORMode() is deprecated but I believe that I have no other choice than to use it. Perhaps the underlying method of setXORMode() got removed and broke my rubberbanding feature.
My question is, What can I use to non-destructively draw over existing features on my canvas? Tracker still works as intended, so what does it use if gc.setXORMode no longer works? I need the same type of behavior but with a shape that isn't a rectangle.
Powered by FUDForum
. Page generated in 0.01258 seconds