Functions package includes the following Modelica functions:
Name | Description |
---|---|
![]() | First lines of the java file |
![]() | Write the java code to generate a MainFrame |
![]() | Write the java code to generate a dialog window |
![]() | Write the java code to generate a DrawingPanel |
![]() | Write the java code to generate a Panel |
![]() | Write the java code to generate a Polygon |
![]() | Write the java code to generate a RadioButton |
![]() | Write the java code to generate a Slider |
![]() | Write the java code to generate a Label |
![]() | Last lines of the java file |
![]() | Write the java code to generate an oval |
![]() | Adding the components of a vector |
![]() | Write the java code to generate a Text |
![]() | Write the java code to generate an Arrow |
![]() | Write the java code to generate a PlottingPanel |
![]() | Write the java code to generate a Frame |
![]() | Write the java code to generate a CheckBox |
![]() | Write the Java code to generate a Spring |
![]() | Write the Java code to generate a Damper |
![]() | Write the Java code to generate a PauseButton |
![]() | Write the Java code to generate a NumberField |
![]() | Write the Java code to generate an InfoButton |
![]() | Write the Java code to generate a Button1Action |
![]() | Write the Java code to generate a Button2Actions |
![]() | Reads the number written in the first line of a file. Then, writes the number read incremented by one |
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
Integer | serverPort | Number of the server port |
Type | Name | Description |
---|---|---|
Integer | o |
function signalFile "First lines of the java file" input String fileName "Name of the Java file"; input Integer serverPort "Number of the server port"; output Integer o; external "C"; end signalFile;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the component | |
String | title | Text displayed as title | |
Integer | xPosition | X coordinate of the window upper left corner in pixels | |
Integer | yPosition | Y coordinate of the window upper left corner in pixels | |
Integer | size[2] | Size of the window in pixels | |
String | LayoutPolicy | Layout policy of the element |
function frame "Write the java code to generate a MainFrame" input String fileName "Name of the Java file"; input String name "Name of the component"; input String title "Text displayed as title"; input Integer xPosition "X coordinate of the window upper left corner in pixels"; input Integer yPosition "Y coordinate of the window upper left corner in pixels"; input Integer size[2] "Size of the window in pixels"; input String LayoutPolicy "Layout policy of the element"; external "C"; end frame;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the component | |
String | title | Text displayed as title | |
Integer | xPosition | X coordinate of the window upper left corner in pixels | |
Integer | yPosition | Y coordinate of the window upper left corner in pixels | |
Integer | size[2] | Size of the window in pixels | |
String | varName | String associated to a check-box | |
String | LayoutPolicy | Layout policy |
function dialog "Write the java code to generate a dialog window" input String fileName "Name of the Java file"; input String name "Name of the component"; input String title "Text displayed as title"; input Integer xPosition "X coordinate of the window upper left corner in pixels"; input Integer yPosition "Y coordinate of the window upper left corner in pixels"; input Integer size[2] "Size of the window in pixels"; input String varName "String associated to a check-box"; input String LayoutPolicy "Layout policy"; external "C"; end dialog;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the component hosting the element | |
String | name | Name of the element | |
Real | size[4] | {Minimum X, Maximum X, Minimum Y, Maximum Y | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | position | Position in the container hosting the element |
function drawingPanel "Write the java code to generate a DrawingPanel" input String fileName "Name of the Java file"; input String parent "Name of the component hosting the element"; input String name "Name of the element"; input Real size[4] "{Minimum X, Maximum X, Minimum Y, Maximum Y"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String position "Position in the container hosting the element"; external "C"; end drawingPanel;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the component hosting the element | |
String | name | Name of the element | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | position | Position in the container hosting the element | |
String | layout | Layout policy |
function panel "Write the java code to generate a Panel" input String fileName "Name of the Java file"; input String parent "Name of the component hosting the element"; input String name "Name of the element"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String position "Position in the container hosting the element"; input String layout "Layout policy"; external "C"; end panel;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the component hosting the element | |
String | name | Name of the element | |
String | num | Number identifying the component in the virtual-lab view description | |
Real | VertexesX[:] | X-coordinate of the polygon vertexes | |
Real | VertexesY[:] | X-coordinate of the polygon vertexes | |
Integer | numberVertexes | Number of vertexes | |
String | filled | True: filled, false: not filled | |
Integer | lineColor[4] | Color of the line | |
Integer | fillColor[4] | Color of the filling | |
String | closed | True: the fist and last point are connected by a line | |
Integer | intVertexesX[:] | intVertexesX[i] = 1 if coordinate x of vertex i changes in time | |
Integer | intVertexesY[:] | intVertexesY[i] = 1 if coordinate y of vertex i changes in time | |
Integer | intLineColor | 1 if the line color change in time and 0 otherwise | |
Integer | intFillColor | 1 if the filling color change in time and 0 otherwise | |
Real | stroke | Stroke used to draw the lines | |
Integer | gradient | 1 if there is a gradient in the filling color | |
Real | p1[2] | Position where the color gradient starts | |
Integer | color1[4] | Color at point p1 | |
Real | p2[2] | Position where the color gradient finishes | |
Integer | color2[4] | Color at point p2 | |
String | cyclic | True if the color gradient is cyclic |
function fPolygon "Write the java code to generate a Polygon" input String fileName "Name of the Java file"; input String parent "Name of the component hosting the element"; input String name "Name of the element"; input String num "Number identifying the component in the virtual-lab view description"; input Real VertexesX[:] "X-coordinate of the polygon vertexes"; input Real VertexesY[:] "X-coordinate of the polygon vertexes"; input Integer numberVertexes "Number of vertexes"; input String filled "True: filled, false: not filled"; input Integer lineColor[4] "Color of the line"; input Integer fillColor[4] "Color of the filling"; input String closed "True: the fist and last point are connected by a line"; input Integer intVertexesX[:] "intVertexesX[i] = 1 if coordinate x of vertex i changes in time"; input Integer intVertexesY[:] "intVertexesY[i] = 1 if coordinate y of vertex i changes in time"; input Integer intLineColor "1 if the line color change in time and 0 otherwise"; input Integer intFillColor "1 if the filling color change in time and 0 otherwise"; input Real stroke "Stroke used to draw the lines"; input Integer gradient "1 if there is a gradient in the filling color"; input Real p1[2] "Position where the color gradient starts"; input Integer color1[4] "Color at point p1"; input Real p2[2] "Position where the color gradient finishes"; input Integer color2[4] "Color at point p2"; input String cyclic "True if the color gradient is cyclic"; external "C"; end fPolygon;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the element | |
String | parent | Name of the component hosting the element | |
String | buttonValue | "true" | Initial value |
Integer | index | Number identifying the interactive element | |
String | text | Text displayed by the element | |
String | buttonGroup | The radio-button belongs to this group | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | positionInBorderLayout | Position in the container hosting the element |
function radioButton "Write the java code to generate a RadioButton" input String fileName "Name of the Java file"; input String name "Name of the element"; input String parent "Name of the component hosting the element"; input String buttonValue = "true" "Initial value"; input Integer index "Number identifying the interactive element"; input String text "Text displayed by the element"; input String buttonGroup "The radio-button belongs to this group"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String positionInBorderLayout "Position in the container hosting the element"; external "C"; end radioButton;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the element | |
String | parent | Name of the container hosting the element | |
Real | initialValue | Initial value | |
String | stringFormat | Format of the text displayed by the component | |
String | tickFormat | Format of the text displayed with the ticks | |
Integer | tickNumber | Number of ticks | |
Real | minimum | Minimum value of the variable linked to the component | |
Real | maximum | Maximum value of the variable linked to the component | |
Real | factor | Scale factor | |
String | enable | 1: enabled, 0: disabled | |
Integer | position | Number identifying the interactive element | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | positionInBorderLayout | Position in the container hosting the element |
function slider "Write the java code to generate a Slider" input String fileName "Name of the Java file"; input String name "Name of the element"; input String parent "Name of the container hosting the element"; input Real initialValue "Initial value"; input String stringFormat "Format of the text displayed by the component"; input String tickFormat "Format of the text displayed with the ticks"; input Integer tickNumber "Number of ticks"; input Real minimum "Minimum value of the variable linked to the component"; input Real maximum "Maximum value of the variable linked to the component"; input Real factor "Scale factor"; input String enable "1: enabled, 0: disabled"; input Integer position "Number identifying the interactive element"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String positionInBorderLayout "Position in the container hosting the element"; external "C"; end slider;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the element | |
String | parent | Name of the container hosting the element | |
String | text | Text to be displayed | |
String | alignment | Alignment of the text | |
Integer | background[4] | Background color | |
Integer | foreground[4] | Foreground color | |
String | typeFont | Type of font of the text | |
String | styleFont | Style of font of the text | |
Integer | sizeFont | Size of font | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | positionInBorderLayout | Position in the container hosting the element |
function label "Write the java code to generate a Label" input String fileName "Name of the Java file"; input String name "Name of the element"; input String parent "Name of the container hosting the element"; input String text "Text to be displayed"; input String alignment "Alignment of the text"; input Integer background[4] "Background color"; input Integer foreground[4] "Foreground color"; input String typeFont "Type of font of the text"; input String styleFont "Style of font of the text"; input Integer sizeFont "Size of font"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String positionInBorderLayout "Position in the container hosting the element"; external "C"; end label;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file |
function bodyGUI "Last lines of the java file" input String fileName "Name of the Java file"; external "C"; end bodyGUI;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the component hosting the element | |
String | name | Name of the element | |
String | num | Number identifying the element | |
Real | Center[2] | Position of the oval center | |
Real | Axes[2] | Length of the oval axes | |
String | filled | True: filled, false: not filled | |
Integer | lineColor[4] | Color of the line | |
Integer | fillColor[4] | Color of the filling | |
Integer | intCenter | 1: center position changes | |
Integer | intAxes | 1: axes length change | |
Integer | intLineColor | 1 if the line color change in time and 0 otherwise | |
Integer | intFillColor | 1 if the line color change in time and 0 otherwise | |
Real | stroke | Stroke used to draw the lines | |
Integer | gradient | 1 if there is a gradient in the filling color | |
Real | p1[2] | Position where the color gradient starts | |
Integer | color1[4] | Color at point p1 | |
Real | p2[2] | Position where the color gradient finishes | |
Integer | color2[4] | Color at point p2 | |
String | cyclic | True if the color gradient is cyclic |
function fOval "Write the java code to generate an oval" input String fileName "Name of the Java file"; input String parent "Name of the component hosting the element"; input String name "Name of the element"; input String num "Number identifying the element"; input Real Center[2] "Position of the oval center"; input Real Axes[2] "Length of the oval axes"; input String filled "True: filled, false: not filled"; input Integer lineColor[4] "Color of the line"; input Integer fillColor[4] "Color of the filling"; input Integer intCenter "1: center position changes"; input Integer intAxes "1: axes length change"; input Integer intLineColor "1 if the line color change in time and 0 otherwise"; input Integer intFillColor "1 if the line color change in time and 0 otherwise"; input Real stroke "Stroke used to draw the lines"; input Integer gradient "1 if there is a gradient in the filling color"; input Real p1[2] "Position where the color gradient starts"; input Integer color1[4] "Color at point p1"; input Real p2[2] "Position where the color gradient finishes"; input Integer color2[4] "Color at point p2"; input String cyclic "True if the color gradient is cyclic"; external "C"; end fOval;
Type | Name | Default | Description |
---|---|---|---|
Integer | A[:] | Vector |
Type | Name | Description |
---|---|---|
Integer | Result | Result |
function Sum "Adding the components of a vector" input Integer A[:] "Vector"; output Integer Result "Result"; algorithm Result :=0; for i in 1:size(A,1) loop Result := Result + A[i]; end for; end Sum;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the component hosting the element | |
String | name | Name of the element | |
String | num | Number identifying the element | |
Real | Center[2] | Position of the string center | |
Integer | textColor[4] | Color of the string | |
String | textString | Text displayed by the string | |
Integer | intCenter | 1: the string center changes in time |
function text "Write the java code to generate a Text" input String fileName "Name of the Java file"; input String parent "Name of the component hosting the element"; input String name "Name of the element"; input String num "Number identifying the element"; input Real Center[2] "Position of the string center"; input Integer textColor[4] "Color of the string"; input String textString "Text displayed by the string"; input Integer intCenter "1: the string center changes in time"; external "C"; end text;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the container hosting the element | |
String | name | Name of the element | |
String | num | Number identifying the component | |
Real | Origin[2] | Origin of the vector | |
Real | Length[2] | x and y component of the vector | |
Integer | color[4] | Color of the arrow | |
Integer | intOrigin | 1: the origin changes in time | |
Integer | intLength | 1: the components of the vector changes in time | |
Real | stroke | Stroke of the line | |
Integer | intStroke | 1: the stroke changes in time |
function arrow "Write the java code to generate an Arrow" input String fileName "Name of the Java file"; input String parent "Name of the container hosting the element"; input String name "Name of the element"; input String num "Number identifying the component"; input Real Origin[2] "Origin of the vector"; input Real Length[2] "x and y component of the vector"; input Integer color[4] "Color of the arrow"; input Integer intOrigin "1: the origin changes in time"; input Integer intLength "1: the components of the vector changes in time"; input Real stroke "Stroke of the line"; input Integer intStroke "1: the stroke changes in time"; external "C"; end arrow;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the component hosting the element | |
String | name | Name of the element | |
String | title | Title to display at the top | |
String | font_name | Title font | |
Integer | font_size | Size of the title font | |
String | font_style | Style of the title font | |
String | axesType | The type of axis to be displayed | |
String | titleX | Label of the x axis | |
String | xAxisType | The type (linear or log) for cartesian X axis | |
String | gridX | Whether to display the grid for the x axis | |
String | titleY | Label of the y axis | |
String | yAxisType | The type (linear or log) for cartesian Y axis | |
String | gridY | Whether to display the grid for the y axis | |
Real | deltaR | The separation in R for the polar axis | |
Real | deltaTheta | The separation in Theta for polar axis | |
String | autoScaleX | Whether to automatically adjust X scale | |
Real | marginX | Margin to be left in the X scale | |
String | autoScaleY | Whether to automatically adjust Y scale | |
Real | marginY | Margin to be left in the Y scale | |
Real | minX | The minimum x value that can be displayed | |
Real | maxX | The maximum x value that can be displayed | |
Real | minY | The minimum y value that can be displayed | |
Real | maxY | The maximum y valued taht can be displayed | |
String | coordinates | Whether to display coordinates when the mouse is pressed | |
String | showGrid | Whether to show or not the grid | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | position | Position in the container hosting the element |
function plottingPanel "Write the java code to generate a PlottingPanel" input String fileName "Name of the Java file"; input String parent "Name of the component hosting the element"; input String name "Name of the element"; input String title "Title to display at the top"; input String font_name "Title font"; input Integer font_size "Size of the title font"; input String font_style "Style of the title font"; input String axesType "The type of axis to be displayed"; input String titleX "Label of the x axis"; input String xAxisType "The type (linear or log) for cartesian X axis"; input String gridX "Whether to display the grid for the x axis"; input String titleY "Label of the y axis"; input String yAxisType "The type (linear or log) for cartesian Y axis"; input String gridY "Whether to display the grid for the y axis"; input Real deltaR "The separation in R for the polar axis"; input Real deltaTheta "The separation in Theta for polar axis"; input String autoScaleX "Whether to automatically adjust X scale"; input Real marginX "Margin to be left in the X scale"; input String autoScaleY "Whether to automatically adjust Y scale"; input Real marginY "Margin to be left in the Y scale"; input Real minX "The minimum x value that can be displayed"; input Real maxX "The maximum x value that can be displayed"; input Real minY "The minimum y value that can be displayed"; input Real maxY "The maximum y valued taht can be displayed"; input String coordinates "Whether to display coordinates when the mouse is pressed"; input String showGrid "Whether to show or not the grid"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String position "Position in the container hosting the element"; external "C"; end plottingPanel;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the container hosting the element | |
String | name | Name of the element | |
String | num | Number identifying the element | |
Real | point[2] | Coordinates x and y of the new point | |
Integer | maximumPoints | Maximum number of points to be displayed | |
Integer | nSkip | Number of points to skip before plotting one | |
String | connected | Whether to connect next point with the previous | |
Integer | lineColor[4] | Color of the line |
function trail "Write the java code to generate a Frame" input String fileName "Name of the Java file"; input String parent "Name of the container hosting the element"; input String name "Name of the element"; input String num "Number identifying the element"; input Real point[2] "Coordinates x and y of the new point"; input Integer maximumPoints "Maximum number of points to be displayed"; input Integer nSkip "Number of points to skip before plotting one"; input String connected "Whether to connect next point with the previous"; input Integer lineColor[4] "Color of the line"; external "C"; end trail;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the element | |
String | parent | Name of the container hosting the element | |
String | initialValue | Initial value | |
String | label | Text displayed with the checkBox | |
String | varName | String variable that can be linked to the corresponding variable of a dialog window in order to show and hide the window by clicking on the check-box | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | positionInBorderLayout | Position in the container hosting the element |
function checkBox "Write the java code to generate a CheckBox" input String fileName "Name of the Java file"; input String name "Name of the element"; input String parent "Name of the container hosting the element"; input String initialValue "Initial value"; input String label "Text displayed with the checkBox"; input String varName "String variable that can be linked to the corresponding variable of a dialog window in order to show and hide the window by clicking on the check-box"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String positionInBorderLayout "Position in the container hosting the element"; external "C"; end checkBox;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the component hosting the element | |
String | name | Name of the element | |
String | num | Number identifying the element | |
Real | d | Drawing Parameter | |
Integer | N | Drawing Parameter | |
Real | A | Drawing Parameter | |
Real | stroke | Stroke of the line | |
Real | x1 | X- Coordinate of P1. P1 is one spring extremity | |
Real | x2 | X- Coordinate of P2. P2 is one spring extremity | |
Real | y1 | Y- Coordinate of P1. P1 is one spring extremity | |
Real | y2 | Y- Coordinate of P2. P2 is one spring extremity | |
Integer | intX1Y1 | = 0 if the point (x1, y1) change in time and 0 otherwise | |
Integer | intX2Y2 | = 0 if the point (x2, y2) change in time and 0 otherwise | |
Integer | lineColor[4] | Line color |
function spring "Write the Java code to generate a Spring" input String fileName "Name of the Java file"; input String parent "Name of the component hosting the element"; input String name "Name of the element"; input String num "Number identifying the element"; input Real d "Drawing Parameter"; input Integer N "Drawing Parameter"; input Real A "Drawing Parameter"; input Real stroke "Stroke of the line"; input Real x1 "X- Coordinate of P1. P1 is one spring extremity"; input Real x2 "X- Coordinate of P2. P2 is one spring extremity"; input Real y1 "Y- Coordinate of P1. P1 is one spring extremity"; input Real y2 "Y- Coordinate of P2. P2 is one spring extremity"; input Integer intX1Y1 "= 0 if the point (x1, y1) change in time and 0 otherwise "; input Integer intX2Y2 "= 0 if the point (x2, y2) change in time and 0 otherwise "; input Integer lineColor[4] "Line color"; external "C"; end spring;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | parent | Name of the container hosting the element | |
String | name | Name of the element | |
String | num | Number identifying the element | |
Real | d | Drawing parameter | |
Real | L1 | Drawing parameter | |
Real | L2 | Drawing parameter | |
Real | x1 | X- Coordinate of P1. P1 is one spring extremity | |
Real | x2 | X- Coordinate of P2. P2 is one spring extremity | |
Real | y1 | Y- Coordinate of P1. P1 is one spring extremity | |
Real | y2 | Y- Coordinate of P2. P2 is one spring extremity | |
Integer | intX1Y2 | = 0 if the point (x1, y1) change in time and 0 otherwise | |
Integer | intX2Y2 | = 0 if the point (x2, y2) change in time and 0 otherwise | |
Integer | color1[4] | The damper color changes form this color to color2 | |
Integer | color2[4] | The damper color changes form this color to color1 |
function damper "Write the Java code to generate a Damper" input String fileName "Name of the Java file"; input String parent "Name of the container hosting the element"; input String name "Name of the element"; input String num "Number identifying the element"; input Real d "Drawing parameter"; input Real L1 "Drawing parameter"; input Real L2 "Drawing parameter"; input Real x1 "X- Coordinate of P1. P1 is one spring extremity"; input Real x2 "X- Coordinate of P2. P2 is one spring extremity"; input Real y1 "Y- Coordinate of P1. P1 is one spring extremity"; input Real y2 "Y- Coordinate of P2. P2 is one spring extremity"; input Integer intX1Y2 "= 0 if the point (x1, y1) change in time and 0 otherwise "; input Integer intX2Y2 "= 0 if the point (x2, y2) change in time and 0 otherwise "; input Integer color1[4] "The damper color changes form this color to color2"; input Integer color2[4] "The damper color changes form this color to color1"; external "C"; end damper;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the element | |
String | parent | Name of the component hosting the element | |
String | buttonValue | "true" | Initial value |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | positionInBorderLayout | Position in the container hosting the element |
function pauseButton "Write the Java code to generate a PauseButton" input String fileName "Name of the Java file"; input String name "Name of the element"; input String parent "Name of the component hosting the element"; input String buttonValue = "true" "Initial value"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String positionInBorderLayout "Position in the container hosting the element"; external "C"; end pauseButton;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the element | |
String | parent | Name of the container hosting the elemnt | |
Real | initialValue | Initial value | |
String | stringFormat | Format of the number | |
String | enable | 1: enable, 0: disabled | |
Integer | position | Number identifying the interactive element | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | positionInBorderLayout | Position in the container hosting the element |
function numberField "Write the Java code to generate a NumberField" input String fileName "Name of the Java file"; input String name "Name of the element"; input String parent "Name of the container hosting the elemnt"; input Real initialValue "Initial value"; input String stringFormat "Format of the number"; input String enable "1: enable, 0: disabled"; input Integer position "Number identifying the interactive element"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String positionInBorderLayout "Position in the container hosting the element"; external "C"; end numberField;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the element | |
String | parent | Name of the container hosting the elment | |
String | selected | "true" | Initial value |
String | label | Text displayed with the element | |
String | alignment | Alignment of the text | |
String | image | Path of the image | |
Integer | bgcolor[4] | Background color | |
String | tooltip | Text of the tooltip | |
Integer | lettercolor[4] | Color of the text | |
String | typeFont | Type of font | |
String | styleFont | Style of font | |
Integer | sizeFont | Size of font | |
String | path | Path of the HTML pages | |
Integer | xPos | X coordinate of the window upper left corner in pixels | |
Integer | yPos | Y coordinate of the window upper left corner in pixels | |
Integer | xWidth | Width of the window in Pixels | |
Integer | yWidth | Height of the window in Pixels | |
String | title | Text displayed by the window | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | positionInBorderLayout | Position in the container hosting the element |
function infoButton "Write the Java code to generate an InfoButton" input String fileName "Name of the Java file"; input String name "Name of the element"; input String parent "Name of the container hosting the elment"; input String selected = "true" "Initial value"; input String label "Text displayed with the element"; input String alignment "Alignment of the text"; input String image "Path of the image"; input Integer bgcolor[4] "Background color"; input String tooltip "Text of the tooltip"; input Integer lettercolor[4] "Color of the text"; input String typeFont "Type of font"; input String styleFont "Style of font"; input Integer sizeFont "Size of font"; input String path "Path of the HTML pages"; input Integer xPos "X coordinate of the window upper left corner in pixels"; input Integer yPos "Y coordinate of the window upper left corner in pixels"; input Integer xWidth "Width of the window in Pixels"; input Integer yWidth "Height of the window in Pixels"; input String title "Text displayed by the window"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String positionInBorderLayout "Position in the container hosting the element"; external "C"; end infoButton;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the element | |
String | parent | Name of the component hosting the element | |
String | selected | "true" | Initial value |
String | label | Text dispayed with the element | |
String | alignment | Text alignment | |
String | image | Path of the image dispayed with the element | |
Integer | bgcolor[4] | Background color | |
String | tooltip | Text of the tooltip | |
Integer | lettercolor[4] | Letter color | |
String | typeFont | Type of font | |
String | styleFont | Style of font | |
Integer | sizeFont | Size of font | |
Integer | position | Number identifying the interactive element | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | positionInBorderLayout | Position in the container hosting the element |
function button1Action "Write the Java code to generate a Button1Action" input String fileName "Name of the Java file"; input String name "Name of the element"; input String parent "Name of the component hosting the element"; input String selected = "true" "Initial value"; input String label "Text dispayed with the element"; input String alignment "Text alignment"; input String image "Path of the image dispayed with the element"; input Integer bgcolor[4] "Background color"; input String tooltip "Text of the tooltip"; input Integer lettercolor[4] "Letter color"; input String typeFont "Type of font"; input String styleFont "Style of font"; input Integer sizeFont "Size of font"; input Integer position "Number identifying the interactive element"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String positionInBorderLayout "Position in the container hosting the element"; external "C"; end button1Action;
Type | Name | Default | Description |
---|---|---|---|
String | fileName | Name of the Java file | |
String | name | Name of the element | |
String | parent | Name of the container hosting the element | |
String | selected | "true" | Initial value |
String | label | Name of the text dispayed with the element | |
String | alignment | Alignment of the text | |
String | image | Paht of the image displayed with the element | |
Integer | bgcolor[4] | Background color | |
String | tooltip | Text of the tooltip | |
Integer | lettercolor[4] | Letter color | |
String | typeFont | Type of font | |
String | styleFont | Style of font | |
Integer | sizeFont | Size of font | |
Integer | position | Number identifying the interactive element | |
Integer | positionSelection | 1: the container hosting the element has BorderLayout policy | |
String | positionInBorderLayout | Position in the container hosting the element |
function button2Actions "Write the Java code to generate a Button2Actions" input String fileName "Name of the Java file"; input String name "Name of the element"; input String parent "Name of the container hosting the element"; input String selected = "true" "Initial value"; input String label "Name of the text dispayed with the element"; input String alignment "Alignment of the text"; input String image "Paht of the image displayed with the element"; input Integer bgcolor[4] "Background color"; input String tooltip "Text of the tooltip"; input Integer lettercolor[4] "Letter color"; input String typeFont "Type of font"; input String styleFont "Style of font"; input Integer sizeFont "Size of font"; input Integer position "Number identifying the interactive element"; input Integer positionSelection "1: the container hosting the element has BorderLayout policy"; input String positionInBorderLayout "Position in the container hosting the element"; external "C"; end button2Actions;
Type | Name | Default | Description |
---|---|---|---|
String | file | Path of the file |
Type | Name | Description |
---|---|---|
Integer | num | Number read in the file incremented by one |
function processingFile "Reads the number written in the first line of a file. Then, writes the number read incremented by one" input String file "Path of the file"; output Integer num "Number read in the file incremented by one"; external "C"; end processingFile;