BasicElements package contains classes that can be hosted inside a window or a panel.
Name | Description |
---|---|
![]() | Decorative label |
![]() | Check-box |
![]() | Button to pause and resume the simulation |
![]() | Button that allows the user to display the virtual-lab documentation |
Creates a decorative label.
Type | Name | Default | Description |
---|---|---|---|
positioninLayout | position | "CENTER" | Position inside its container |
String | text | "text" | Text to be displayed |
alignmentType | alignment | "0.00" | Alignment of the text |
Color | background[4] | {255,255,255,255} | Background color |
Color | foreground[4] | {0,0,0,255} | Foreground color |
fontType | typeOfFont | "Times New Roman" | Type of font of the text |
fontStyle | styleOfFont | "Plain" | Style of font of the text |
Integer | sizeOfFont | 10 | Size of font |
Type | Name | Description |
---|---|---|
ParentL | pLLeft | Connector of non drawable components |
ChildL | cLLeft | Connector of non drawable components |
model Label "Decorative label" extends src.ViewElements.BasicElements.Label; end Label;
Creates a check-box. The checkbox allows to show or hide the virtual-lab windows by clicking on it.
Type | Name | Default | Description |
---|---|---|---|
positioninLayout | position | "CENTER" | Position inside its container |
booleanValue | initialValue | "false" | Initial value |
String | label | "" | String displayed by the element |
String | varName | "var" | 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 |
Type | Name | Description |
---|---|---|
ParentL | pLLeft | Connector of non drawable components |
ChildL | cLLeft | Connector of non drawable components |
model CheckBox "Check-box" extends src.ViewElements.BasicElements.CheckBox; end CheckBox;
Creates button that allows the user to pause and resume the simulation by clicking on it.
Type | Name | Default | Description |
---|---|---|---|
positioninLayout | position | "CENTER" | Position inside its container |
booleanValue | buttonPause | "false" | Initial value |
Type | Name | Description |
---|---|---|
ParentL | pLLeft | Connector of non drawable components |
ChildL | cLLeft | Connector of non drawable components |
model PauseButton "Button to pause and resume the simulation" extends src.ViewElements.BasicElements.PauseButton; end PauseButton;
Creates a button that allows the user to show or hide a window displaying HTML pages. This feature allows including documentation in the virtual-lab. That is to say, it supports the implementation of the virtual-lab introduction.
Type | Name | Default | Description |
---|---|---|---|
positioninLayout | position | "CENTER" | Position inside its container |
booleanValue | selected | "false" | Whether the button is selected or not |
String | label | "info" | Text displayed by the button |
alignmentType | alignment | "0.00" | Text alignment |
String | image | "" | Path of the image of the button |
Color | bgcolor[4] | {255,255,255,255} | Background color |
String | tooltip | "" | Tooltip |
Color | lettercolor[4] | {0,0,0,255} | String color |
fontType | typeFont | "Times New Roman" | Type of font |
fontStyle | styleFont | "Plain" | Style of font |
Integer | sizeFont | 20 | Size of font |
String | path | "" | location of the html file |
Integer | xPos | 400 | Position of the dialog window displayed by the button |
Integer | yPos | 0 | Position of the dialog window displayed by the button |
Integer | xWidth | 400 | Width of the dialog window displayed by the button |
Integer | yWidth | 400 | Width of the dialog window displayed by the button |
String | title | "Info window" | Title of the dialog window displayed by the button |
Type | Name | Description |
---|---|---|
ParentL | pLLeft | Connector of non drawable components |
ChildL | cLLeft | Connector of non drawable components |
model InfoButton "Button that allows the user to display the virtual-lab documentation" extends src.ViewElements.BasicElements.InfoButton; end InfoButton;