else g.setColor((this==view.getHilitedObject()) ?
else g.setColor((view.isHilitedObject(this)) ?
protected void draw(Graphics g, boolean hilited) {	super.draw(g, hilited);	com.cosylab.vdct.graphics.ViewState view = com.cosylab.vdct.graphics.ViewState.getInstance();	boolean isRightSide = isRight();	int rrx;			// rrx, rry is center	if (isRightSide)		rrx = getRx()+r+getRwidth()-view.getRx();	else 		rrx = getRx()-r-view.getRx();	//int rry = getRy()+getRheight()/2-view.getRy();	int rry = (int)(getRscale()*getInY()- view.getRy());		if (!hilited) g.setColor(Constants.FRAME_COLOR);	else g.setColor((this==view.getHilitedObject()) ? 					Constants.HILITE_COLOR : Constants.FRAME_COLOR);	g.drawOval(rrx-r, rry-r, 2*r,2*r);	if (!disconnected && (outlinks.size()>0)) {		/*// shorten tail if needed		if (outlinks.size()==1) {			int rlx = (int)(((OutLink)outlinks.firstElement()).getOutX()*scale);			if (isRightSide) {				if ((rrx+rtailLen)>rlx) rtailLen = rlx-rrx; 			} 			else {				if ((rrx-rtailLen)<rlx) rtailLen = rrx-rlx; 			}			if (rtailLen<0) rtailLen=0;		}*/		// tail		// g.setColor(getColor());		Color c = getColor();		if (c==Constants.BACKGROUND_COLOR)			if (c==Color.black)				c=Color.white;			else				c=Color.black;		g.setColor(c);		if (isRightSide)			g.drawLine(rrx+2*r, rry, rrx+rtailLen-r, rry);		else 			g.drawLine(rrx-rtailLen+r, rry, rrx-3*r, rry);		// !!! more intergroup inlinks?!		LinkDrawer.drawInIntergroupLink(g, (OutLink)outlinks.firstElement(), this, isRightSide);	}}