Skip to main content



      Home
Home » Eclipse Projects » GEF » Drawing in GEF without using linking to the underlying model
Drawing in GEF without using linking to the underlying model [message #219624] Thu, 20 July 2006 01:32 Go to next message
Eclipse UserFriend
Originally posted by: dstamkokeng.gmail.com

Hi,

I understand that this defeats the purpose of GEF, however I will like to
extend the Shapes example given, so that I can draw on top of the
"canvas".

I could not find any canvas available for drawing in the shapes example.
Is there anyway I can get the underlying canvas, if there is any, or is
there any methods for me to draw on top of the shapes example without
creating a model for my drawings? Help desperately needed!
Re: Drawing in GEF without using linking to the underlying model [message #219700 is a reply to message #219624] Thu, 20 July 2006 12:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andrew_NOSPAM_.eisenberg.as

Meo Kok Eng wrote:
> Hi,
>
> I understand that this defeats the purpose of GEF, however I will like
> to extend the Shapes example given, so that I can draw on top of the
> "canvas".
> I could not find any canvas available for drawing in the shapes example.
> Is there anyway I can get the underlying canvas, if there is any, or is
> there any methods for me to draw on top of the shapes example without
> creating a model for my drawings? Help desperately needed!

I'm not exactly sure what you're trying to do, but it seems like maybe you want
to use just draw2d. This gives you drawing capabilities (and some listeners),
but not much else. In the documentation for draw2d you can find some examples
on how to use it.
Re: Drawing in GEF without using linking to the underlying model [message #219729 is a reply to message #219700] Thu, 20 July 2006 20:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dstamkokeng.gmail.com

Hi,

Actually I have an underlying model and will extend upon the shape editor
given in the example. However, I will also like to have some drawing
capabilities on top of the shape editor, which does not affect the model,
something like an extra overlay layer which I can draw on, on top of the
gef framework.
Re: Drawing in GEF without using linking to the underlying model [message #219751 is a reply to message #219729] Thu, 20 July 2006 23:31 Go to previous message
Eclipse UserFriend
Originally posted by: andrew_NOSPAM_.eisenberg.as

Meo Kok Eng wrote:
> Hi,
>
> Actually I have an underlying model and will extend upon the shape
> editor given in the example. However, I will also like to have some
> drawing capabilities on top of the shape editor, which does not affect
> the model, something like an extra overlay layer which I can draw on, on
> top of the gef framework.

If it's your goal to really learn GEF, and your model only partially conforms to
the shapes editor model, perhaps you should be thinking about starting from
scratch. It'll take longer, but you'll get to understand GEF much better and
the overall result will probably be better.
Previous Topic:Shapes example - Having more than just shapes
Next Topic:how do I react to property changes visually
Goto Forum:
  


Current Time: Thu May 08 21:08:07 EDT 2025

Powered by FUDForum. Page generated in 0.07306 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top