Element: TraceSet.

Icon:   

Text: A set of traces.

Description: A TraceSet is a set of several elements of type Trace.


A trace set with no markers, connected and of different color.

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.
Input
X The X coordinates for the new input points. 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 for the new input points. 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 for the new input points. 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.

Posición

Position 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.
Position 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.
Position 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.

Configuration

Points Maximum number of points to display in each trace. The special value 0 indicates that there is no such maximum. A unidimensional array of type int of the same size of the set, with one value for each element.
Alternatively, a constant or variable of type int, that sets the same value to all the elements of the set.
Skip The number of points to receive in each trace before accepting one. A unidimensional array of type int of the same size of the set, with one value for each element.
Alternatively, a constant or variable of type int, that sets the same value to all the elements of the set.
Active Whether the traces accept input points. A unidimensional array of type boolean of the same size of the set, with one value for each element.
Alternatively, a constant or variable of type boolean, or one of the constants true or false, that sets the same value to all the elements of the set.
No Repeat Whether to ignore an input point identical to the last one. A unidimensional array of type boolean of the same size of the set, with one value for each element.
Alternatively, a constant or variable of type boolean, or one of the constants true or false, that sets the same value to all the elements of the set.
Connected Whether to connect in each trace input points with a segment. A unidimensional array of type boolean of the same size of the set, with one value for each element.
Alternatively, a constant or variable of type boolean, or one of the constants true or false, 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
Graphical Aspect
Line Color The color used for the lines of 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.

Marker Shape The graphical shape for the markers. One of the following constants:
  • NONE. A single dot is drawn. (Equivalent integer: 0)
  • ELLIPSE. (Equivalent integer: 1)
  • RECTANGLE. (Equivalent integer: 2)
  • ROUND_RECTANGLE. (Equivalent integer: 3)
  • WHEEL. An ellipse with its coordinate axes. (Equivalent integer: 4)

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.

Marker Size The size of the markers in pixels. A unidimensional array of type int of the same size of the set, with one value for each element.
Alternatively, a constant or variable of type int, that sets the same value to all the elements of the set.
Marker Color The color for the markers. See the values for the Line Color property.
Position The exact drawing position of the markers' shapes relative to the elements' coordinates. One of the following constants:
  • CENTERED. The shape is drawn with its center point on the element's coordinates. (Equivalent integer: 0).
  • NORTH. The shape is drawn with its top middle point on the element's coordinates. (Equivalent integer: 1).
  • SOUTH. The shape is drawn with its bottom middle point on the element's coordinates.  (Equivalent integer: 2).
  • EAST. The shape is drawn with its middle right point on the element's coordinates. (Equivalent integer: 3).
  • WEST. The shape is drawn with its middle left point on the element's coordinates.(Equivalent integer: 4).
  • NORTH_EAST. The shape is drawn with its top right point on the element's coordinates. (Equivalent integer: 5).
  • NORTH_WEST. The shape is drawn with its top left point on the element's coordinates. (Equivalent integer: 6).
  • SOUTH_EAST. The shape is drawn with its bottom right point on the element's coordinates. (Equivalent integer: 7).
  • SOUTH_WEST. The shape 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 markers. 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.

Memory This is an integer that indicates how many data sets should the trace remember. 0 : It displays all data sets until a call to _resetView() is done.
1: It displays only the current data set (default).
2 or more: It displays as many data set as indicated. Subsequent runs cause the oldes data to be discarded.
Mem Display How old data is displayed. One of the following constants:
  • SHOW_ALL. Old data  is shown complete. (Equivalent integer: 0).
  • AS_ADDED. Old data  is shown at the same time the new data is added. (Equivalent integer: 1).
  • X_ORDER. All old points with an X coordinate smaller or equal to the X coordinate of the last new point is displayed. (Equivalent integer: 2).
  • Y_ORDER. Similar to X_ORDER. (Equivalent integer: 3).
  • Z_ORDER. Similar to X_ORDER. (Equivalent integer: 4).

Integer constants and variables are also accepted, using any of the values indicated in the parentheses above. This allows changing the display mode in run-time.

 

Mem Color The color used to display the old data. See the values for the Line Color property.