Exemple #1
0
 public void requestAnnotationHistory(Map<String, Object> message) {
   log.info("VideoDrawApplication - requestAnnotationHistory");
   application.sendAnnotationHistory(
       getBbbSession().getInternalUserID(),
       (String) message.get("presentationID"),
       (Integer) message.get("pageNumber"));
 }
Exemple #2
0
 public void setActivePresentation(Map<String, Object> message) {
   log.info(
       "VideoDrawApplication - Setting active presentation: "
           + (String) message.get("presentationID"));
   application.setActivePresentation(
       (String) message.get("presentationID"), (Integer) message.get("numberOfSlides"));
 }
Exemple #3
0
  public void sendAnnotation(Map<String, Object> annotation) {
    //		for (Map.Entry<String, Object> entry : annotation.entrySet()) {
    //		    String key = entry.getKey();
    //		    Object value = entry.getValue();

    //		    if (key.equals("points")) {
    //		    	String points = "points=[";
    //		    	ArrayList<Double> v = (ArrayList<Double>) value;
    //		    	log.debug(points + pointsToString(v) + "]");
    //		    } else {
    //		    	log.debug(key + "=[" + value + "]");
    //		    }
    //		}

    Annotation a = new Annotation(annotation);

    application.sendAnnotation(a);
  }
Exemple #4
0
 public void toggleGrid() {
   log.info("VideoDrawApplication - Toggling grid mode");
   application.toggleGrid();
 }
Exemple #5
0
 public void undo(Map<String, Object> annotation) {
   log.info("VideoDrawApplication - Deleting last graphic");
   Annotation a = new Annotation(annotation);
   application.undo(a);
 }
Exemple #6
0
 public void clear(Map<String, Object> annotation) {
   log.info("VideoDrawApplication - Clearing board");
   Annotation a = new Annotation(annotation);
   application.clear(a);
 }
Exemple #7
0
 public void setActivePage(Map<String, Object> message) {
   log.info(
       "VideoDrawApplication - Getting number of shapes for page: "
           + (Integer) message.get("pageNum"));
   application.changePage((Integer) message.get("pageNum"));
 }
Exemple #8
0
 public void isWhiteboardEnabled() {
   application.isWhiteboardEnabled(getBbbSession().getInternalUserID());
 }
Exemple #9
0
 public void enableWhiteboard(Map<String, Object> message) {
   log.info(
       "VideoDrawApplication - Setting whiteboard enabled: " + (Boolean) message.get("enabled"));
   application.enableWhiteboard((Boolean) message.get("enabled"));
 }