public DragContext(Node draggable){
  this.node=draggable;
  this.goToForegroundOnContact=true;
  this.touchId=NULL_ID;
  this.activated=false;
  this.dragLimits=new BoundingBox(0,0,Integer.MAX_VALUE,Integer.MAX_VALUE);
  this.dragThreshold=10.0;
  this.dragStarted=false;
  this.relocateThreshold=1.0;
  this.dragInitAction=null;
  this.dragFinishAction=null;
  touchHandler=null;
  mouseHandler=null;
  draggable.addEventHandler(TouchEvent.ANY,touchHandler);
  draggable.addEventHandler(MouseEvent.ANY,mouseHandler);
}

public DragContext ( Node draggable ) { this . node = draggable ; this . goToForegroundOnContact = true ; this . touchId = NULL_ID ; this . activated = false ; this . dragLimits = new BoundingBox ( 0 , 0 , Integer . MAX_VALUE , Integer . MAX_VALUE ) ; this . dragThreshold = 10.0 ; this . dragStarted = false ; this . relocateThreshold = 1.0 ; this . dragInitAction = null ; this . dragFinishAction = null ; touchHandler = null ; mouseHandler = null ; draggable . addEventHandler ( TouchEvent . ANY , touchHandler ) ; draggable . addEventHandler ( MouseEvent . ANY , mouseHandler ) ; }
creates a dragcontext keeping track of touch events , so that a node is made draggable .
