grTextBox.getEndVertex().setX((int)((cx + view.getRx()) / scale - Constants.CONNECTOR_WIDTH / 2)); grTextBox.getEndVertex().setY((int)((cy + view.getRy()) / scale - Constants.CONNECTOR_HEIGHT / 2));
grTextBox.getEndVertex().setX((int)((cx + view.getRx()) / scale)); grTextBox.getEndVertex().setY((int)((cy + view.getRy()) / scale));
public void mouseMoved(MouseEvent e){	ViewState view = ViewState.getInstance();	int cx = e.getX()-view.getX0();	int cy = e.getY()-view.getY0();	double scale = view.getScale();	if(grLine != null)	{		grLine.getEndVertex().setX((int)((cx + view.getRx()) / scale - Constants.CONNECTOR_WIDTH / 2));		grLine.getEndVertex().setY((int)((cy + view.getRy()) / scale - Constants.CONNECTOR_HEIGHT / 2));				repaint();	}	else if(grBox != null)	{		grBox.getEndVertex().setX((int)((cx + view.getRx()) / scale - Constants.CONNECTOR_WIDTH / 2));		grBox.getEndVertex().setY((int)((cy + view.getRy()) / scale - Constants.CONNECTOR_HEIGHT / 2));				repaint();	}	else if(grTextBox != null)	{		grTextBox.getEndVertex().setX((int)((cx + view.getRx()) / scale - Constants.CONNECTOR_WIDTH / 2));		grTextBox.getEndVertex().setY((int)((cy + view.getRy()) / scale - Constants.CONNECTOR_HEIGHT / 2));				repaint();	}	else	{		if ((cx>0) && (cy>0) && (cx<width) && (cy<height))		{			VisibleObject spotted = viewGroup.hiliteComponentsCheck(cx+view.getRx(), cy+view.getRy());			if (ViewState.getInstance().setAsHilited(spotted))			{			drawOnlyHilitedOnce=true;			repaint();		}	}}}