}
@Override
public Object getValue(Object element, String property) {
if (element instanceof GraphEdge) {
GraphEdge edge = (GraphEdge) element;
if (property.equals(COL_SOURCE)) {
return edge.getHead().friendlyString();
}
if (property.equals(COL_RELATION)) {
return edge.getRelation().toString();
}
if (property.equals(COL_TARGET)) {
return edge.getTail().friendlyString();
}
EdgeDisplayProperty edgeProps = getDisplayProperty(edge);
if (property.equals(COL_LINE_STYLE)) {
return edgeProps.getLineStyle().ordinal();