Introduction Appetizer Examples Documentation Applications
Work plan Texts The use of this tool is exemplified in Families of Graphs
and Parabolic Motion. The configuration panel of TEXTS may
have as many lines as desired. Each line defines a text and looks like
this: [30,50]'temperature ='+number+' degrees':colour=red:decimals=3 The configuration of a text is a chain of expressions separated by : which
determine several properties of the text. The configuration line of a text starts with the coordinates (in pixels, measured
from the upper left corner) of the pixel from which the text is written. Next comes a
chain of strings, flanked by single quotes ' , and numbers or numerical expressions
separated from each other by a + sign. This chain should alternate strings and numbers
separated by the + sign. The chain may have as many elements as the user desires. An
expression colour=yellow, defining the colour of the text
(in this case yellow) may follow. Finally an expression decimals=3
specifying how many digits after the decimal point will be written in the numbers. The chains should not have any of the symbols , ; :
[ ] " ' because they are used as separators. The numbers may be parameters, variables or expressions,
depending on the parameters and variables, whose evaluation gives a number. The
expressions may use the arithmetic operators and the most common mathematical functions. This same structure of chains of strings and numbers is used in CONTROLS, POINTS, SEGMENTS
and ARCS. The following example shows several texts of different colours at different
locations of the applet's window. The reader is invited to observe what happens when the
frequency b vanishes.
The TEXTS are fixed on the applet's
screen, it's location is defined in pixels measured from the left upper corner. If the
user needs TEXTS to be associated with features of the
graphs, then he or she must use POINTS with size=0 because the locations of points are coordinates on the
Cartesian plane. Introduction Appetizer Examples Documentation Applications
Work plan
Ministerio de Educación, Cultura y Deporte. Aņo 2000