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
orRect.x
:x
coordinate of top left cornerRect.t
orRect.y
:y
coordinate of top left cornerRect.w
: Width of the rectangleRect.h
: Height of rectangleRect.r
:x
coordinate of bottom right cornerRect.b
:y
coordinate of bottom right cornerRect.cx
:x
coordinate of the centerRect.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