Skip to main content



      Home
Home » Eclipse Projects » GEF » setOpaque problem
setOpaque problem [message #81742] Mon, 02 June 2003 08:39 Go to next message
Eclipse UserFriend
Originally posted by: idan_zak2.walla.co.il

when we draw some figures which set to be opaque allways the last one we
draw is kept on-top of the others.
how can we set the figure behavoir so that the last figure been selected
will be on top of the others?

thanks,
idan.
Re: setOpaque problem [message #81771 is a reply to message #81742] Mon, 02 June 2003 10:28 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

GEF is not a windowing system. Most diagram editors don't change the
z-order on selection. Usually, you have to invoke a "send to back" or
"bring to front" action.

You could do this yourself in EditPart.setSelection(int) and test for
PRIMARY selection.
You would have to reorder the figures in their parent figure. However,
during refreshChildren, you'd have to play with addChildVisual(EditPart, int
index) so that the users z-order is maintained, instead of restoring hte
z-order from the model.



"idan" <idan_zak2@walla.co.il> wrote in message
news:bbfcsj$dmm$1@rogue.oti.com...
> when we draw some figures which set to be opaque allways the last one we
> draw is kept on-top of the others.
> how can we set the figure behavoir so that the last figure been selected
> will be on top of the others?
>
> thanks,
> idan.
>
>
Previous Topic:Edit Part selection
Next Topic:[INFO] If you are using FreeformGraphicalRootEditPart, ask why
Goto Forum:
  


Current Time: Thu May 08 21:01:03 EDT 2025

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

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

Back to the top