if (out.getLayerID().equals(in.getLayerID()))
if (in==null) drawKneeLine(g, out, null, isRight); else if (out.getLayerID().equals(in.getLayerID()))
public static void drawLink(Graphics g, OutLink out, InLink in, int count, boolean isRight) {	if (out.getLayerID().equals(in.getLayerID()))		drawKneeLine(g, out, in, ((count%2)==0));	else {				ViewState view = ViewState.getInstance();		double scale = view.getScale();		int x1 = (int)(scale*out.getOutX())-view.getRx();		int y1 = (int)(scale*out.getOutY())-view.getRy();		int r = (int)(LARGE_RECT*scale);		drawIntergroupLink(g, view, x1, y1, in, isRight);	}}