Extreme Type
A static extreme type for a polygon (i.e. a type that will not change during the
execution of the simulation) is specified using one of the predefined Ejs constants:
- PLAIN. No decoration. (Equivalent integer: 0).
- CIRCLE. A hollow circle. (Equivalent integer: 1).
- DIAMOND. A hollow diamond. (Equivalent integer: 2).
- SQUARE. A hollow square.(Equivalent integer: 3).
- ARROW. A hollow arrow head.(Equivalent integer: 4).
- LINE. A prependicular line. (Equivalent integer: 5).
- FILLED_CIRCLE. A filled circle. (Equivalent integer: 6).
- FILLED_DIAMOND. A filled diamond. (Equivalent integer: 7).
- FILLED_SQUARE. A filled square.(Equivalent integer: 8).
- FILLED_ARROW. A filled arrow head.(Equivalent integer: 9).
To specify a type that changes in run-time, you'll need to declare a variable of
type int, associate it to the
corresponding element property, and then change the variable according to your program's logic.
The integer values equivalent to each style are specified in the list above.