Color c = getVisibleColor(); if (hilited) c = (view.isHilitedObject(this)) ? Constants.HILITE_COLOR : c; g.setColor(c);
protected void draw(java.awt.Graphics g, boolean hilited) {	if (disconnected) return;		ViewState view = ViewState.getInstance();	int rwidth = getRwidth();	int rheight = getRheight();	int rrx = getRx()-view.getRx()-rwidth/2;	// position is center	int rry = getRy()-view.getRy()-rheight/2;			// 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());		*/				if (view.isSelected(this))		{			g.setColor(Constants.PICK_COLOR);			g.fillRect(rrx, rry, rwidth, rheight);		}		Color c = getVisibleColor();		if (hilited)			c = (view.isHilitedObject(this)) ? Constants.HILITE_COLOR : c;		g.setColor(c);				if (inlink!=null || hilited) 			g.drawRect(rrx, rry, rwidth, rheight);//		else {		else if (getMode()!=EXTERNAL_OUTPUT_MODE && getMode()!=EXTERNAL_INPUT_MODE)		{			g.drawLine(rrx, rry, rrx+rwidth, rry+rheight);			g.drawLine(rrx+rwidth, rry, rrx, rry+rheight);		}		}	if (/*!hilited &&*/ (inlink!=null || getMode()==EXTERNAL_OUTPUT_MODE || getMode()==EXTERNAL_INPUT_MODE)) {		//g.setColor(getVisibleColor());		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());	}		}