|
Re: EditPart with multilayer figure [message #193869 is a reply to message #193809] |
Mon, 29 August 2005 14:53 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Depending on your requirements, perhaps EditPart1 just needs to add a second
figure to another layer. Could you provide more details of what you are
going? Is this a common diagram type?
"Yury Semikhatsky" <sys2002@yandex.ru> wrote in message
news:deuooc$87j$1@news.eclipse.org...
> Hi,
>
> I have an EditPart whose figure should be drawn partly
> under another EditPart figure partly over it. I have
> an EditPart's tree where EditPart3 is a parent of
> EditPart1 and EditPart2. See attached picture for details
> about their representation.
> The question is how to correctly support such figures?
>
> GraphicalEditPart is designed to have only one figure
> and only one content pane. However I don't want to split
> model object corresponding to EditPart1 into several
> EditPart's (one for each layer) because it is only
> feature of its representation but not model. Probably, I
> should extend GraphicalEditPart with two extra methods
> IFigure getFigure(Object layerId) and
> IFigure getContentPane(Object layerId), make figure of
> EditPart3 multilayered and add parts of EditPart1 and
> EditPart2 figures to appropriate layers?
>
>
> Thanks in advance
>
> Yury
>
------------------------------------------------------------ --------------------
|
|
|
|
Re: EditPart with multilayer figure [message #194118 is a reply to message #193923] |
Tue, 30 August 2005 20:00 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You can definitely do this by just adding a second figure to your editpart
and inserting it on another layer. Override addNotify and removeNotify to
hook the point at which you should add the secondary figure.
|
|
|
Powered by
FUDForum. Page generated in 0.03784 seconds