polyline.setLineStyle(SWT.LINE_SOLID);
polyline.setBackgroundColor(Display.getDefault().getSystemColor(SWT.COLOR_RED));
for (final MapNodeRef ref : ((MapObjectNodes) getModel()).getObject().getNodes()) {
final MapNode node = ref.getNode();
final Point p = getCoordinateSystem().toPoint(node.getPosition());
polyline.addPoint(p);
}
polyline.setPreferredSize(polyline.getBounds().width, polyline.getBounds().height);
return polyline;
}