private void drawLinkArrows(Dependency dep, AffineTransform transform, TexturedShape shape) {
Color oldEndColor = format.getEnd().getColor();
if (dep != null && dep.isCrossProject())
shape.setPaint(GraphRenderer.EXTERNAL_LINK_COLOR);
g2.setColor(shape.getColor());
LinkRouting routing=getRouting();
shape.draw(g2,routing.getLastX(),routing.getLastY(),transform,useTextures());
if (dep != null && dep.isCrossProject())
shape.setPaint(oldEndColor);
}