Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368591

Summary: [All diagrams] It should be possible to use icons with a higher resolution
Product: [Modeling] Papyrus Reporter: Ansgar Radermacher <ansgar.radermacher>
Component: CoreAssignee: Ansgar Radermacher <ansgar.radermacher>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: Patrick.Tessier
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Figure of a client/server port (based on a 7x15 icon) when zooming-in
none
High resolution icons for MARTE GCM, ports within composite-structure diagram after patch application none

Description Ansgar Radermacher CLA 2012-01-13 16:13:52 EST
Created attachment 209481 [details]
Figure of a client/server port (based on a 7x15 icon) when zooming-in

It would be nice to use icons with a higher resolution, for instance for MARTE's client/server port. Currently, figures do not look nice when zooming-in or printing.
Ideally, icons for stereotypes are stored in a vector format (such as SVG) to be resolution independent. An alternative that is closer to the current implementation is the use of bitmaps with a higher resolution that are scaled down when shown on the screen.
Comment 1 Camille Letavernier CLA 2012-02-22 11:32:07 EST
r7267 : Done on the Trunk
Comment 2 Ansgar Radermacher CLA 2012-02-22 11:48:07 EST
Initial support for high-resolution icons consists in scaling these
appropriately:
- In case of "AffixedNamedElementFigure" such as ports, the icon is scaled down
to fit in the bounding box.
- In case of NodeNamedElementFigures" the icon is scaled to the height of the
text font

If the icons are smaller, they are not scaled i.e. not affected by the patch.

The patch has been checked in revision 7257 for the branch and 7267 (as already in the previous post) for the trunk.
Comment 3 Ansgar Radermacher CLA 2012-02-22 12:00:46 EST
Created attachment 211425 [details]
High resolution icons for MARTE GCM, ports within composite-structure diagram after patch application

There are still unresolved cases in which the icons appear unscaled (e.g. when used within the label of a port). The MARTE profile with the new icons has not been checked in.
Comment 4 Camille Letavernier CLA 2012-07-26 08:57:24 EDT
r8628: Fix a NPE when the LabelWithScalableIcons does not have a Font. Avoid diagram corruption (Especially on Deployment Diagram)
Comment 5 Ansgar Radermacher CLA 2018-09-03 04:15:27 EDT
Some support for higher-resolution icons is available. The feature has become less important with the possibility to use SVG icons. Therefore, it is unlikely that we will take the time to resolve cases in which larger icons are not scaled (see comment 2 and 3) and I propose to close the bug.