Question Regarding ActivityDiagramPart in Flow Example [message #155294] |
Sat, 23 October 2004 21:01 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02320 seconds