Element: Lattice.

Icon: 

Text: A visualisation of a set of 0's and 1's.

Description: A Lattice is a drawing element that visualizes a scalar field defined in a rectangular area of the plane and which has only two possible values, 0 and 1. For this purpose, the element divides the rectangle using a grid and associates to each of its cells one of two colors, depending on the value of the field in the cell.

Table of properties

Name Description Values accepted
Configuration
Data The array of values 0 and 1 for the field in each cell. A two-dimensional array [m][n] of type int, where m and n indicate the number of cells in the X and Y axes, respectively.
Minimum X The minimum value in the X axis of the rectangular area of the plane displayed. Any constant or variable of type double or int.
Maximum X The maximum value in the X axis of the rectangular area of the plane displayed. Any constant or variable of type double or int.
Minimum Y The minimum value in the Y axis of the rectangular area of the plane displayed. Any constant or variable of type double or int.
Maximum Y The maximum value in the Y axis of the rectangular area of the plane displayed. Any constant or variable of type double or int.
Graphical Aspect
Dead Color The color used for the cells with value 0. An Object variable of the class java.awt.Color or one of the predefined colors: black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, yellow.

A color can also be specified providing its integer RGB coordinates (between 0 and 255), plus an optional transparency coordinate.

The default value is decided by the system.

Alive Color The color used for the cells with value 1. See the values for the Dead Color property.
Show Grid Whether to draw the grid itself. A boolean variable or one of the constants true or false.
Grid Color The color used to draw the grid. See the values for the Dead Color property.
Visible The visibility of the element. A boolean variable or one of the constants true or false.