ICON EDITOR🔗
It is a good practice to add an icon to a model. The icon shows up in the Projects browser (Library trees) and in the Diagram View.
Open the Icon Editor🔗
- Right-click on a model in the Projects browser
- Click on "Edit Icon" to open the Icon Editor
Add an icon🔗
There are two ways to add an icon to a model/class:
- Create an icon by using the built-in graphical primitives
- Use an existing image (PNG, JPG, BMP (not recommended, due to large memory), or SVG (displayed like PNG))
Create an icon by using the drawing tools🔗
Using the drawing tools you can be creative and use graphical primitives like rectangles, ellipses, texts, lines and polygons.
Advantages
- Small memory footprint
- Icon can be scaled up and down without any loss of the image quality (cf. vector graphics)
- Self-contained: All the information is stored in the model/class
Use an existing image🔗
An alternative to drawing your icon is to use an existing image. To add an image:
- Choose the "Draw Bitmap" tool and pick an image from the image gallery
- Or drag an image directly into the Icon Editor (doing so automatically uploads the image into the Resources folder of the corresponding library)
Advantages
- Quick way to add an icon
Disadvantages
- Larger memory footprint and the icon can lose quality when scaled up and down
- The image is stored outside the model