Skip to main content



      Home
Home » Eclipse Projects » GEF » [Zest] setCurveDepth + Label Position
[Zest] setCurveDepth + Label Position [message #481395] Thu, 20 August 2009 15:08 Go to next message
Eclipse UserFriend
Hi,

I am using the Zest GraphViewer and assorted content/label providers. In
my own LayoutAlgorithm, I am using setCurveDepth() on some of the graph
connections. However, as soon as I do this, the label of these
connections moves to the initial node of the connection and stays there.
Normal (non-curved) connections are fine.

Experimentially, I changed the index of the MidpointLocator given in the
GraphConnection class, line 653:

labelLocator = new MidpointLocator(connectionFigure, 0);

This seems to affect the position, but I am unsure how to proceed to
induce the change from my code only. Any hints?

Thanks,

Philip
Re: [Zest] setCurveDepth + Label Position [message #512425 is a reply to message #481395] Thu, 04 February 2010 22:14 Go to previous messageGo to next message
Eclipse UserFriend
I'm wondering about this as well. By default, the connection labels are bisected by the connection lines, which makes them difficult to read. If I could change the color of the text that would help but I can't figure out how to do that either. Smile (The only thing that changing the mid-point did for me was to freeze everything...)
Re: [Zest] setCurveDepth + Label Position [message #519702 is a reply to message #512425] Tue, 09 March 2010 12:27 Go to previous message
Eclipse UserFriend
I agree a simple ability to change the text color, perhaps exposing the connectionLabel attribute would provide us the ability? Is this a bug fix candidate?
Previous Topic:Programatically change icon in tabs in the TabbedPropertyView
Next Topic:Resize of the parent won´t resize the child itself
Goto Forum:
  


Current Time: Wed Jul 23 16:39:09 EDT 2025

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

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

Back to the top