replace draw2d impossible? [message #222000] |
Wed, 23 August 2006 17:22 |
|
Hi,
I'm trying to replace draw2d with my own implementation. I've already
managed to get a running application with an initial model, that is
some graphical representations (figures) are displayed, using the
original gef and a draw2d replacement. Currently, my draw2d replacement
is using the original draw2d and replaces "only" all figure related
stuff (i.e. I have a completely new implementation of the IFigure
interface), but when it comes to event handling, it seems impossible to
extend draw2d classes.
E.g. de.fernuni.draw3d.MouseEvent defines a constructor with parameters
and package visibility. Thus it is impossible to inherit from
MouseEvent as it is impossible to create MouseEvent instances from
outside draw2d.
Since I need to rewrite the EventDispatcher (since my figures are based
on some AWT stuff), I need to rewrite (or at least inherit from)
SWTEventDispatcher and DomainEventDistpatcher respectivley. I'm
wondering why there is an abstract class "EventDispatcher" when it
seems impossible to replace SWTEventDispatcher.
Does anybody ever has replaced or extended draw2d in such a way as I
described above? Or do I have to copy and paste all draw2d and gef
sources and build my own branch of gef?
Jens
|
|
|
|
Powered by
FUDForum. Page generated in 0.25021 seconds