public void setDragEvent(){
        observer.setOnMouseDragged(new EventHandler<MouseEvent>(){
            public void handle(MouseEvent me){
                observer.setCenterX(me.getSceneX()-observer.getLayoutX());
                observer.setCenterY(me.getSceneY()-observer.getLayoutY());
            }
        });        
    }