CanvasController.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="de">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_74) on Tue Sep 27 12:48:17 CEST 2016 -->
  6. <title>CanvasController</title>
  7. <meta name="date" content="2016-09-27">
  8. <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="CanvasController";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/CanvasController.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../index-files/index-1.html">Index</a></li>
  47. <li><a href="../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li><a href="../../ui/controller/AutoSaveController.html" title="class in ui.controller"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../ui/controller/CategoryController.html" title="class in ui.controller"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../index.html?ui/controller/CanvasController.html" target="_top">Frames</a></li>
  57. <li><a href="CanvasController.html" target="_top">No&nbsp;Frames</a></li>
  58. </ul>
  59. <ul class="navList" id="allclasses_navbar_top">
  60. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  61. </ul>
  62. <div>
  63. <script type="text/javascript"><!--
  64. allClassesLink = document.getElementById("allclasses_navbar_top");
  65. if(window==top) {
  66. allClassesLink.style.display = "block";
  67. }
  68. else {
  69. allClassesLink.style.display = "none";
  70. }
  71. //-->
  72. </script>
  73. </div>
  74. <div>
  75. <ul class="subNavList">
  76. <li>Summary:&nbsp;</li>
  77. <li>Nested&nbsp;|&nbsp;</li>
  78. <li>Field&nbsp;|&nbsp;</li>
  79. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  80. <li><a href="#method.summary">Method</a></li>
  81. </ul>
  82. <ul class="subNavList">
  83. <li>Detail:&nbsp;</li>
  84. <li>Field&nbsp;|&nbsp;</li>
  85. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  86. <li><a href="#method.detail">Method</a></li>
  87. </ul>
  88. </div>
  89. <a name="skip.navbar.top">
  90. <!-- -->
  91. </a></div>
  92. <!-- ========= END OF TOP NAVBAR ========= -->
  93. <!-- ======== START OF CLASS DATA ======== -->
  94. <div class="header">
  95. <div class="subTitle">ui.controller</div>
  96. <h2 title="Class CanvasController" class="title">Class CanvasController</h2>
  97. </div>
  98. <div class="contentContainer">
  99. <ul class="inheritance">
  100. <li>java.lang.Object</li>
  101. <li>
  102. <ul class="inheritance">
  103. <li>ui.controller.CanvasController</li>
  104. </ul>
  105. </li>
  106. </ul>
  107. <div class="description">
  108. <ul class="blockList">
  109. <li class="blockList">
  110. <hr>
  111. <br>
  112. <pre>public class <span class="typeNameLabel">CanvasController</span>
  113. extends java.lang.Object</pre>
  114. <div class="block">Controller for the Canvas.</div>
  115. <dl>
  116. <dt><span class="simpleTagLabel">Author:</span></dt>
  117. <dd>Gruppe14</dd>
  118. </dl>
  119. </li>
  120. </ul>
  121. </div>
  122. <div class="summary">
  123. <ul class="blockList">
  124. <li class="blockList">
  125. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  126. <ul class="blockList">
  127. <li class="blockList"><a name="constructor.summary">
  128. <!-- -->
  129. </a>
  130. <h3>Constructor Summary</h3>
  131. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  132. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  133. <tr>
  134. <th class="colOne" scope="col">Constructor and Description</th>
  135. </tr>
  136. <tr class="altColor">
  137. <td class="colOne"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#CanvasController-ui.model.Model-ui.controller.MultiPurposeController-">CanvasController</a></span>(<a href="../../ui/model/Model.html" title="class in ui.model">Model</a>&nbsp;model,
  138. <a href="../../ui/controller/MultiPurposeController.html" title="class in ui.controller">MultiPurposeController</a>&nbsp;mp)</code>
  139. <div class="block">Constructor.</div>
  140. </td>
  141. </tr>
  142. </table>
  143. </li>
  144. </ul>
  145. <!-- ========== METHOD SUMMARY =========== -->
  146. <ul class="blockList">
  147. <li class="blockList"><a name="method.summary">
  148. <!-- -->
  149. </a>
  150. <h3>Method Summary</h3>
  151. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  152. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  153. <tr>
  154. <th class="colFirst" scope="col">Modifier and Type</th>
  155. <th class="colLast" scope="col">Method and Description</th>
  156. </tr>
  157. <tr id="i0" class="altColor">
  158. <td class="colFirst"><code>void</code></td>
  159. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#addEdgeOnCanvas-classes.CpsEdge-">addEdgeOnCanvas</a></span>(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</code>
  160. <div class="block">Add an edge to the Canvas.</div>
  161. </td>
  162. </tr>
  163. <tr id="i1" class="rowColor">
  164. <td class="colFirst"><code>void</code></td>
  165. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#addNewObject-classes.AbstractCpsObject-">addNewObject</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;object)</code>
  166. <div class="block">Add a new Object.</div>
  167. </td>
  168. </tr>
  169. <tr id="i2" class="altColor">
  170. <td class="colFirst"><code>void</code></td>
  171. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#addObject-classes.AbstractCpsObject-">addObject</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;object)</code>
  172. <div class="block">Add an CpsObject to the model and notify the ObjectListener for update.</div>
  173. </td>
  174. </tr>
  175. <tr id="i3" class="rowColor">
  176. <td class="colFirst"><code>void</code></td>
  177. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#addObjectListener-interfaces.ObjectListener-">addObjectListener</a></span>(<a href="../../interfaces/ObjectListener.html" title="interface in interfaces">ObjectListener</a>&nbsp;objLis)</code>
  178. <div class="block">adds the ObjectListener.</div>
  179. </td>
  180. </tr>
  181. <tr id="i4" class="altColor">
  182. <td class="colFirst"><code>void</code></td>
  183. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#copyObjects--">copyObjects</a></span>()</code>
  184. <div class="block">Copy all Selected Objects.</div>
  185. </td>
  186. </tr>
  187. <tr id="i5" class="rowColor">
  188. <td class="colFirst"><code>void</code></td>
  189. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#cutObjects--">cutObjects</a></span>()</code>
  190. <div class="block">Cut all Selected Objects.</div>
  191. </td>
  192. </tr>
  193. <tr id="i6" class="altColor">
  194. <td class="colFirst"><code>void</code></td>
  195. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#deleteObjectOnCanvas-classes.AbstractCpsObject-">deleteObjectOnCanvas</a></span>(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;obj)</code>
  196. <div class="block">Deletes an CpsObject on the Canvas and its connections.</div>
  197. </td>
  198. </tr>
  199. <tr id="i7" class="rowColor">
  200. <td class="colFirst"><code>void</code></td>
  201. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#notifyObjListeners--">notifyObjListeners</a></span>()</code>
  202. <div class="block">notifies all listeners about changes in the Canvas.</div>
  203. </td>
  204. </tr>
  205. <tr id="i8" class="altColor">
  206. <td class="colFirst"><code>void</code></td>
  207. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#pasteObjects-java.awt.Point-">pasteObjects</a></span>(java.awt.Point&nbsp;p)</code>
  208. <div class="block">Paste all Selected Objects.</div>
  209. </td>
  210. </tr>
  211. <tr id="i9" class="rowColor">
  212. <td class="colFirst"><code>void</code></td>
  213. <td class="colLast"><code><span class="memberNameLink"><a href="../../ui/controller/CanvasController.html#removeEdgesOnCanvas-classes.CpsEdge-">removeEdgesOnCanvas</a></span>(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</code>
  214. <div class="block">Removes an Edge from the Canvas.</div>
  215. </td>
  216. </tr>
  217. </table>
  218. <ul class="blockList">
  219. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  220. <!-- -->
  221. </a>
  222. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  223. <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  224. </ul>
  225. </li>
  226. </ul>
  227. </li>
  228. </ul>
  229. </div>
  230. <div class="details">
  231. <ul class="blockList">
  232. <li class="blockList">
  233. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  234. <ul class="blockList">
  235. <li class="blockList"><a name="constructor.detail">
  236. <!-- -->
  237. </a>
  238. <h3>Constructor Detail</h3>
  239. <a name="CanvasController-ui.model.Model-ui.controller.MultiPurposeController-">
  240. <!-- -->
  241. </a>
  242. <ul class="blockListLast">
  243. <li class="blockList">
  244. <h4>CanvasController</h4>
  245. <pre>public&nbsp;CanvasController(<a href="../../ui/model/Model.html" title="class in ui.model">Model</a>&nbsp;model,
  246. <a href="../../ui/controller/MultiPurposeController.html" title="class in ui.controller">MultiPurposeController</a>&nbsp;mp)</pre>
  247. <div class="block">Constructor.</div>
  248. <dl>
  249. <dt><span class="paramLabel">Parameters:</span></dt>
  250. <dd><code>model</code> - the Model</dd>
  251. <dd><code>mp</code> - the MultipurposeController</dd>
  252. </dl>
  253. </li>
  254. </ul>
  255. </li>
  256. </ul>
  257. <!-- ============ METHOD DETAIL ========== -->
  258. <ul class="blockList">
  259. <li class="blockList"><a name="method.detail">
  260. <!-- -->
  261. </a>
  262. <h3>Method Detail</h3>
  263. <a name="addObject-classes.AbstractCpsObject-">
  264. <!-- -->
  265. </a>
  266. <ul class="blockList">
  267. <li class="blockList">
  268. <h4>addObject</h4>
  269. <pre>public&nbsp;void&nbsp;addObject(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;object)</pre>
  270. <div class="block">Add an CpsObject to the model and notify the ObjectListener for update.</div>
  271. <dl>
  272. <dt><span class="paramLabel">Parameters:</span></dt>
  273. <dd><code>object</code> - CpsObject to be added.</dd>
  274. </dl>
  275. </li>
  276. </ul>
  277. <a name="addNewObject-classes.AbstractCpsObject-">
  278. <!-- -->
  279. </a>
  280. <ul class="blockList">
  281. <li class="blockList">
  282. <h4>addNewObject</h4>
  283. <pre>public&nbsp;void&nbsp;addNewObject(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;object)</pre>
  284. <div class="block">Add a new Object.</div>
  285. <dl>
  286. <dt><span class="paramLabel">Parameters:</span></dt>
  287. <dd><code>object</code> - the Object</dd>
  288. </dl>
  289. </li>
  290. </ul>
  291. <a name="addObjectListener-interfaces.ObjectListener-">
  292. <!-- -->
  293. </a>
  294. <ul class="blockList">
  295. <li class="blockList">
  296. <h4>addObjectListener</h4>
  297. <pre>public&nbsp;void&nbsp;addObjectListener(<a href="../../interfaces/ObjectListener.html" title="interface in interfaces">ObjectListener</a>&nbsp;objLis)</pre>
  298. <div class="block">adds the ObjectListener.</div>
  299. <dl>
  300. <dt><span class="paramLabel">Parameters:</span></dt>
  301. <dd><code>objLis</code> - ObjectListener</dd>
  302. </dl>
  303. </li>
  304. </ul>
  305. <a name="notifyObjListeners--">
  306. <!-- -->
  307. </a>
  308. <ul class="blockList">
  309. <li class="blockList">
  310. <h4>notifyObjListeners</h4>
  311. <pre>public&nbsp;void&nbsp;notifyObjListeners()</pre>
  312. <div class="block">notifies all listeners about changes in the Canvas.</div>
  313. </li>
  314. </ul>
  315. <a name="deleteObjectOnCanvas-classes.AbstractCpsObject-">
  316. <!-- -->
  317. </a>
  318. <ul class="blockList">
  319. <li class="blockList">
  320. <h4>deleteObjectOnCanvas</h4>
  321. <pre>public&nbsp;void&nbsp;deleteObjectOnCanvas(<a href="../../classes/AbstractCpsObject.html" title="class in classes">AbstractCpsObject</a>&nbsp;obj)</pre>
  322. <div class="block">Deletes an CpsObject on the Canvas and its connections.</div>
  323. <dl>
  324. <dt><span class="paramLabel">Parameters:</span></dt>
  325. <dd><code>obj</code> - AbstractCpsObject</dd>
  326. </dl>
  327. </li>
  328. </ul>
  329. <a name="addEdgeOnCanvas-classes.CpsEdge-">
  330. <!-- -->
  331. </a>
  332. <ul class="blockList">
  333. <li class="blockList">
  334. <h4>addEdgeOnCanvas</h4>
  335. <pre>public&nbsp;void&nbsp;addEdgeOnCanvas(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</pre>
  336. <div class="block">Add an edge to the Canvas.</div>
  337. <dl>
  338. <dt><span class="paramLabel">Parameters:</span></dt>
  339. <dd><code>edge</code> - the edge</dd>
  340. </dl>
  341. </li>
  342. </ul>
  343. <a name="removeEdgesOnCanvas-classes.CpsEdge-">
  344. <!-- -->
  345. </a>
  346. <ul class="blockList">
  347. <li class="blockList">
  348. <h4>removeEdgesOnCanvas</h4>
  349. <pre>public&nbsp;void&nbsp;removeEdgesOnCanvas(<a href="../../classes/CpsEdge.html" title="class in classes">CpsEdge</a>&nbsp;edge)</pre>
  350. <div class="block">Removes an Edge from the Canvas.</div>
  351. <dl>
  352. <dt><span class="paramLabel">Parameters:</span></dt>
  353. <dd><code>edge</code> - the edge to remove</dd>
  354. </dl>
  355. </li>
  356. </ul>
  357. <a name="copyObjects--">
  358. <!-- -->
  359. </a>
  360. <ul class="blockList">
  361. <li class="blockList">
  362. <h4>copyObjects</h4>
  363. <pre>public&nbsp;void&nbsp;copyObjects()</pre>
  364. <div class="block">Copy all Selected Objects.</div>
  365. </li>
  366. </ul>
  367. <a name="pasteObjects-java.awt.Point-">
  368. <!-- -->
  369. </a>
  370. <ul class="blockList">
  371. <li class="blockList">
  372. <h4>pasteObjects</h4>
  373. <pre>public&nbsp;void&nbsp;pasteObjects(java.awt.Point&nbsp;p)</pre>
  374. <div class="block">Paste all Selected Objects.</div>
  375. <dl>
  376. <dt><span class="paramLabel">Parameters:</span></dt>
  377. <dd><code>p</code> - the mouse Position</dd>
  378. </dl>
  379. </li>
  380. </ul>
  381. <a name="cutObjects--">
  382. <!-- -->
  383. </a>
  384. <ul class="blockListLast">
  385. <li class="blockList">
  386. <h4>cutObjects</h4>
  387. <pre>public&nbsp;void&nbsp;cutObjects()</pre>
  388. <div class="block">Cut all Selected Objects.</div>
  389. </li>
  390. </ul>
  391. </li>
  392. </ul>
  393. </li>
  394. </ul>
  395. </div>
  396. </div>
  397. <!-- ========= END OF CLASS DATA ========= -->
  398. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  399. <div class="bottomNav"><a name="navbar.bottom">
  400. <!-- -->
  401. </a>
  402. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  403. <a name="navbar.bottom.firstrow">
  404. <!-- -->
  405. </a>
  406. <ul class="navList" title="Navigation">
  407. <li><a href="../../overview-summary.html">Overview</a></li>
  408. <li><a href="package-summary.html">Package</a></li>
  409. <li class="navBarCell1Rev">Class</li>
  410. <li><a href="class-use/CanvasController.html">Use</a></li>
  411. <li><a href="package-tree.html">Tree</a></li>
  412. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  413. <li><a href="../../index-files/index-1.html">Index</a></li>
  414. <li><a href="../../help-doc.html">Help</a></li>
  415. </ul>
  416. </div>
  417. <div class="subNav">
  418. <ul class="navList">
  419. <li><a href="../../ui/controller/AutoSaveController.html" title="class in ui.controller"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  420. <li><a href="../../ui/controller/CategoryController.html" title="class in ui.controller"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  421. </ul>
  422. <ul class="navList">
  423. <li><a href="../../index.html?ui/controller/CanvasController.html" target="_top">Frames</a></li>
  424. <li><a href="CanvasController.html" target="_top">No&nbsp;Frames</a></li>
  425. </ul>
  426. <ul class="navList" id="allclasses_navbar_bottom">
  427. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  428. </ul>
  429. <div>
  430. <script type="text/javascript"><!--
  431. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  432. if(window==top) {
  433. allClassesLink.style.display = "block";
  434. }
  435. else {
  436. allClassesLink.style.display = "none";
  437. }
  438. //-->
  439. </script>
  440. </div>
  441. <div>
  442. <ul class="subNavList">
  443. <li>Summary:&nbsp;</li>
  444. <li>Nested&nbsp;|&nbsp;</li>
  445. <li>Field&nbsp;|&nbsp;</li>
  446. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  447. <li><a href="#method.summary">Method</a></li>
  448. </ul>
  449. <ul class="subNavList">
  450. <li>Detail:&nbsp;</li>
  451. <li>Field&nbsp;|&nbsp;</li>
  452. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  453. <li><a href="#method.detail">Method</a></li>
  454. </ul>
  455. </div>
  456. <a name="skip.navbar.bottom">
  457. <!-- -->
  458. </a></div>
  459. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  460. </body>
  461. </html>