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
Hi,

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)
or
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:adding multiple Text flows in FlowPage...
Next Topic:Problem with saving GEF diagram as image
Goto Forum:
  


Current Time: Wed Nov 26 19:07:53 GMT 2014

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

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