ActivityDocument
Top-level structure of an activity document Attributes:
String name
Elements:
A collection of ActivityDocumentComponents.
ActivityDocumentComponents
Element of an activity document. Currently either a text area, canvas, or a goal area. Generic Attributes:
String type -- can be either "Canvas", "TextArea", or "GoalArea".
String title -- internal frame title
String name
Integer x
Integer y
Integer width
Integer height
Boolean closable
Boolean resizeable
Boolean containsDoneButton -- true if being used as a goal with an associated button
Boolean doneButtonEnabled -- only set if containsDoneButton is true
Information for done buttons will move to activity representation - currently under discussions with AP
Canvas
Canvas-only Attributes:
Boolean patternsDraggable
Boolean playMenuAdded
Boolean gridShowing
Canvas-only Elements:
ShapeProxy -- see below (any number)
LocatedExpression (Expression with x and y attributes set) (any number)
DissolvedText -- see below (any number)
ShapeProxy
ShapeProxy Attributes:
Integer gridSize
ShapeProxy Elements:
FrozenShape (exactly one) -- how the shape looked when the proxy was created
OriginalShape (exactly one) -- a copy of the shape that when brought back to My World is a copy of the original (same tied numbers, etc.)
ShapeProxies are necessary to represent a frozen snapshot of a shape that when dragged back to My World becomes (a copy of) the shape it originally was (with an appearance updated by any changes to tied numbers).
TextArea
TextArea-only Attributes:
Boolean dissolvable -- see below
TextArea-only Elements:
CDATA section for the contents of the text area.
GoalArea
GoalArea-only Elements:
CDATA sections for the text of each "goal". A goal is the label of a check box. (any number)
DissolvedText
Element representing text dissolved on an canvas. Dissolving is a reversible process of converting a TextArea into a label (with transparent background) and adding it to a canvas.
Attributes:
Integer x
Integer y
Elements:
CDATASection -- text of the element. (exactly one)
LocatedExpression
An expression on a canvas.
Attributes:
Integer x
Integer y
Elements:
ExpressionProxy (exactly one)
Note that the XML of LocatedExpression and ShapeProxy can contain to TiedNumberExpressions that have an additional element called "Original" that is the XML of a TiedNumberExpression. This is so that tied numbers in activity documents are disconnected and frozen but when copied back to the master canvas (My World) they become alive and connected as if they had never "left" the canvas.