This entry comes a lot after the fact, but, nevertheless, it contains important details on how to get good icons for the ArgoUML GUI.Thanks to Michiel van der Wulp for supporting me on this work with icons in specific and implementing the C++ Notation in general.By mid of 2006 I detected that the C++ notation wasn't working no more in the ArgoUML diagrams and created issue #2 in the C++ module issues DB.The whole Notation sub-system was refactored by Michiel and the C++ module had to adapt.So, to make a long story short, I needed to create an icon for the C++ notation as part of the work and what follows is a recipe on how to do it:
Note: these instructions are for Windows. If you're on Linux, you'll have to look elsewhere.
- Start from one of the icons stored in the Images directory of the source code.
- Using MS Paint, you'll draw the icon according to your artistic capabilities. For this you'll have easier time by using gigantic zoom like 800%.
- Then, use IrfanView to reduce the color depth to 4 colors and to set the transparent colour.
But, if you want to see the whole story of having Notation icons working from ArgoUML modules, you'll have to use the a different loading code than what is used in core argouml code. Please check the code in NotationModuleCpp.java.
I hope this tiny cookbook helps others and avoids core developers having to answer to trivial questions again. And once more, all credit besides writing this tutorial goes to Michiel, who helped me a lot while I was doing this.