Trend animation (Bozza)

This [JSup Animations|animation] enable an [JSup Graphic objects|object] to display [JSup Trend|historical trends].

All the [JSup tag|tag] used by this kind of [JSup Animations|animation] (except the [JSup tag|tags] whose value history is displayed by the [JSup Trend|trend]) should belong to the [JSup domains#User domain|User Domain] (to make the [JSup application|application] to support [JSup Multiuser support|multi users]).

Many [JSup tag|tag] / expression can be given to set/get various parameters:

  • End trend time: [JSup Tag type|long tag] that set/get the end trend time of the displayed trend. It defines, with the Trend time length [JSup tag|tag], the time interval displayed by the trend. The format used is the same of [http://java.sun.com/javase/6/docs/api/java/lang/System.html#currentTimeMillis()|System.currentTimeMillis()] of [http://java.sun.com/javase/6/docs/api/index.html|Java API] function.
  • Trend time length: [JSup Tag type|int/long tag] that set/get the time length displayed by the trend (in milliseconds). In the [standard JSup Trend window], the Trend length field uses a [JSup Custom input animation|Custom input animation] to display/set the length of the trend in a human being format.
  • Historical mode: a boolean expression that when true turn the [JSup Trend|trend] into historical mode, where the user can pan the variable history; when false the trend is in realtime mode, where the End trend time always match the current time and only the last Trend time length milliseconds of history can be vied.
  • Grid show: a [JSup boolean values|boolean expression] that shows (when true) the grid over the trend area.
  • Pointed time: a [JSup Tag type|long tag] that will receive the time the user is pointing (with the mouse) on the [JSup Trend|trend].

Grid definition

The number inserted in the major division (for time/vertical grid) are to be considered suggestions: [JSup] will choose a human being understandable division (for example 5', 1h, etc... and not 67s) to have the number of major divisions as near as possible to the entered number.

The optional Grid info to [JSup tag|tag] is an [JSup Object tags|Object tag] ([http://java.sun.com/javase/6/docs/api/java/util/Vector.html|Vector] typed) that will receive the information about the time axis grid as Trend.[GridVLineInfo]. See how the time tick/labels are painted in the [standard JSup Trend window] for an example of how this information can be used.

Trend pens

For a fixed pen trend you can directly define the pens that will be drawn by the [JSup Trend|trend].
For a dynamic pen configuration (like in the [standard JSup Trend window]) you can leave the pen list blank and check Persistent pen configuration that makes the trend to remember the last pen configuration (Windows user based).

([JSup Logged tags|logged tags])