Skip to main content



      Home
Home » Eclipse Projects » GEF » EditPart figures in feedback layer
EditPart figures in feedback layer [message #229196] Tue, 16 January 2007 17:55 Go to next message
Eclipse UserFriend
I am wondering about having editparts whose figures sometimes live in a
different layer. Imagine for example a visual editpart that has several
children that only want to be visible when the parent receives hover or
selection.

In the case of hover, I'd like the child figure to live in the feedback
layer so it can be managed through the standard showTargetFeedback
mechanism. In the case of selection, I'd the child could live in either
the primary layer or the handle layer.

Is that possible/advisable? Also, what is the better of making this sort
of child appear/disapper? Is it better to set the figure.isVisible flag
or have the parent edit part change what children it returns and do a
refresh?


--Cam
Re: EditPart figures in feedback layer [message #229573 is a reply to message #229196] Mon, 22 January 2007 05:42 Go to previous message
Eclipse UserFriend
In case anyone is interested, I figured out how do this by overriding
addChildVisual in the parent edit part of those editparts for which I
wanted the figure to be a child of a graphical layer instead of a child of
the parent editpart's figure. So far it seems to be working fine.


--Cam
Previous Topic:Draw2D: Automatic viewport correction?
Next Topic:How to meaure the string(text) width?
Goto Forum:
  


Current Time: Tue May 20 13:59:41 EDT 2025

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

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

Back to the top