Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » NotationModel: What is a RelativeBendpoint?
NotationModel: What is a RelativeBendpoint? [message #191088] Wed, 04 June 2008 13:49
Eclipse UserFriend
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
Previous Topic:Create Note option background color
Next Topic:Disabling Format and Filters popup menu
Goto Forum:
  


Current Time: Tue Sep 23 20:41:55 EDT 2025

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

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

Back to the top