Label Provider position [message #647003] |
Mon, 03 January 2011 17:41 |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.29145 seconds