Element: ArrowSet.
Icon:
Text: A set of vectors.
Description: An ArrowSet is a set with several elements of type Arrow.
If you know how an arrow works, then you know already how to work with an arrow set. The only difference is that you need to specify the number of arrows 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 | ||
Style | The graphical form used to display the element. | 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. |
Line Color | The color used for the lines of the elements. The special value null draws the element without lines. | See the values for the Fill Color property. |
Fill Color | The color used to fill the elements. The special value null draws an empty element. | 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. | A constant or variable of type int indicating
the number of pieces in which to divide the element. The default value is 1.
A constant or variable of type double indicating the maximum length of each individual piece. |