public void paintEdge(JGraphPane graphPane, JPowerGraphGraphics g, T edge, SubGraphHighlighter theSubGraphHighlighter) {
JPowerGraphRectangle r = new JPowerGraphRectangle(0, 0, 0, 0);
getEdgeScreenBounds(graphPane, edge, r);
JPowerGraphColor oldFGColor = g.getForeground();
JPowerGraphColor oldBGColor = g.getBackground();
g.setForeground(getEdgeColor(edge,graphPane, false, theSubGraphHighlighter));
g.setBackground(getEdgeColor(edge,graphPane, false, theSubGraphHighlighter));
paintArrow(g, r.x, r.y, r.width, r.height, shape);
g.setForeground(oldFGColor);
g.setBackground(oldBGColor);