Element: SpringSet.
Icon:
Text: A set of springs.
Description: A SpringSet is a set with several elements of type Spring.
If you know how a spring works, then you know already how to work with a spring set. The only difference is that you need to specify the number of springs 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 on their heads. | 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. |
Movable | Whether the elements responds to user interaction on their tails. | 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. |
Graphical Aspect | ||
Radii | The radii for the springs. | 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. |
Color | The color used to draw the elements. | 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. It is also accepted to provide a unidimensional array of type Object, of the same size of the set, where each element of the array is of the class java.awt.Color. Each of the values in teh array will then be applied to the corresponding element of the set. |
Stroke | The thickness for the lines of the elements. | Any constant or variable of type double
or int. The default value is 1. Object variables of the class java.awt.Stroke are also accepted. |
Resolution | How to subdivide the element in smaller pieces. This is only useful in 3D drawing modes to improve the result of the hidden-lines removal algoritm. | Two integers separated by a comma, or a String that constains such a construction. The first integer is the number of spires in the spring. The second integer is the number of points in each spire, The default values are 8 and 15, respectively. |