Advanced Whiteboard

Ed Pavlak and Cathy Warnock

CS 1631



MsgID:1500Description: Whiteboard Drawing ExampleMsg1500.XML
Variables:
  • ShapeNum ( total # of shapes on the board e.g. N)
  • ShapeType{i}(i=0,1,2......N-1) e.g. ShapeType0, ShapeType1.....[note: there are four kinds of shape types:  0:Line;1:Rectangle;2:Ellipse;3:RoundRect;4:Text;]

If ShapeType is 4: Text, it will followed by

  • PosX{i}(i=0,1,2......N-1) e.g. PosX0, PosX1.......
  • PosY{i}(i=0,1,2......N-1) e.g. PosY0, PosY1.......
  • TextStr{i}(i=0,1,2......N-1) e.g. TextStr0, TextStr1.......

Otherwise, for other shapes:

  • LeftTopX{i} (i=0,1,2......N-1) e.g. LeftTopX0, LeftTopX1.......
  • LeftTopY{i} (i=0,1,2......N-1) e.g. LeftTopY0, LeftTopY1.......
  • RightBottomX{i}(i=0,1,2......N-1) e.g. RightBottomX0, RightBottomX1.......
  • RightBottomY{i}(i=0,1,2......N-1) e.g. RightBottomY0, RightBottomY1......
  • LineStyle{i}(i=0,1,2......N-1) e.g. LineStyle0, LineStyle1......
  • LineColor{i}(i=0,1,2......N-1) e.g. LineColor0, LineColor1......
  • LineWidth{i}(i=0,1,2......N-1) e.g. LineWidth0, LineWidth1......
  • BrushStyle{i}(i=0,1,2......N-1) e.g. BrushStyle0, BrushStyle1......
  • BrushColor{i}(i=0,1,2......N-1) e.g. BrushColor0, BrushColor1......
MsgID:1501Description: URLs Pushed ExampleMsg1501.XML
Variables:
  • MainURL
  • AudioURL
  • VideoURL
  • ForTeacherOnly (True or False) [note: student is allowed to push page only to teacher]

MsgID:1502Description: Successful ExampleMsg1502.XML
Variables:
  • Draw (True or False)
  • ErrorMsg
If false:
  • ErrorMsg