public void createAndSendMoveToAction(final Point2D point,boolean doubleClick){
  final RPAction action=new RPAction();
  action.put("type","moveto");
  action.put("x",(int)point.getX());
  action.put("y",(int)point.getY());
  if (doubleClick) {
    action.put("double_click","");
  }
  Direction dir=calculateZoneChangeDirection(point);
  if (dir != null) {
    action.put("extend",dir.ordinal());
  }
  client.send(action);
}

public void createAndSendMoveToAction ( final Point2D point , boolean doubleClick ) { final RPAction action = new RPAction ( ) ; action . put ( "type" , "moveto" ) ; action . put ( "x" , ( int ) point . getX ( ) ) ; action . put ( "y" , ( int ) point . getY ( ) ) ; if ( doubleClick ) { action . put ( "double_click" , "" ) ; } Direction dir = calculateZoneChangeDirection ( point ) ; if ( dir != null ) { action . put ( "extend" , dir . ordinal ( ) ) ; } client . send ( action ) ; }
send a move to command to the server .
