Skip to main content



      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 11:08
Eclipse UserFriend
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:clickable and setContents
Next Topic:Copy Paste
Goto Forum:
  


Current Time: Sun Jul 13 18:11:09 EDT 2025

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

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

Back to the top