Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Visualization of Connections / Chopboxanchor and targt and source is the same node
Visualization of Connections / Chopboxanchor and targt and source is the same node [message #208420] Thu, 02 February 2006 16:08
Jens Bartelheimer is currently offline Jens BartelheimerFriend
Messages: 44
Registered: July 2009
Member
Hello,

I have three questions about connections:

- Is it possible to change the visualization of a polyline not only in
the middle and the ends?
I like to draw a rectangle between two nodes and prefer to use a
ConnectionEditPart.

- I use the simple Chopboxanchor for my connections. Connections from a
node to itself are also possible but then the connection only appears on
the border and the line is not visible. Is there an easy way to solve
this problem or must I use Bendpoints?

- I like to add a RotatableDecoration in the middle of my connection.
But the figure does not appear? Is this not possible?

Here my code:
PolygonDecoration a = new PolygonDecoration();
PointList list = new PointList();
list.addPoint(-1,1);
list.addPoint(0,0);
list.addPoint(-1,-1);
a.setTemplate(list);
a.setOpaque(true);
a.setFill(false);
a.setVisible(true);
add(a,new MidpointLocator(this,0));

Thanks,
Jens
Previous Topic:Copy Paste
Next Topic:Similar projects?
Goto Forum:
  


Current Time: Wed Nov 30 04:20:23 GMT 2022

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

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

Back to the top