* a GraphConnection
*/
private static void decorateWithWeight(
GraphConnection connection, String weight) {
ConnectionEndpointLocator relationshipLocator = new ConnectionEndpointLocator(
(PolylineConnection) connection.getConnectionFigure(), true);
relationshipLocator.setUDistance(0);
relationshipLocator.setVDistance(10);
Figure decoractionFigure = new Figure();
ToolbarLayout layout = new ToolbarLayout();
decoractionFigure.setLayoutManager(layout);