Interactive.src.ViewElements.Containers

Container elements and base classes

Information

Containers package

Containers package includes the container elements and the base classes that the library developer has to extend to create new container elements.

          

Package Content

Name Description
Interactive.src.ViewElements.Containers.Window Window Base class of the classes describing windows
Interactive.src.ViewElements.Containers.Container Container Base class of the panels that doesn't host drawable elements
Interactive.src.ViewElements.Containers.ContainerDrawables ContainerDrawables Base class of the panels that host drawable elements
Interactive.src.ViewElements.Containers.MainWindow MainWindow Main window
Interactive.src.ViewElements.Containers.Dialog Dialog Dialog window
Interactive.src.ViewElements.Containers.Panel Panel Panel
Interactive.src.ViewElements.Containers.Canvas Canvas Drawing panel
Interactive.src.ViewElements.Containers.PlottingPanel PlottingPanel Plotting panel
Interactive.src.ViewElements.Containers.GroupBox GroupBox  

Interactive.src.ViewElements.Containers.Window Interactive.src.ViewElements.Containers.Window

Base class of the classes describing windows

Information


Window class is inherited from classes describing interactive graphic elements that create windows.
This class inherits from the IContainer class.
It contains the declaration of the parameters needed to specify the window title, its width and position.

Extends from Interfaces.IContainer (Interfaces of the classes describing containers that can't host drawable elements).

Parameters

NameDescription
LayoutPolicyLayout policy
titleText displayed as title
xPositionX coordinate of the window upper left corner in pixels
yPositionY coordinate of the window upper left corner in pixels
WidthWindow width in pixels
HeightWindow height in pixels
size[2]Window size in pixels

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information

Interactive.src.ViewElements.Containers.Container Interactive.src.ViewElements.Containers.Container

Base class of the panels that doesn't host drawable elements

Information


Container class is inherited from classes describing interactive graphic elements that create panels which can't host drawables elements.
This class inherits from the IContainer class.

Extends from Interfaces.IContainer (Interfaces of the classes describing containers that can't host drawable elements).

Parameters

NameDescription
LayoutPolicyLayout policy

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information

Interactive.src.ViewElements.Containers.ContainerDrawables Interactive.src.ViewElements.Containers.ContainerDrawables

Base class of the panels that host drawable elements

Information


ContainerDrawables class is inherited from classes describing interactive graphic elements that create panels which can only host drawables elements.
This class inherits from the IContainerDrawable class.

Extends from Interfaces.IContainerDrawables (Interfaces of the classes describing containers that only can host drawable elements).

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLLeftConnector of non drawable components - Parent information
cRightConnector of drawable components - Child information

Interactive.src.ViewElements.Containers.MainWindow Interactive.src.ViewElements.Containers.MainWindow

Main window

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.
This class inherits from Window class.

Extends from Window (Base class of the classes describing windows).

Parameters

NameDescription
LayoutPolicyLayout policy
titleText displayed as title
xPositionX coordinate of the window upper left corner in pixels
yPositionY coordinate of the window upper left corner in pixels
WidthWindow width in pixels
HeightWindow height in pixels
size[2]Window size in pixels

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information

Interactive.src.ViewElements.Containers.Dialog Interactive.src.ViewElements.Containers.Dialog

Dialog window

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.
This class inherits from Window class.

Extends from Window (Base class of the classes describing windows).

Parameters

NameDescription
LayoutPolicyLayout policy
titleText displayed as title
xPositionX coordinate of the window upper left corner in pixels
yPositionY coordinate of the window upper left corner in pixels
WidthWindow width in pixels
HeightWindow height in pixels
size[2]Window size in pixels
varNameString 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

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information

Interactive.src.ViewElements.Containers.Panel Interactive.src.ViewElements.Containers.Panel

Panel

Information


Panel model creates a panel where containers, basic elements and interactive controls can be placed.
This class inherits from Container class.

Extends from Container (Base class of the panels that doesn't host drawable elements).

Parameters

NameDescription
LayoutPolicyLayout policy
rowSets the row where the element is located if the parent has the Grid layout policy
columnSets the column where the element is located if the parent has the Grid layout policy
rowSpanSets the number of rows the element spans (only appliable if the parent has the Grid layout policy
columnSpanSets the number of columns the element spans (only appliable if the parent has the Grid layout policy

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information

Interactive.src.ViewElements.Containers.Canvas Interactive.src.ViewElements.Containers.Canvas

Drawing panel

Information


DrawingPanel model creates a 3-dimensional container that only can contain drawable objects.
This class inherits from ContainerDrawables class.

Extends from ContainerDrawables (Base class of the panels that host drawable elements).

Parameters

NameDescription
rowSets the row where the element is located if the parent has the Grid layout policy
columnSets the column where the element is located if the parent has the Grid layout policy
rowSpanSets the number of rows the element spans (only appliable if the parent has the Grid layout policy
columnSpanSets the number of columns the element spans (only appliable if the parent has the Grid layout policy
setCamera1: the camera is positioned with the user settings; 0: the camera is automatically positioned to view every actor at initial time
position[3]Where the camera is located
focalPoint[3]Where the camera is pointing
viewUp[3]Which direction is up
viewAngleThe camera view angle controls perspective effects

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLLeftConnector of non drawable components - Parent information
cRightConnector of drawable components - Child information

Interactive.src.ViewElements.Containers.PlottingPanel Interactive.src.ViewElements.Containers.PlottingPanel

Plotting panel

Information


PlottingPanel model creates a two-dimensional container with coordinate axes that only can contain drawable objects.
This class inherits from ContainerDrawables class.

Extends from ContainerDrawables (Base class of the panels that host drawable elements).

Parameters

NameDescription
titleTitle to display at the top
titleXLabel of the X axis
titleYLabel of the Y axis
logx1: plotting of Log of x-values
plotColorPlot Color
placeLegendtrue=>a legend is placed
legendPositionLegend position
checkableLegendtrue=>the traces can be shown/hide by clicking the corresponding legend item
autoscalextrue=> x axis autoscales
autoscaleytrue=> y axis autoscales
rowSets the row where the element is located if the parent has the Grid layout policy
columnSets the column where the element is located if the parent has the Grid layout policy
rowSpanSets the number of rows the element spans (only appliable if the parent has the Grid layout policy
columnSpanSets the number of columns the element spans (only appliable if the parent has the Grid layout policy

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLLeftConnector of non drawable components - Parent information
cRightConnector of drawable components - Child information

Interactive.src.ViewElements.Containers.GroupBox Interactive.src.ViewElements.Containers.GroupBox

Information


A GroupBox provides a frame, a title, and displays various other widgets inside itself.
This class inherits from Container class.

Extends from Container (Base class of the panels that doesn't host drawable elements).

Parameters

NameDescription
LayoutPolicyLayout policy
titleFrame title
flatBy default a group box has a surrounding frame, with the title being placed on the upper frame line. In flat mode the right, left and bottom frame lines are omitted, and only the thin line at the top is drawn
rowSets the row where the element is located if the parent has the Grid layout policy
columnSets the column where the element is located if the parent has the Grid layout policy
rowSpanSets the number of rows the element spans (only appliable if the parent has the Grid layout policy
columnSpanSets the number of columns the element spans (only appliable if the parent has the Grid layout policy

Connectors

NameDescription
pLLeftConnector of non drawable components - Parent information
cLRightConnector of non drawable components - Child information
cLLeftConnector of non drawable components - Parent information
Automatically generated Thu Apr 28 12:24:22 2022.