int posX = getRx() - offsetX - rwidth/2; int posY = getRy() - offsetY - rheight/2;
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) && (!((posX > view.getViewWidth()) || (posY > view.getViewHeight())		|| ((posX + rwidth) < 0) || ((posY + rheight) < 0))))	{		g.setColor(Constants.HILITE_COLOR);		g.drawRect(posX, posY, rwidth, rheight);				if(owner instanceof TextBox)			((TextBox)owner).drawDashedBorder(g, hilited);	}}