Is there a way to omit the visibility (lock symbol) marker in MetaUML Class
objects?
If I just refrain to use one I get a protected marker as a default.
A short example (note: the LaTeX builder has to be run with -shell-escape
option):
\documentclass{article}
\usepackage[shellescape]{gmp}
\begin{document}
\begin{mpost}[mpsettings={input metauml;},use]
Class.A("ClassA")
("-private","+public","default protected", "#protectedWithNumberSign")
();
drawObjects(A);
\end{mpost}
\end{document}
Just to have stated it: in section 2 Class Diagrams on page 6, the handbook says that #
produces a protected marker (therefore I was tempted to think that omitting the marker symbol it would result in no marker), but in fact this produces such a marker plus a # sign.
MetaUML
is a Metapost package, which is surely on topic here. – egreg Dec 7 '13 at 13:38metauml_class.mp
to get it to leave out the lock symbol. One approach would be to define a new access definition character, changeaddAttribute
to accept it, and changeClass_drawFeatures
to omit the lock selectively. – Thruston Apr 26 '14 at 11:38