VirtualLabBuilder.ViewElements.Containers

Container elements

Information


 

Containers package

Containers package has those graphic elements that are intended to host other graphic elements. The container properties are set in the view definition and they can not be modified during the simulation run.

Package Content

NameDescription
VirtualLabBuilder.ViewElements.Containers.MainFrame MainFrame Main window
VirtualLabBuilder.ViewElements.Containers.Dialog Dialog Dialog window
VirtualLabBuilder.ViewElements.Containers.Panel Panel Panel container
VirtualLabBuilder.ViewElements.Containers.DrawingPanel DrawingPanel Drawing-panel
VirtualLabBuilder.ViewElements.Containers.PlottingPanel PlottingPanel Plotting-panel


VirtualLabBuilder.ViewElements.Containers.MainFrame VirtualLabBuilder.ViewElements.Containers.MainFrame

Main window

VirtualLabBuilder.ViewElements.Containers.MainFrame

Information


                        

Creates a window where containers and interactive controls can be placed. The view can contain only one MainFrame object. The user can stop the simulation by closing this window.


Parameters

TypeNameDefaultDescription
LayoutPolicyLayoutPolicy"BorderLayout()"Layout policy
Stringtitle"MainFrame"Text display as title
IntegerxPosition0X coordinate of the window upper left corner in pixels
IntegeryPosition0Y coordinate of the window upper left corner in pixels
IntegerWidth400Window width in pixels
IntegerHeight400Window height in pixels
IntegernRows1Number of rows when GridLayout policy is selected
IntegernColumns1Number of columns when GridLayout policy is selected

Connectors

TypeNameDescription
ParentLpLLeftConnector of non drawable components - Parent information
ChildLcLRightConnector of non drawable components - Child information
ChildLcLLeftConnector of non drawable components - Parent information

Modelica definition

model MainFrame "Main window" 
          extends src.ViewElements.Containers.MainFrame;
end MainFrame;

VirtualLabBuilder.ViewElements.Containers.Dialog VirtualLabBuilder.ViewElements.Containers.Dialog

Dialog window

VirtualLabBuilder.ViewElements.Containers.Dialog

Information


                        

This class, like MainFrame, creates a window where containers and interactive controls can be placed. This class has only two differences with MainFrame class: simulation run doesn't stop by closing this window and there can be more than one Dialog object.


Parameters

TypeNameDefaultDescription
LayoutPolicyLayoutPolicy"BorderLayout()"Layout policy
Stringtitle"Dialog"Text display as title
IntegerxPosition0X coordinate of the window upper left corner in pixels
IntegeryPosition0Y coordinate of the window upper left corner in pixels
IntegerWidth400Window width in pixels
IntegerHeight400Window height in pixels
IntegernRows1Number of rows when GridLayout policy is selected
IntegernColumns1Number of columns when GridLayout policy is selected
StringvarName""String variable that can be linked to the corresponding variable of a check-box in order to show and hide the window by clicking on the check-box

Connectors

TypeNameDescription
ParentLpLLeftConnector of non drawable components - Parent information
ChildLcLRightConnector of non drawable components - Child information
ChildLcLLeftConnector of non drawable components - Parent information

Modelica definition

model Dialog "Dialog window" 
            extends src.ViewElements.Containers.Dialog;
  
end Dialog;

VirtualLabBuilder.ViewElements.Containers.Panel VirtualLabBuilder.ViewElements.Containers.Panel

Panel container

VirtualLabBuilder.ViewElements.Containers.Panel

Information


                        

Panel model creates a panel where containers, basic elements and interactive controls can be placed.


Parameters

TypeNameDefaultDescription
LayoutPolicyLayoutPolicy"BorderLayout()"Layout policy
positioninLayoutposition"SOUTH"If the element hosting the panel has BorderLayout policy, this parameter sets the panel location respect to its container (i.e., north, south, west or east)
IntegernRows1Number of rows if GridLayout policy is selected
IntegernColumns1Number of columns if GridLayout policy is selected

Connectors

TypeNameDescription
ParentLpLLeftConnector of non drawable components - Parent information
ChildLcLRightConnector of non drawable components - Child information
ChildLcLLeftConnector of non drawable components - Parent information

Modelica definition

model Panel "Panel container" 
            extends src.ViewElements.Containers.Panel;
end Panel;

VirtualLabBuilder.ViewElements.Containers.DrawingPanel VirtualLabBuilder.ViewElements.Containers.DrawingPanel

Drawing-panel

VirtualLabBuilder.ViewElements.Containers.DrawingPanel

Information


DrawingPanel model creates a two-dimensional container that only can contain drawable objects. It represents a rectangular region of the plane which is defined by means of two points: (XMin, YMin) and (Xmax, YMax). The coordinates of these two points (i.e., the value of (XMin, YMin) and (Xmax, YMax) ) are parameters of the class whose value can be set by the user.


Parameters

TypeNameDefaultDescription
positioninLayoutposition"CENTER"Position inside its container when this container has the BorderLayout layout policy
RealXMin-1Minimum X
RealXMax1Maximum X
RealYMin-1Minimum Y
RealYMax1Maximum Y

Connectors

TypeNameDescription
ParentLpLLeftConnector of non drawable components - Parent information
ChildLcLLeftConnector of non drawable components - Parent information
ChildcRightConnector of drawable components - Child information

Modelica definition

model DrawingPanel "Drawing-panel" 
                    extends src.ViewElements.Containers.DrawingPanel;
end DrawingPanel;

VirtualLabBuilder.ViewElements.Containers.PlottingPanel VirtualLabBuilder.ViewElements.Containers.PlottingPanel

Plotting-panel

VirtualLabBuilder.ViewElements.Containers.PlottingPanel

Information


PlottingPanel model creates a two-dimensional container with coordinate axes that only can contain drawable objects.


Parameters

TypeNameDefaultDescription
positioninLayoutposition"CENTER"Position inside its container when this container has the BorderLayout layout policy
Stringtitle""Title to display at the top
fontTypefont_name"Dialog"Title font
Integerfont_size14Size of the title font
fontStylefont_style"BOLD"Style of the title font
axesTypeaxesType"cartesian2"The type of axis to be displayed
StringtitleX""Label of the x axis
xyaxesTypexAxisType"linear"The type (linear or log) for cartesian X axis
booleanValuegridX"true"Whether to display the grid for the x axis
StringtitleY""Label of the y axis
xyaxesTypeyAxisType"linear"The type (linear or log) for cartesian y axis
booleanValuegridY"true"Whether to display the grid for the y axis
RealdeltaR2The separation in R for the polar axis
RealdeltaTheta3.14159/8The separation in Theta for polar axis
booleanValueautoScaleX"true"Whether to automatically adjust X scale
RealmarginX0Margin to be left in the X scale
booleanValueautoScaleY"true"Whether to automatically adjust Y scale
RealmarginY0Margin to be left in the Y scale
RealminX0The minimum x value that can be displayed
RealmaxX1The maximum x value that can be displayed
RealminY0The minimum y value that can be displayed
RealmaxY1The maximum y valued taht can be displayed
booleanValuecoordinates"true"Whether to display coordinates when the mouse is pressed
booleanValueshowGrid"true"Whether to show or not the grid

Connectors

TypeNameDescription
ParentLpLLeftConnector of non drawable components - Parent information
ChildLcLLeftConnector of non drawable components - Parent information
ChildcRightConnector of drawable components - Child information

Modelica definition

model PlottingPanel "Plotting-panel" 
                   extends src.ViewElements.Containers.PlottingPanel;
end PlottingPanel;

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