YAKINDU Model Viewer provides several options to customize the user interface to better suit your needs. Many of these features are concepts that are provided by the underlying Eclipse Platform. Please see the Eclipse Workbench User Guide for more information.
You can open a subsystem of the current model in a new tab, while keeping the view you are currently in. To do so, proceed as follows:
You can switch back and forth between tabs by clicking on them.
To close a tab, click on its resp. button.
Please note: It is also possible to open additional model files in new tabs, see section "Opening in a separate tab".
The YAKINDU Model Viewer workbench consists of a couple of views, as described in section "The workbench". The following subsections explain some actions you can perform with these views in order to optimize your model viewing experience.
Views are separated by vertical and/or horizontal separators. If you move the mouse cursor over such a separator between two views, it changes its shape to a double-sided arrow.
Press the left mouse button and drag the mouse to move the separator. As a result, one of the views grows – at the expense of its neighboring view.
Resizing a view
You can move a view to a different place in the workbench’s grid. To move a view, click at the view’s title, keep the mouse button pressed, and drag it into the desired direction. Figure "Moving a view beside another view" shows the Properties view in the process of being moved: The user is dragging the view’s title along the dashed line. The tool superimposes the wordbench grid with grey rectangles: They indicate areas where the user could drop the view by releasing the mouse button.
Moving a view beside another view
Figure "Moved view alongside another view" shows the result: The Properties view is now left from the main view, and both views are displayed side by side. The space at the bottom, formerly occupied by the properties view, is released and claimed by main view and properties view.
Moved view alongside another view
An option to save some screen estate is to move a view “on top” of another view resp. to a tab. This is sensible for views that you usually don’t need to see at the same time. In figure "Moving a view to a tab", the user drags the properties view’s title immediately beside the main view’s title.
Moving a view to a tab
Figure "Moved view in new tab" shows the result: The properties view and the main view are sharing the same space. Select the view you want to see by clicking on the corresponding tab.
Moved view in new tab
Close a view by clicking on its resp. button. A closed view is removed from the workbench. For re-opening a view, please see the following section.
Closing a view
Open a view via the Window → Show view → Other… menu item, see figure "The Show view menu" .
The Show view menu
Selecting this menu item displays the Show view dialog that lists all views you can open, see figure "The Show view dialog" . The YAKINDU Model Viewer section contains entries for the Help, Overview, and Signal trace views. Views that are already open are greyed out.
Double-click on a view to open it, or select it and click on the OK button.
The Show view dialog
Sometimes you want a certain view to temporarily occupy all the workbench space – or to get it completely out of the way, without closing it. The minimizing and maximizing functions come in handy.
To maximize a view, click on its maximize button or double-click on its title. Clicking on the view’s restore button or double-clicking on its title brings it back to its previous size.
To minimize a view, click on its minimize button . Clicking on the view’s restore button brings it back to its previous size.
A minimized view can sometimes be hard to spot, because, well, because it is minimized. Minimized views are lined up vertically at the left or right side of the workbench, see figure "A minimized view". They consist of the view’s icon and a restore button above it.
A minimized view
A collection of views and the way they are arranged is called a perspective. When you start up YAKINDU Model Viewer for the first time, the YAKINDU Model Viewer perspective is opened, as described in section "The workbench".
This section outlines some more details on perspectives that are good to know about.
Please note: The following list of features is in no way meant to be exhaustive. Please see the Eclipse Workbench User Guide for more information and/or investigate what’s in the Window → Perspective menu.
The section on views describes how you can rearrange views in your perspective by resizing, moving, opening, or closing them. However, you can always get back to your perspective’s default settings by resetting it.
Not satisfied with the YAKINDU Model Viewer perspective defaults? Okay, create your own!
If you want to modify your model, you can right away invoke the Simulink application – provided, of course, it is installed on your computer.
Please note: To make changes done by Simulink (or any other tool) to a currently open model file visible in YAKINDU Model Viewer, you have to close and re-open it.
YAKINDU Model Viewer controls the visual appearance of model elements by way of cascading style sheets (CSS). The tool has a built-in CSS style sheet called Standard. However, you can provide your own styling rules in the form of CSS files. Figure "Customizing model representation using cascading style sheets" is showing an example.
Customizing model representation using cascading style sheets
In order to provide and use your own CSS rules, proceed as follows:
Selecting a CSS file
The sample style sheet above already showed some CSS classes you can use as selectors for your styles. Here’s an exhaustive list of the supported CSS classes:
As YAKINDU Model Viewer uses JavaFX for rendering model elements, you can obtain further information on CSS styling from the JavaFX reference documentation.