-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path497.html
46 lines (46 loc) · 5.96 KB
/
497.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html><head><title>ChooseMouseMode.java</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="sourcestyles.css" />
</head><body link="blue" vlink="blue">
<h3>File: /Users/shatabdi/Education/GitHub/se450_project/src/model/dialogs/ChooseMouseMode.java</h3>
<SCRIPT>
defaultStatus = "File: /Users/shatabdi/Education/GitHub/se450_project/src/model/dialogs/ChooseMouseMode.java";
top.document.title = "ChooseMouseMode.java";
</SCRIPT>
<pre><span class="default"></span><a name="1"><font size=-1>1 </font></a><span class="default"></span><span class="keyword">package </span><span class="default">model.<a href="dictionary_M.html#320">dialogs</a>;</span>
<a name="2"><font size=-1>2 </font></a><span class="default"></span>
<a name="3"><font size=-1>3 </font></a><span class="default"></span><span class="keyword">import </span><span class="default">model.<a href="dictionary_M.html#49">interfaces</a>.<a href="dictionary_M.html#196">IApplicationState</a>;</span>
<a name="4"><font size=-1>4 </font></a><span class="default"></span><span class="keyword">import </span><span class="default">view.<a href="dictionary_V.html#50">Enum</a>.<a href="dictionary_V.html#286">MouseMode</a>;</span>
<a name="5"><font size=-1>5 </font></a><span class="default"></span><span class="keyword">import </span><span class="default">view.<a href="dictionary_V.html#161">interfaces</a>.<a href="dictionary_V.html#287">IDialog</a>;</span>
<a name="6"><font size=-1>6 </font></a><span class="default"></span>
<a name="7"><font size=-1>7 </font></a><span class="default"></span><span class="keyword">public class <a href="dictionary_M.html#498">ChooseMouseMode</a> implements <a href="dictionary_V.html#287">IDialog</a></span><span class="default"><<a href="dictionary_V.html#286">MouseMode</a>> {</span>
<a name="8"><font size=-1>8 </font></a><span class="default"> </span><span class="keyword">private final <a href="dictionary_M.html#196">IApplicationState</a> <a href="dictionary_M.html#505">applicationState</a></span><span class="default">;</span>
<a name="9"><font size=-1>9 </font></a><span class="default"></span>
<a name="10"><font size=-1>10 </font></a><span class="default"> </span><span class="keyword">public <a href="dictionary_M.html#499">ChooseMouseMode</a></span><span class="default">(<a href="dictionary_M.html#196">IApplicationState</a> <a href="dictionary_M.html#500">applicationState</a>) {</span>
<a name="11"><font size=-1>11 </font></a><span class="default"></span>
<a name="12"><font size=-1>12 </font></a><span class="default"> </span><span class="keyword">this</span><span class="default">.<a href="dictionary_M.html#505">applicationState</a> = <a href="dictionary_M.html#500">applicationState</a>;</span>
<a name="13"><font size=-1>13 </font></a><span class="default"> }</span>
<a name="14"><font size=-1>14 </font></a><span class="default"></span>
<a name="15"><font size=-1>15 </font></a><span class="default"> @<a href="dictionary_O.html#2">Override</a></span>
<a name="16"><font size=-1>16 </font></a><span class="default"> </span><span class="keyword">public <a href="dictionary_S.html#93">String</a> <a href="dictionary_M.html#504">getDialogTitle</a></span><span class="default">() {</span>
<a name="17"><font size=-1>17 </font></a><span class="default"> </span><span class="keyword">return </span><span class="string">"Mouse Mode"</span><span class="default">;</span>
<a name="18"><font size=-1>18 </font></a><span class="default"> }</span>
<a name="19"><font size=-1>19 </font></a><span class="default"></span>
<a name="20"><font size=-1>20 </font></a><span class="default"> @<a href="dictionary_O.html#2">Override</a></span>
<a name="21"><font size=-1>21 </font></a><span class="default"> </span><span class="keyword">public <a href="dictionary_S.html#93">String</a> <a href="dictionary_M.html#503">getDialogText</a></span><span class="default">() {</span>
<a name="22"><font size=-1>22 </font></a><span class="default"> </span><span class="keyword">return </span><span class="string">"Select a shading type from the menu below:"</span><span class="default">;</span>
<a name="23"><font size=-1>23 </font></a><span class="default"> }</span>
<a name="24"><font size=-1>24 </font></a><span class="default"></span>
<a name="25"><font size=-1>25 </font></a><span class="default"> @<a href="dictionary_O.html#2">Override</a></span>
<a name="26"><font size=-1>26 </font></a><span class="default"> </span><span class="keyword">public <a href="dictionary_V.html#286">MouseMode</a> <a href="dictionary_M.html#501">getCurrentSelection</a></span><span class="default">() {</span>
<a name="27"><font size=-1>27 </font></a><span class="default"> </span><span class="keyword">return <a href="dictionary_M.html#505">applicationState</a></span><span class="default">.<a href="dictionary_M.html#506">getActiveMouseMode</a>();</span>
<a name="28"><font size=-1>28 </font></a><span class="default"> }</span>
<a name="29"><font size=-1>29 </font></a><span class="default"></span>
<a name="30"><font size=-1>30 </font></a><span class="default"> @<a href="dictionary_O.html#2">Override</a></span>
<a name="31"><font size=-1>31 </font></a><span class="default"> </span><span class="keyword">public <a href="dictionary_V.html#286">MouseMode</a></span><span class="default">[] <a href="dictionary_M.html#502">getDialogOptions</a>() {</span>
<a name="32"><font size=-1>32 </font></a><span class="default"> </span><span class="keyword">return <a href="dictionary_V.html#286">MouseMode</a></span><span class="default">.<a href="dictionary_V.html#316">values</a>();</span>
<a name="33"><font size=-1>33 </font></a><span class="default"> }</span>
<a name="34"><font size=-1>34 </font></a><span class="default"></span>
<a name="35"><font size=-1>35 </font></a><span class="default">}</span>
<a name="36"><font size=-1>36 </font></a><span class="default"></span>
</pre></body></html>