continuous drawing in a GEF Editor [message #537186] |
Tue, 01 June 2010 14:37 |
Eclipse User |
|
|
|
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 #537472 is a reply to message #537245] |
Wed, 02 June 2010 14:39 |
Eclipse User |
|
|
|
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....
|
|
|
|
Powered by
FUDForum. Page generated in 0.03262 seconds