Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » bendpoints drag&drop
bendpoints drag&drop [message #210231] Sat, 01 November 2008 06:01
Eclipse UserFriend
Originally posted by: andrew.iaes.ru

Hi!
I get bendpoints with

List<Edge> edgeList = myDiagram.getEdges();
for (Edge edge : edgeList){

Bendpoints bendpTarget = edge.getBendpoints();
if (bendpTarget instanceof RelativeBendpoints) {
RelativeBendpoints relBendpoints = (RelativeBendpoints)bendpTarget;
List<RelativeBendpoint> relpoints = relBendpoints.getPoints();
for(RelativeBendpoint relpoint : relpoints)
{
Integer x = relpoint.getSourceX();
Integer y = relpoint.getSourceY();
}
}

}

I get normal x,y value like (-1,-3), (25, -100).
But if i drag&drop node - x,y value don't change. Value of x,y is again
(-1,-3), (25, -100).

That can i do with bendpoints to get changed x,y value?
am i action with function like "refresh" ?
Thanks!
Andrei.
Previous Topic:Why are my children and edges null when i get my diagram not using an editor?
Next Topic:about compartment and child figures
Goto Forum:
  


Current Time: Sun Jan 17 19:07:17 GMT 2021

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

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

Back to the top