示例#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"));
 }
示例#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"));
 }
示例#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);
  }
示例#4
0
 public void toggleGrid() {
   log.info("VideoDrawApplication - Toggling grid mode");
   application.toggleGrid();
 }
示例#5
0
 public void undo(Map<String, Object> annotation) {
   log.info("VideoDrawApplication - Deleting last graphic");
   Annotation a = new Annotation(annotation);
   application.undo(a);
 }
示例#6
0
 public void clear(Map<String, Object> annotation) {
   log.info("VideoDrawApplication - Clearing board");
   Annotation a = new Annotation(annotation);
   application.clear(a);
 }
示例#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"));
 }
示例#8
0
 public void isWhiteboardEnabled() {
   application.isWhiteboardEnabled(getBbbSession().getInternalUserID());
 }
示例#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"));
 }