VirtualLabBuilder.src.ViewElements

Interactive graphic elements

Information


 

ViewElements package

ViewElements package includes the Containers, Drawables, InteractiveControls and BasicElements packages. These packages contain classes describing the interactive graphic elements and the base classes of these elements. The library devoloper has to extend these base classes to implement new interactive graphic elements.

Each interactive element has associated the following elements: Using the predefined base classes, Modelica classes describing interactive graphic elements have the following structure:

The ''initial algorithm'' section contains the code required to obtain the integer number identifying the component in the view description (value of the num variable) and a call to the Modelica function that encapsulates a call to the external C function which generates the Java code of the interactive graphic element. The value of the num variable is obtained by executing the function processingFile. This function has as input the path of a file and as output an integer value. The processingFile function reads a value from the input file. Then, it writes in that file the read value incremented by one. The function output value is the written value. The external C- function generates the Java code by writing in a file the code require to create an instance of the java class describing the element.

Package Content

NameDescription
VirtualLabBuilder.src.ViewElements.Containers Containers Container elements and base classes
VirtualLabBuilder.src.ViewElements.Drawables Drawables Drawable elements and base classes
VirtualLabBuilder.src.ViewElements.InteractiveControls InteractiveControls Interactive controls and base classes
VirtualLabBuilder.src.ViewElements.BasicElements BasicElements Basic elements and base classes


HTML-documentation generated by Dymola Tue Jul 24 18:58:13 2007.