diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/pgf/contrib/pgf-umlcd/demo/visibility.tex |
Initial commit
Diffstat (limited to 'graphics/pgf/contrib/pgf-umlcd/demo/visibility.tex')
-rw-r--r-- | graphics/pgf/contrib/pgf-umlcd/demo/visibility.tex | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/pgf/contrib/pgf-umlcd/demo/visibility.tex b/graphics/pgf/contrib/pgf-umlcd/demo/visibility.tex new file mode 100644 index 0000000000..e5bd6e1318 --- /dev/null +++ b/graphics/pgf/contrib/pgf-umlcd/demo/visibility.tex @@ -0,0 +1,17 @@ +\begin{tikzpicture}%[show background grid] + \begin{class}[text width=7cm]{Class}{0,0} + \attribute{+ Public} + \attribute{\# Protected} + \attribute{- Private} + \attribute{$\sim$ Package} + \end{class} + + \begin{class}[text width=7cm]{BankAccount}{0,-3} + \attribute{+ owner : String} + \attribute{+ balance : Dollars} + + \operation{+ deposit( amount : Dollars )} + \operation{+ withdrawal( amount : Dollars )} + \operation{\# updateBalance( newBalance : Dollars )} + \end{class} +\end{tikzpicture}
\ No newline at end of file |