Data type

The following data types are available in UML.

Float

Single precision floating point number, any number is of type Float.

Rect

Rectangle. Defined by [left, top, width, height] (x coordinate of top left corner, y` coordinate of top left corner, rectangle width, rectangle height, respectively).

Rect has some read-only attributes that can be accessed after definition, including:

  • Rect.l or Rect.x: x coordinate of top left corner
  • Rect.t or Rect.y: y coordinate of top left corner
  • Rect.w: Width of the rectangle
  • Rect.h: Height of rectangle
  • Rect.r: x coordinate of bottom right corner
  • Rect.b: y coordinate of bottom right corner
  • Rect.cx: x coordinate of the center
  • Rect.cy: y coordinate of the center

Bool

Boolean value. The value is either true or false, and can currently only be used in attributes of an element.

String

String. Text enclosed in double quotes, used to indicate button behavior, color, URL, as follows:

  • Color: the color. Can be a hexadecimal RGB or ARGB color value (e.g. “#ff0000” or “#7fffffff”) or a color name (e.g. “red”). Currently available color names are.
    • "white"
    • "black"
    • "red"
    • "blue"
    • "yellow"
    • "green"
    • "gray"
  • Action: button behavior. Available values are:
    • “join”: Participate in the event
    • "open:url": Opens the specified URL
  • `URL': Website