Element: ParticleSet.

Icon: 

Text: A set of particles.

Descriptio: A ParticleSet is a set of several elements of type Particle.

If you know how a particle works, then you know already how to work with a particle set. The only difference is that you need to specify the number of particles 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
Graphical Aspect
Style The graphical shape to display the element. 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.

Position The exact drawing position of the 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 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. 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.

Edge Color The color used for the edges of the elements. The special value null draws the element without an edge. See the values for the Fill Color property.
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.