Element: ImageSet.
Icon:
Text: A set of images.
Description: An ImageSet is a set with several elements of type Image.
If you know how an image works, then you know already how to work with an image set. The only difference is that you need to specify the number of images in the set (the property called "Elements") and that most of the properties can be specified using a unidimensional array of values, so that each value in the array is used for the corresponding element of the set. If, however, a single value is specified for the property, this value will be used for all of the elements of the set.
Table of properties |
||
Name | Description | Values accepted |
Number of Elements | ||
Elements | The number of individual elements in the set. | Any constant or variable of type int. |
Position and Size | ||
X | The X coordinates of the elements. | A unidimensional array of type double
of the same size of the set, with one value for each element. Alternatively, a constant or variable of type double or int, that sets the same value to all the elements of the set. |
Y | The Y coordinates of the elements. | A unidimensional array of type double
of the same size of the set, with one value for each element. Alternatively, a constant or variable of type double or int, that sets the same value to all the elements of the set. |
Z | The Z coordinates of the elements. | A unidimensional array of type double
of the same size of the set, with one value for each element. Alternatively, a constant or variable of type double or int, that sets the same value to all the elements of the set. |
Size X | The size in the X axis of the elements. | A unidimensional array of type double
of the same size of the set, with one value for each element. Alternatively, a constant or variable of type double or int, that sets the same value to all the elements of the set. |
Size Y | The size in the Y axis of the elements. | A unidimensional array of type double
of the same size of the set, with one value for each element. Alternatively, a constant or variable of type double or int, that sets the same value to all the elements of the set. |
Size Z | The size in the Z axis of the elements. | A unidimensional array of type double
of the same size of the set, with one value for each element. Alternatively, a constant or variable of type double or int, that sets the same value to all the elements of the set. |
Scale X | The zoom factor in the X axis for the elements. | A constant or variable of type double or int, that sets the same value to all the elements of the set. |
Scale Y | The zoom factor in the Y axis for the elements. | A constant or variable of type double or int, that sets the same value to all the elements of the set. |
Scale Z | The zoom factor in the Z axis for the elements. | A constant or variable of type double or int, that sets the same value to all the elements of the set. |
Visibility and Interaction |
||
Visible | The visibility of the elements. | A unidimensional array of type boolean
of the same size of the set, with one value for each element. Alternatively, a boolean variable or one of the constants true or false, that sets the same value to all the elements of the set. |
Enabled | Whether the elements responds to user interaction. | A unidimensional array of type boolean
of the same size of the set, with one value for each element. Alternatively, a boolean variable or one of the constants true or false, that sets the same value to all the elements of the set. |
Actions |
||
On Press | The action to invoke when any of the elements is pressed. | The Java code to invoke for the action. |
On Drag | The action to invoke when any of the elements is moved. | The Java code to invoke for the action. |
On Release | The action to invoke when any of the elements is released. | The Java code to invoke for the action. |
On Enter | The action to invoke when the pointer enters the element. | The Java code to invoke for the action. |
On Exit | The action to invoke when the pointer leaves the element. | The Java code to invoke for the action. |
Element | The index of the element in the set affected by the interaction.. | A variable of type int. |
Aspecto Gráfico | ||
Images | The images displayed by the elements. | Any constant or variable of type String,
corresponding to a GIF or animated GIF image. The
string indicates the path to the corresponding image file. The path
can be relative to the working directory or an Internet URL. It is also accepted to provide a unidimensional array of type String, of the same size of the set, with one file for each element. |
Position | The exact drawing position of the images relative to the elements' coordinates. | One of the following constants:
A unidimensional array of type int with the same size of the
set is also accepted, providing one value for each element. |
Rotate | The (counter-clockwise) rotation angle to apply to the elements. | A unidimensional array of type double
or int of the same size of the set, with one value for each element. Alternatively, a constant or variable of type double or int, that sets the same value to all the elements of the set. If the value is of type double the angle is taken in radians, if of type int, the angle is taken in degrees. |