LinkDrawer.drawLink(g, this, inlink, getQueueCount(), getOutX()<inlink.getInX());
if (inlink!=null) LinkDrawer.drawLink(g, this, inlink, getQueueCount(), getOutX()<inlink.getInX()); else if (getOutput()!=null) LinkDrawer.drawLink(g, this, null, getQueueCount(), getOutput().getOutX()<getX());
protected void draw(java.awt.Graphics g, boolean hilited) {	if (disconnected) return;		ViewState view = ViewState.getInstance();	int rrx = getRx()-view.getRx();	int rry = getRy()-view.getRy();	int rwidth = getRwidth();	int rheight = getRheight();			// clipping	if ((!(rrx>view.getViewWidth()) || (rry>view.getViewHeight())	    || ((rrx+rwidth)<0) || ((rry+rheight)<0))) {		// fill or not to fill ?!!		/*		if (!hilited) g.setColor(getColor());		else g.setColor((this==view.getHilitedObject()) ? 						Constants.HILITE_COLOR : getColor());		*/				Color c = getColor();		if (hilited)			c = (this==view.getHilitedObject()) ? Constants.HILITE_COLOR : c;		if (c==Constants.BACKGROUND_COLOR)			if (c==Color.black)				c=Color.white;			else				c=Color.black;		g.setColor(c);				if (inlink!=null) 			g.drawRect(rrx, rry, rwidth, rheight);		else {			g.drawLine(rrx, rry, rrx+rwidth, rry+rheight);			g.drawLine(rrx+rwidth, rry, rrx, rry+rheight);		}		}	if (!hilited && inlink!=null) {//		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);		LinkDrawer.drawLink(g, this, inlink, getQueueCount(), 							getOutX()<inlink.getInX());	}		}