Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Question Regarding ActivityDiagramPart in Flow Example
Question Regarding ActivityDiagramPart in Flow Example [message #155294] Sat, 23 October 2004 21:01 Go to next message
Eclipse UserFriend
Originally posted by: zenilnh.infotech.stph.net

Hi,

I am trying to implement a functionality similar to the graph animation in
flow example.While analyzing the code,i saw that in ActivityDiagramPart a
custom figure is created with setBounds() overridden The only difference b/w
this overridden method and its super class one is that the following lines
have been deleted

"if (resize) invalidate();"

I couldnt get why this is done..Some performance reasons??When i use a
normal figure without this overridden method,the behaviour didnt show any
difference..

Can anyone clarify??

Thanks,

Zenil
Repost:Question Regarding ActivityDiagramPart in Flow Example [message #155492 is a reply to message #155294] Mon, 25 October 2004 18:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zenilnh.infotech.stph.net

Hi,

I am trying to implement a functionality similar to the graph animation in
flow example.While analyzing the code,i saw that in ActivityDiagramPart a
custom figure is created with setBounds() overridden The only difference b/w
this overridden method and its super class one is that the following lines
have been deleted

"if (resize) invalidate();"

I couldnt get why this is done..Some performance reasons??When i use a
normal figure without this overridden method,the behaviour didnt show any
difference..

Can anyone clarify??

Thanks,

Zenil
Re: Repost:Question Regarding ActivityDiagramPart in Flow Example [message #155642 is a reply to message #155492] Tue, 26 October 2004 14:56 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The entire diagram is layed out in one place, and the results applied to all
figures in a preorder traversal of the figure tree. Avoiding the invalidate
just ensures that that figure doesn't layout again for no reason, since it
doesn't even know how to layout.

"Zenil" <zenilnh@infotech.stph.net> wrote in message
news:cljf5r$7j1$1@eclipse.org...
> Hi,
>
> I am trying to implement a functionality similar to the graph animation in
> flow example.While analyzing the code,i saw that in ActivityDiagramPart a
> custom figure is created with setBounds() overridden The only difference
b/w
> this overridden method and its super class one is that the following lines
> have been deleted
>
> "if (resize) invalidate();"
>
> I couldnt get why this is done..Some performance reasons??When i use a
> normal figure without this overridden method,the behaviour didnt show any
> difference..
>
> Can anyone clarify??
>
> Thanks,
>
> Zenil
>
>
Previous Topic:How to enable select all?
Next Topic:Problems while using button border of draw2d
Goto Forum:
  


Current Time: Fri Apr 19 01:37:38 GMT 2024

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

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

Back to the top