if(hilited) g.setColor(Constants.HILITE_COLOR); else g.setColor(Constants.LINE_COLOR);
protected void draw(Graphics g, boolean hilited){	ViewState view = ViewState.getInstance();	int offsetX = view.getRx();	int offsetY = view.getRy();		int posX = getRx() - offsetX;	int posY = getRy() - offsetY;	int rwidth = getRwidth();	int rheight = getRheight();	if(hilited)		g.setColor(Constants.HILITE_COLOR);	else		g.setColor(Constants.LINE_COLOR);		if(!((posX > view.getViewWidth()) || (posY > view.getViewHeight())		|| ((posX + rwidth) < 0) || ((posY + rheight) < 0)))	{		if(hilited)			g.setColor(Constants.HILITE_COLOR);		else			g.setColor(Constants.LINE_COLOR);				g.drawRect(posX + 2, posY + 2, rwidth - 4, rheight - 4);	}}