Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Label Provider position
Label Provider position [message #647003] Mon, 03 January 2011 22:41
No real name is currently offline No real nameFriend
Messages: 2
Registered: January 2011
Junior Member

I have a graphViewer which sets the label provider to my class LabelProvider:
viewer.setLabelProvider(new DiagramLabelProvider());

There in the class DiagramLabelProvider who implements IEntityStyleProvider and IEntityConnectionStyleProvider, I have the method getText.

In getText I return the label of the connection as a string.

public String getText(Object element) {
     return label;

I also have some other methods like
public int getConnectionStyle(Object src, Object dest)
public Color getColor(Object src, Object dest)

But I can't find one for the position of the label.
Usually I do that with the Label label.setPositon(), but I can't do that inside the LabelProvider.

Any solutions?
Previous Topic:Zest Label Provider problem
Next Topic:Scrollbar in GEF Palette
Goto Forum:

Current Time: Tue Jun 19 10:55:20 GMT 2018

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

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

Back to the top