NotationModel: What is a RelativeBendpoint? [message #191088] |
Wed, 04 June 2008 13:49 |
Eclipse User |
|
|
|
Hi there,
sounds like a stupid question, but I can't figure the correct parameters
of org.eclipse.gmf.runtime.notation.RelativeBendpoints out.
The API says: "A type of bendpoints representing a collection of points
with relative distances along the x- and y-axis to the source and target
views of an edge."
It gets: int sourceX, int sourceY, int targetX, int targetY
The problem is, I don't understand what is meant by "relative
distances".. Relative to what?
When I add two bendpoints with the same parameters, e.g.
new RelativeBendpoint(0,100,0,0));
new RelativeBendpoint(0,100,0,0));
I get two distinct bendpoints not positioned at the same location, what
I was expecting...
Additionally strange behaviour: having only exactly 2 bendpoints the
parameters do not influence the locations at all. Seems like they are
automatically calculated by the source and target. So why have 2 dummy
bendpoints then with no meaning?
So what I actually want is to transform absolute x,y coordinates to
these strange relative ones. Any hints?
Cheers, Hauke
|
|
|
Powered by
FUDForum. Page generated in 0.05504 seconds