|How to get Graphics object in Draw2d? [message #238399]
||Mon, 10 September 2007 02:26
| Hoping White
Registered: July 2009
How can I get a Graphics object in Draw2d System? Like SWT, I can get a
GC object by new GC(Drawable),but how in Draw2d?
I want to get this, becase I want to draw a rectangle centered by mouse
position, and when the mouse moves, the rectangle either. According to my
experince in SWT, draw the rectangle in MouseMotionListener is better, but
this requires GC object, so I want to get Graphics in Draw2d. Or is there
another way to do this in Draw2d?
Thanks very much!
Powered by FUDForum
. Page generated in 0.02022 seconds