Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [Zest] setCurveDepth + Label Position
[Zest] setCurveDepth + Label Position [message #481395] Thu, 20 August 2009 19:08 Go to next message
Philip Mayer is currently offline Philip MayerFriend
Messages: 30
Registered: July 2009
Member
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] Fri, 05 February 2010 03:14 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
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 17:27 Go to previous message
Mike  is currently offline Mike Friend
Messages: 1
Registered: March 2010
Junior Member
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: Fri Apr 19 10:05:33 GMT 2024

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

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

Back to the top