use of eu.esdihumboldt.hale.ui.util.graph.WrappedText in project hale by halestudio.
the class GraphLabelProvider method getTooltip.
/**
* @see IEntityStyleProvider#getTooltip(Object)
*/
@Override
public IFigure getTooltip(Object entity) {
if (entity instanceof Cell) {
Cell cell = (Cell) entity;
FunctionDefinition<?> function = FunctionUtil.getFunction(cell.getTransformationIdentifier(), serviceProvider);
if (function != null) {
CellExplanation explanation = function.getExplanation();
if (explanation != null) {
String text = explanation.getExplanation(cell, serviceProvider);
if (text != null) {
return new WrappedText(text, 400);
}
}
}
}
// default
return null;
}
Aggregations