Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » continuous drawing in a GEF Editor
continuous drawing in a GEF Editor [message #537186] Tue, 01 June 2010 14:37 Go to next message
Eclipse UserFriend
Originally posted by: micha.on.the.road.web.de

Hi,

in my GEF editor, next to adding shapes, I have to add continuous
drawing, like free hand pencil drawing (and more). Where is the way to go?

In the eclipse sketch project they draw directly on the GC before at the
end adding the figure - however, this is not an option for us because
the editor is changed concurrently (distributed whiteboard feature) and
cheese on the GC would get overpainted by a concurrent edit.

So we thought about using a second image - overriding the paint methods
and painting it after super.paint(). However, to override the
FigureCanvas' paint method in a ScrollingGraphicalViewer we have to
rewrite more 6 classes :(.

Maybe we can use some extra layer? Where should we look than? Or are
there any examples for continuous drawing?

Thanks for any help
Michae
Re: continuous drawing in a GEF Editor [message #537245 is a reply to message #537186] Tue, 01 June 2010 16:33 Go to previous messageGo to next message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
The explanation of ur requirement could have been more elaborate......

but stil try this http://www.eclipse.org/forums/index.php?t=msg&goto=51221 7&#msg_512217

not what u need but the src code may help u with u r requirement....


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Re: continuous drawing in a GEF Editor [message #537472 is a reply to message #537245] Wed, 02 June 2010 14:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: micha.on.the.road.web.de

On 01.06.2010 18:33, vijay wrote:
> The explanation of ur requirement could have been more elaborate......
>

How to make it more elaborate ... continuous, concurrent polyline
drawing in GEF? What to need more - this could be easily done in one
tool class with a more freely accessible GEF API.

> but stil try this
> http://www.eclipse.org/forums/index.php?t=msg&goto=51221 7&#msg_512217

What do you mean? Report a bug report for free hand drawing in GEF?
As you can read in my last post I know the the Sketch project quite well
(we even thought about extending Sketch by distributed working but it is
too hacky) but we cannot use this approach because of concurrent edits.

However, I should add a bug report to GEF that the FigureCanvas in the
editors should be accessible as it could solve the problem (and many
others).

Now we continue investigating whether the selection layer is fit for
concurrent edits and whether it might offer a possibility to implement
continuous drawing tools. Anyone has suggestions?

Thanks anyway for your reply
Best regards
Michael

>
> not what u need but the src code may help u with u r requirement....
Re: continuous drawing in a GEF Editor [message #537528 is a reply to message #537472] Wed, 02 June 2010 18:52 Go to previous message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
sorry i was just trying to help.....

---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Zoom keyboard shortcuts don't work
Next Topic:multipage change page by click a label in another page
Goto Forum:
  


Current Time: Tue May 14 05:13:01 GMT 2024

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

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

Back to the top