Element: TextSet.

Icon:   

Text: A set of texts.

Description: A TextSet is a set of several elements of type Text.

If you know how a text works, then you know already how to work with a text set. The only difference is that you need to specify the number of texts 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.

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
Texts The texts to display by the elements. A unidimensional array of type String of the same size of the set, with one value for each element.
Alternatively, a constant or variable of type String, that sets the same value to all the elements of the set.
Position The exact drawing position of the texts relative to the elements' coordinates. One of the following constants:
  • CENTERED. The text is drawn with its center point on the element's coordinates. (Equivalent integer: 0).
  • NORTH. The text is drawn with its top middle point on the element's coordinates. (Equivalent integer: 1).
  • SOUTH. The text is drawn with its bottom middle point on the element's coordinates.  (Equivalent integer: 2).
  • EAST. The text is drawn with its middle right point on the element's coordinates. (Equivalent integer: 3).
  • WEST. The text is drawn with its middle left point on the element's coordinates.(Equivalent integer: 4).
  • NORTH_EAST. The text is drawn with its top right point on the element's coordinates. (Equivalent integer: 5).
  • NORTH_WEST. The text is drawn with its top left point on the element's coordinates. (Equivalent integer: 6).
  • SOUTH_EAST. The text is drawn with its bottom right point on the element's coordinates. (Equivalent integer: 7).
  • SOUTH_WEST. The text is drawn with its bottom left point on the element's coordinates. (Equivalent integer: 8).

A unidimensional array of type int with the same size of the set is also accepted, providing one value for each element.
Alternatively, an integer constant or variable, which will set the same value to all the elements.

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.

Fill Color The color used to fill 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.

Font The font used for the texts displayed by the elements. An Object variable of the class java.awt.Font or a set of family, style and size, separated by commas. The style must be one of  plain, bold, italic, bold | italic. Example: Monospaced,italic,18.

The default value is decided by the system.