is draw2d too heavy for a image process application [message #167078] |
Sat, 05 February 2005 21:36  |
Eclipse User |
|
|
|
Originally posted by: jianminjin.msn.com
if i want a system like mini illustrator.
i think a figure maybe needn't process so many things (like
tooltip, focus,layout, cursor...), there just need
some shapes (encapsulating some common
operations like rotate, move...).
Figure in Draw2D is more like a window than just a pure figure,right?
|
|
|
|
|
Re: is draw2d too heavy for a image process application [message #167108 is a reply to message #167086] |
Sat, 05 February 2005 23:23   |
Eclipse User |
|
|
|
Originally posted by: jianminjin.msn.com
there are some many interface & classes ,
Figure, EditDomain, Tool, EditPart,EditPolicy, Handle
my question is how GEF chains all these up ,and make them cooperate with
each other.
when the user click a figure(it will make the figure selected), what
happened behind that? my understanding is the figure get the mouse event
first ,then it pass it to it's listenter(maybe editpart?) ,
editpart->editdomain->active tool->find the suitable editpart->edit policy
?
|
|
|
Re: is draw2d too heavy for a image process application [message #167132 is a reply to message #167108] |
Sun, 06 February 2005 01:04   |
Eclipse User |
|
|
|
When the user clicks on a figure, an SWT event is generated for the
FigureCanvas. The LWS forwards it to the event dispatcher. The
DomainEventDispatcher then first locates the figure under the cursor (based
on the event's mouse coordinates) and allows it to process that event.
However, that is not how the events are handled mostly in GEF. If the
figure doesn't handle/consume the event, then the DomainEventDispatcher
forwards it to the EditDomain which sends it to the active tool. And then
the tool decides what to do from there. SelectionTool will determine the
target edit part, select it and then allow it to show feedback (which is
handled by the edit policies).
"jin" <jianminjin@msn.com> wrote in message
news:cu464j$s6t$1@www.eclipse.org...
> there are some many interface & classes ,
> Figure, EditDomain, Tool, EditPart,EditPolicy, Handle
> my question is how GEF chains all these up ,and make them cooperate with
> each other.
>
> when the user click a figure(it will make the figure selected), what
> happened behind that? my understanding is the figure get the mouse event
> first ,then it pass it to it's listenter(maybe editpart?) ,
> editpart->editdomain->active tool->find the suitable editpart->edit policy
> ?
>
|
|
|
Re: is draw2d too heavy for a image process application [message #167177 is a reply to message #167101] |
Sun, 06 February 2005 10:10  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
There is the obvious lack of floating point support in SWT that makes vector
graphics difficult to support. This is being improved in 3.1 I think.
"jin" <jianminjin@msn.com> escreveu na mensagem
news:cu455l$pbt$1@www.eclipse.org...
> >Randy Hudson wrote:
>> It's more like a figure. We have deprecated many of the protected fields
>> so that we can remove them in the future. The API of tooltips, etc.,
>> will still be supported, but the memory requirements will be
>> pay-as-you-go.
>
> thanks, so i guess it's qualifed to be used to make out an application
> like adobe illustrator without any efficiency problem ,right ?:)
>
> here i have one more question , can u answer me?
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03746 seconds