Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GraphConnection not exposing labels(Labels on GraphConnections cannot be modified separately)
GraphConnection not exposing labels [message #554209] Fri, 20 August 2010 10:19
Sfynx is currently offline Sfynx
Messages: 1
Registered: August 2010
Junior Member
I'm trying to adjust the color of the labels of GraphConnection objects, however it turns out the line and label are always the same color. Since I cannot retrieve the connectionLabel instance inside (it is private and no method exists to retrieve it), I also cannot adjust this in a label provider (e.g. using the ISelfStyleProvider interface).

How would I have to proceed now to modify the label text color only? This also is an issue for moving the labels, for instance to prevent them from intersecting the connection lines all the time.
(I hope I'm just missing something obvious, however a getTextColor on IConnectionStyleProvider would be the logical solution for such a thing?)
Previous Topic:Label inside compartment
Next Topic:How to set NodeStyle (GraphNode / GraphContainer)
Goto Forum:
  


Current Time: Thu Apr 24 11:18:54 EDT 2014

Powered by FUDForum. Page generated in 0.01446 seconds