Two kinds of connections [message #218369] |
Fri, 23 June 2006 08:57 |
Eclipse User |
|
|
|
Originally posted by: dieter.bogdoll.siemens.com
Hi,
I have two kinds of connections. It is possible that between any
two verteces two different kinde of edges are drawn.
Visually the edges differ in the line width and color.
I would like to enforce that the connection type A is always
drawn on top of connection type B. I couldn't find a mechanism
how to assure that.
Thanks.
Dieter Bogdoll
|
|
|
|
Re: Two kinds of connections [message #219070 is a reply to message #218369] |
Thu, 06 July 2006 20:54 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
connection z-order is not important in GEF and you could control it in your
application. In your connection editpart, you could override:
protected void activateFigure() {
getLayer(CONNECTION_LAYER).add(getFigure());
}
to be:
protected void activateFigure() {
getLayer(CONNECTION_LAYER).add(getFigure(), shouldBeOntop() ? -1 : 0);
}
"Dieter Bogdoll" <dieter.bogdoll@siemens.com> wrote in message
news:8cd678aa21af37601bfc0ba8f231eafc$1@www.eclipse.org...
> Hi,
>
> I have two kinds of connections. It is possible that between any two
> verteces two different kinde of edges are drawn. Visually the edges differ
> in the line width and color.
>
> I would like to enforce that the connection type A is always
> drawn on top of connection type B. I couldn't find a mechanism
> how to assure that.
>
> Thanks.
>
> Dieter Bogdoll
>
|
|
|
Powered by
FUDForum. Page generated in 0.02062 seconds