prmr / JetUML

A desktop application for fast UML diagramming.
GNU General Public License v3.0
619 stars 121 forks source link

[#512] Underlining Feature for Static Attributes and Methods in Class Diagrams #525

Closed jkcoding7 closed 6 months ago

jkcoding7 commented 6 months ago

Users can now underline their static features by surrounding them with the underscore ("") markup. E.g. _getHeight(): int\ Leading and trailing spaces result in no underlining.

Detection of markups is done in the TypeNodeRenderer class and drawing the underline by StringRenderer. Adjustments were made in the draw method of StringRenderer class to accommodate underlining of text aligned to the top.