code here-
\documentclass{standalone}
\usepackage{pgf-umlcd}
\begin{document}
\begin{tikzpicture}
\begin{class}[text width = 8cm]{JavaLanguageBehavior}{0,0}
\attribute{$\sim$ com.alhelal.textpad}
\attribute{- uniqueInstance : JavaLanguageBehavior}
\operation{+ getUniqueInstance : JavaLanguageBehavior}
\operation{+ runCode(file : File) : BufferedReader}
\operation{+ buildCode(file : File) : BufferedReader}
\operation{+ setHighlightableText()}
\operation{+ setAutoCompletableText()}
\end{class}
\node [above=3mm] at (current bounding box.north) {Singleton Pattern};
\end{tikzpicture}
\end{document}
When I use a -
(private) as visibility the uniqueInstance
variable goes to left. How can I align the visibility and variables?