Documentation/Source/eric5.Graphics.AssociationItem.html

changeset 17
edde1fe80b3e
child 21
b88a0e6268bd
equal deleted inserted replaced
16:892c1787d666 17:edde1fe80b3e
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head>
5 <title>eric5.Graphics.AssociationItem</title>
6 <style>
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n'
8 </style>
9 </head>
10 <body><a NAME="top" ID="top"></a>
11 <h1>eric5.Graphics.AssociationItem</h1>
12 <p>
13 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#103;&#114;&#97;&#112;&#104;&#105;&#99;&#115; &#105;&#116;&#101;&#109; &#102;&#111;&#114; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#98;&#101;&#116;w&#101;&#101;&#110; &#116;w&#111; &#105;&#116;&#101;&#109;&#115;.
14 </p>
15 <h3>Global Attributes</h3>
16 <table>
17 <tr><td>Center</td></tr><tr><td>East</td></tr><tr><td>Generalisation</td></tr><tr><td>Imports</td></tr><tr><td>NoRegion</td></tr><tr><td>Normal</td></tr><tr><td>North</td></tr><tr><td>NorthEast</td></tr><tr><td>NorthWest</td></tr><tr><td>South</td></tr><tr><td>SouthEast</td></tr><tr><td>SouthWest</td></tr><tr><td>West</td></tr>
18 </table>
19 <h3>Classes</h3>
20 <table>
21 <tr>
22 <td><a href="#AssociationItem">AssociationItem</a></td>
23 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#103;&#114;&#97;&#112;&#104;&#105;&#99;&#115; &#105;&#116;&#101;&#109; &#102;&#111;&#114; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#98;&#101;&#116;w&#101;&#101;&#110; &#116;w&#111; &#105;&#116;&#101;&#109;&#115;.</td>
24 </tr>
25 </table>
26 <h3>Functions</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <hr /><hr />
31 <a NAME="AssociationItem" ID="AssociationItem"></a>
32 <h2>AssociationItem</h2>
33 <p>
34 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#103;&#114;&#97;&#112;&#104;&#105;&#99;&#115; &#105;&#116;&#101;&#109; &#102;&#111;&#114; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#98;&#101;&#116;w&#101;&#101;&#110; &#116;w&#111; &#105;&#116;&#101;&#109;&#115;.
35 </p><p>
36 &#84;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#105;&#115; &#100;&#114;&#97;w&#110; &#97;&#115; &#97;&#110; &#97;&#114;&#114;&#111;w &#115;&#116;&#97;&#114;&#116;&#105;&#110;&#103; &#97;&#116; &#116;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#105;&#116;&#101;&#109;&#115; &#97;&#110;&#100;
37 &#101;&#110;&#100;&#105;&#110;&#103; &#97;&#116; &#116;&#104;&#101; &#115;&#101;&#99;&#111;&#110;&#100;.
38 </p>
39 <h3>Derived from</h3>
40 E4ArrowItem
41 <h3>Class Attributes</h3>
42 <table>
43 <tr><td>None</td></tr>
44 </table>
45 <h3>Methods</h3>
46 <table>
47 <tr>
48 <td><a href="#AssociationItem.__init__">AssociationItem</a></td>
49 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
50 </tr><tr>
51 <td><a href="#AssociationItem.__calculateEndingPoints_center">__calculateEndingPoints_center</a></td>
52 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#101;&#110;&#100;&#105;&#110;&#103; &#112;&#111;&#105;&#110;&#116;&#115; &#111;&#102; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#105;&#116;&#101;&#109;.</td>
53 </tr><tr>
54 <td><a href="#AssociationItem.__calculateEndingPoints_rectangle">__calculateEndingPoints_rectangle</a></td>
55 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#101;&#110;&#100;&#105;&#110;&#103; &#112;&#111;&#105;&#110;&#116;&#115; &#111;&#102; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#105;&#116;&#101;&#109;.</td>
56 </tr><tr>
57 <td><a href="#AssociationItem.__findIntersection">__findIntersection</a></td>
58 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#105;&#110;&#116;&#101;&#114;&#115;&#101;&#99;&#116;&#105;&#111;&#110; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#116;w&#111; &#108;&#105;&#110;&#101;&#115;.</td>
59 </tr><tr>
60 <td><a href="#AssociationItem.__findPointRegion">__findPointRegion</a></td>
61 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#102;&#105;&#110;&#100; &#111;&#117;&#116;, w&#104;&#105;&#99;&#104; &#114;&#101;&#103;&#105;&#111;&#110; &#111;&#102; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; &#114;&#101;&#99;&#116; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#115; &#116;&#104;&#101; &#112;&#111;&#105;&#110;&#116; (&#80;&#111;&#115;&#88;, &#80;&#111;&#115;&#89;) &#97;&#110;&#100; &#114;&#101;&#116;&#117;&#114;&#110;&#115; &#116;&#104;&#101; &#114;&#101;&#103;&#105;&#111;&#110; &#110;&#117;&#109;&#98;&#101;&#114;.</td>
62 </tr><tr>
63 <td><a href="#AssociationItem.__findRectIntersectionPoint">__findRectIntersectionPoint</a></td>
64 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#102;&#105;&#110;&#100; &#116;&#104;&#101; &#105;&#110;&#116;&#101;&#114;&#115;&#101;&#116;&#105;&#111;&#110; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#97; &#108;&#105;&#110;&#101; w&#105;&#116;&#104; &#97; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;.</td>
65 </tr><tr>
66 <td><a href="#AssociationItem.__mapRectFromItem">__mapRectFromItem</a></td>
67 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#97;&#112; &#105;&#116;&#101;&#109;'&#115; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; &#116;&#111; &#116;&#104;&#105;&#115; &#105;&#116;&#101;&#109;'&#115; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; &#115;y&#115;&#116;&#101;&#109;.</td>
68 </tr><tr>
69 <td><a href="#AssociationItem.__updateEndPoint">__updateEndPoint</a></td>
70 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#117;&#112;&#100;&#97;&#116;&#101; &#97;&#110; &#101;&#110;&#100;&#112;&#111;&#105;&#110;&#116;.</td>
71 </tr><tr>
72 <td><a href="#AssociationItem.unassociate">unassociate</a></td>
73 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#117;&#110;&#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#101; &#102;&#114;&#111;&#109; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116;&#115;.</td>
74 </tr><tr>
75 <td><a href="#AssociationItem.widgetMoved">widgetMoved</a></td>
76 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#97;&#102;&#116;&#101;&#114; &#97; w&#105;&#100;&#103;&#101;&#116; w&#97;&#115; &#109;&#111;v&#101;&#100;.</td>
77 </tr>
78 </table>
79 <a NAME="AssociationItem.__init__" ID="AssociationItem.__init__"></a>
80 <h4>AssociationItem (Constructor)</h4>
81 <b>AssociationItem</b>(<i>itemA, itemB, type = Normal, parent = None</i>)
82 <p>
83 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
84 </p><dl>
85 <dt><i>itemA</i></dt>
86 <dd>
87 &#102;&#105;&#114;&#115;&#116; w&#105;&#100;&#103;&#101;&#116; &#111;&#102; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;
88 </dd><dt><i>itemB</i></dt>
89 <dd>
90 &#115;&#101;&#99;&#111;&#110;&#100; w&#105;&#100;&#103;&#101;&#116; &#111;&#102; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;
91 </dd><dt><i>type</i></dt>
92 <dd>
93 &#116;y&#112;&#101; &#111;&#102; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;. &#84;&#104;&#105;&#115; &#109;&#117;&#115;&#116; &#98;&#101; &#111;&#110;&#101; &#111;&#102;
94 &#60;&#117;&#108;&#62;
95 &#60;&#108;&#105;&#62;&#78;&#111;&#114;&#109;&#97;&#108; (&#100;&#101;&#102;&#97;&#117;&#108;&#116;)&#60;/&#108;&#105;&#62;
96 &#60;&#108;&#105;&#62;&#71;&#101;&#110;&#101;&#114;&#97;&#108;&#105;&#115;&#97;&#116;&#105;&#111;&#110;&#60;/&#108;&#105;&#62;
97 &#60;&#108;&#105;&#62;&#73;&#109;&#112;&#111;&#114;&#116;&#115;&#60;/&#108;&#105;&#62;
98 &#60;/&#117;&#108;&#62;
99 </dd><dt><i>parent=</i></dt>
100 <dd>
101 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;)
102 </dd>
103 </dl><a NAME="AssociationItem.__calculateEndingPoints_center" ID="AssociationItem.__calculateEndingPoints_center"></a>
104 <h4>AssociationItem.__calculateEndingPoints_center</h4>
105 <b>__calculateEndingPoints_center</b>(<i></i>)
106 <p>
107 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#101;&#110;&#100;&#105;&#110;&#103; &#112;&#111;&#105;&#110;&#116;&#115; &#111;&#102; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#105;&#116;&#101;&#109;.
108 </p><p>
109 &#84;&#104;&#101; &#101;&#110;&#100;&#105;&#110;&#103; &#112;&#111;&#105;&#110;&#116;&#115; &#97;&#114;&#101; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101;&#100; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#99;&#101;&#110;&#116;&#101;&#114;&#115; &#111;&#102; &#116;&#104;&#101;
110 &#116;w&#111; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#101;&#100; &#105;&#116;&#101;&#109;&#115;.
111 </p><a NAME="AssociationItem.__calculateEndingPoints_rectangle" ID="AssociationItem.__calculateEndingPoints_rectangle"></a>
112 <h4>AssociationItem.__calculateEndingPoints_rectangle</h4>
113 <b>__calculateEndingPoints_rectangle</b>(<i></i>)
114 <p>
115 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#101;&#110;&#100;&#105;&#110;&#103; &#112;&#111;&#105;&#110;&#116;&#115; &#111;&#102; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#105;&#116;&#101;&#109;.
116 </p><p>
117 &#84;&#104;&#101; &#101;&#110;&#100;&#105;&#110;&#103; &#112;&#111;&#105;&#110;&#116;&#115; &#97;&#114;&#101; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101;&#100; &#98;y &#116;&#104;&#101; &#102;&#111;&#108;&#108;&#111;w&#105;&#110;&#103; &#109;&#101;&#116;&#104;&#111;&#100;.
118 </p><p>
119 &#70;&#111;&#114; &#101;&#97;&#99;&#104; &#105;&#116;&#101;&#109; &#116;&#104;&#101; &#100;&#105;&#97;&#103;&#114;&#97;&#109; &#105;&#115; &#100;&#105;v&#105;&#100;&#101;&#100; &#105;&#110; &#102;&#111;&#117;&#114; &#82;&#101;&#103;&#105;&#111;&#110;&#115; &#98;y &#105;&#116;&#115; &#100;&#105;&#97;&#103;&#111;&#110;&#97;&#108;&#115;
120 &#97;&#115; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#101;&#100; &#98;&#101;&#108;&#111;w
121 &#60;&#112;&#114;&#101;&#62;
122 &#92; &#82;&#101;&#103;&#105;&#111;&#110; &#50; /
123 &#92; /
124 |--------|
125 | &#92; / |
126 | &#92; / |
127 | &#92;/ |
128 &#82;&#101;&#103;&#105;&#111;&#110; &#49; | /&#92; | &#82;&#101;&#103;&#105;&#111;&#110; &#51;
129 | / &#92; |
130 | / &#92; |
131 |--------|
132 / &#92;
133 / &#82;&#101;&#103;&#105;&#111;&#110; &#52; &#92;
134 &#60;/&#112;&#114;&#101;&#62;
135 </p><p>
136 &#69;&#97;&#99;&#104; &#100;&#105;&#97;&#103;&#111;&#110;&#97;&#108; &#105;&#115; &#100;&#101;&#102;&#105;&#110;&#101;&#100; &#98;y &#116;w&#111; &#99;&#111;&#114;&#110;&#101;&#114;&#115; &#111;&#102; &#116;&#104;&#101; &#98;&#111;&#117;&#110;&#100;&#105;&#110;&#103; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;
137 </p><p>
138 &#84;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#115;&#116;&#97;&#114;&#116; &#112;&#111;&#105;&#110;&#116; w&#101; &#104;&#97;v&#101; &#116;&#111; &#102;&#105;&#110;&#100; &#111;&#117;&#116; &#105;&#110; w&#104;&#105;&#99;&#104;
139 &#114;&#101;&#103;&#105;&#111;&#110; (&#100;&#101;&#102;&#105;&#110;&#101;&#100; &#98;y &#105;&#116;&#101;&#109;&#65;'&#115; &#100;&#105;&#97;&#103;&#111;&#110;&#97;&#108;&#115;) &#105;&#115; &#105;&#116;&#101;&#109;&#66;'&#115; &#84;&#111;&#112;&#76;&#101;&#102;&#116; &#99;&#111;&#114;&#110;&#101;&#114;
140 (&#108;&#101;&#116;&#115; &#99;&#97;&#108;&#108; &#105;&#116; &#114;&#101;&#103;&#105;&#111;&#110; &#77;). &#65;&#102;&#116;&#101;&#114; &#116;&#104;&#97;&#116; &#116;&#104;&#101; &#115;&#116;&#97;&#114;&#116; &#112;&#111;&#105;&#110;&#116; w&#105;&#108;&#108; &#98;&#101;
141 &#116;&#104;&#101; &#109;&#105;&#100;&#100;&#108;&#101; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;'&#115; &#115;&#105;&#100;&#101; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#101;&#100; &#105;&#110; &#114;&#101;&#103;&#105;&#111;&#110; &#77;.
142 </p><p>
143 &#84;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#101;&#110;&#100; &#112;&#111;&#105;&#110;&#116; w&#101; &#114;&#101;&#112;&#101;&#97;&#116; &#116;&#104;&#101; &#97;&#98;&#111;v&#101; &#98;&#117;&#116; &#105;&#110; &#116;&#104;&#101; &#111;&#112;&#112;&#111;&#115;&#105;&#116;&#101; &#100;&#105;&#114;&#101;&#99;&#116;&#105;&#111;&#110;
144 (&#102;&#114;&#111;&#109; &#105;&#116;&#101;&#109;&#66; &#116;&#111; &#105;&#116;&#101;&#109;&#65;)
145 </p><a NAME="AssociationItem.__findIntersection" ID="AssociationItem.__findIntersection"></a>
146 <h4>AssociationItem.__findIntersection</h4>
147 <b>__findIntersection</b>(<i>p1, p2, p3, p4</i>)
148 <p>
149 &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#105;&#110;&#116;&#101;&#114;&#115;&#101;&#99;&#116;&#105;&#111;&#110; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#116;w&#111; &#108;&#105;&#110;&#101;&#115;.
150 </p><p>
151 &#84;&#104;&#101; &#102;&#105;&#114;&#115;&#116; &#108;&#105;&#110;&#101; &#105;&#115; &#100;&#101;&#116;&#101;&#114;&#109;&#105;&#110;&#101;&#100; &#98;y &#116;&#104;&#101; &#112;&#111;&#105;&#110;&#116;&#115; &#112;&#49; &#97;&#110;&#100; &#112;&#50;, &#116;&#104;&#101; &#115;&#101;&#99;&#111;&#110;&#100;
152 &#108;&#105;&#110;&#101; &#98;y &#112;&#51; &#97;&#110;&#100; &#112;&#52;. &#73;&#102; &#116;&#104;&#101; &#105;&#110;&#116;&#101;&#114;&#115;&#101;&#99;&#116;&#105;&#111;&#110; &#112;&#111;&#105;&#110;&#116; &#105;&#115; &#110;&#111;&#116; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#101;&#100; &#105;&#110;
153 &#116;&#104;&#101; &#115;&#101;&#103;&#109;&#101;&#110;&#116; &#112;&#49;&#112;&#50;, &#116;&#104;&#101;&#110; &#105;&#116; &#114;&#101;&#116;&#117;&#114;&#110;&#115; (-&#49;.&#48;, -&#49;.&#48;).
154 </p><p>
155 &#70;&#111;&#114; &#116;&#104;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110;'&#115; &#105;&#110;&#116;&#101;&#114;&#110;&#97;&#108; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#105;&#111;&#110;&#115; &#114;&#101;&#109;&#101;&#109;&#98;&#101;&#114;&#58;&#60;&#98;&#114; /&#62;
156 &#81;&#84; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101;&#115; &#115;&#116;&#97;&#114;&#116; w&#105;&#116;&#104; &#116;&#104;&#101; &#112;&#111;&#105;&#110;&#116; (&#48;,&#48;) &#97;&#115; &#116;&#104;&#101; &#116;&#111;&#112;&#108;&#101;&#102;&#116; &#99;&#111;&#114;&#110;&#101;&#114;
157 &#97;&#110;&#100; x-v&#97;&#108;&#117;&#101;&#115; &#105;&#110;&#99;&#114;&#101;&#97;&#115;&#101; &#102;&#114;&#111;&#109; &#108;&#101;&#102;&#116; &#116;&#111; &#114;&#105;&#103;&#104;&#116; &#97;&#110;&#100; y-v&#97;&#108;&#117;&#101;&#115; &#105;&#110;&#99;&#114;&#101;&#97;&#115;&#101;
158 &#102;&#114;&#111;&#109; &#116;&#111;&#112; &#116;&#111; &#98;&#111;&#116;&#116;&#111;&#109;&#59; &#105;&#116; &#109;&#101;&#97;&#110;&#115; &#116;&#104;&#101; v&#105;&#115;&#105;&#98;&#108;&#101; &#97;&#114;&#101;&#97; &#105;&#115; &#113;&#117;&#97;&#100;&#114;&#97;&#110;&#116; &#73; &#105;&#110;
159 &#116;&#104;&#101; &#114;&#101;&#103;&#117;&#108;&#97;&#114; &#88;&#89; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; &#115;y&#115;&#116;&#101;&#109;
160 </p><p>
161 &#60;&#112;&#114;&#101;&#62;
162 &#81;&#117;&#97;&#100;&#114;&#97;&#110;&#116; &#73;&#73; | &#81;&#117;&#97;&#100;&#114;&#97;&#110;&#116; &#73;
163 -----------------|-----------------
164 &#81;&#117;&#97;&#100;&#114;&#97;&#110;&#116; &#73;&#73;&#73; | &#81;&#117;&#97;&#100;&#114;&#97;&#110;&#116; &#73;&#86;
165 &#60;/&#112;&#114;&#101;&#62;
166 </p><p>
167 &#73;&#110; &#111;&#114;&#100;&#101;&#114; &#102;&#111;&#114; &#116;&#104;&#101; &#108;&#105;&#110;&#101;&#97;&#114; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#105;&#111;&#110;&#115; &#116;&#111; w&#111;&#114;&#107; &#105;&#110; &#116;&#104;&#105;&#115; &#109;&#101;&#116;&#104;&#111;&#100;
168 w&#101; &#109;&#117;&#115;&#116; &#115;w&#105;&#116;&#99;&#104; x &#97;&#110;&#100; y v&#97;&#108;&#117;&#101;&#115; (x v&#97;&#108;&#117;&#101;&#115; &#98;&#101;&#99;&#111;&#109;&#101; y v&#97;&#108;&#117;&#101;&#115; &#97;&#110;&#100; v&#105;&#99;&#101;v&#101;&#114;&#115;&#97;)
169 </p><dl>
170 <dt><i>p1</i></dt>
171 <dd>
172 &#102;&#105;&#114;&#115;&#116; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#102;&#105;&#114;&#115;&#116; &#108;&#105;&#110;&#101; (&#81;&#80;&#111;&#105;&#110;&#116;&#70;)
173 </dd><dt><i>p2</i></dt>
174 <dd>
175 &#115;&#101;&#99;&#111;&#110;&#100; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#102;&#105;&#114;&#115;&#116; &#108;&#105;&#110;&#101; (&#81;&#80;&#111;&#105;&#110;&#116;&#70;)
176 </dd><dt><i>p3</i></dt>
177 <dd>
178 &#102;&#105;&#114;&#115;&#116; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#115;&#101;&#99;&#111;&#110;&#100; &#108;&#105;&#110;&#101; (&#81;&#80;&#111;&#105;&#110;&#116;&#70;)
179 </dd><dt><i>p4</i></dt>
180 <dd>
181 &#115;&#101;&#99;&#111;&#110;&#100; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#115;&#101;&#99;&#111;&#110;&#100; &#108;&#105;&#110;&#101; (&#81;&#80;&#111;&#105;&#110;&#116;&#70;)
182 </dd>
183 </dl><dl>
184 <dt>Returns:</dt>
185 <dd>
186 &#116;&#104;&#101; &#105;&#110;&#116;&#101;&#114;&#115;&#101;&#99;&#116;&#105;&#111;&#110; &#112;&#111;&#105;&#110;&#116; (&#81;&#80;&#111;&#105;&#110;&#116;&#70;)
187 </dd>
188 </dl><a NAME="AssociationItem.__findPointRegion" ID="AssociationItem.__findPointRegion"></a>
189 <h4>AssociationItem.__findPointRegion</h4>
190 <b>__findPointRegion</b>(<i>rect, posX, posY</i>)
191 <p>
192 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#102;&#105;&#110;&#100; &#111;&#117;&#116;, w&#104;&#105;&#99;&#104; &#114;&#101;&#103;&#105;&#111;&#110; &#111;&#102; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; &#114;&#101;&#99;&#116; &#99;&#111;&#110;&#116;&#97;&#105;&#110;&#115; &#116;&#104;&#101; &#112;&#111;&#105;&#110;&#116;
193 (&#80;&#111;&#115;&#88;, &#80;&#111;&#115;&#89;) &#97;&#110;&#100; &#114;&#101;&#116;&#117;&#114;&#110;&#115; &#116;&#104;&#101; &#114;&#101;&#103;&#105;&#111;&#110; &#110;&#117;&#109;&#98;&#101;&#114;.
194 </p><dl>
195 <dt><i>rect</i></dt>
196 <dd>
197 &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; &#116;&#111; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#114;&#101;&#103;&#105;&#111;&#110; &#102;&#111;&#114; (&#81;&#82;&#101;&#99;&#116;&#70;)
198 </dd><dt><i>posX</i></dt>
199 <dd>
200 x &#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110; &#111;&#102; &#112;&#111;&#105;&#110;&#116; (&#102;&#108;&#111;&#97;&#116;)
201 </dd><dt><i>posY</i></dt>
202 <dd>
203 y &#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110; &#111;&#102; &#112;&#111;&#105;&#110;&#116; (&#102;&#108;&#111;&#97;&#116;)
204 </dd>
205 </dl><dl>
206 <dt>Returns:</dt>
207 <dd>
208 &#116;&#104;&#101; &#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101;&#100; &#114;&#101;&#103;&#105;&#111;&#110; &#110;&#117;&#109;&#98;&#101;&#114;&#60;&#98;&#114; /&#62;
209 &#87;&#101;&#115;&#116; &#61; &#82;&#101;&#103;&#105;&#111;&#110; &#49;&#60;&#98;&#114; /&#62;
210 &#78;&#111;&#114;&#116;&#104; &#61; &#82;&#101;&#103;&#105;&#111;&#110; &#50;&#60;&#98;&#114; /&#62;
211 &#69;&#97;&#115;&#116; &#61; &#82;&#101;&#103;&#105;&#111;&#110; &#51;&#60;&#98;&#114; /&#62;
212 &#83;&#111;&#117;&#116;&#104; &#61; &#82;&#101;&#103;&#105;&#111;&#110; &#52;&#60;&#98;&#114; /&#62;
213 &#78;&#111;&#114;&#116;&#104;&#87;&#101;&#115;&#116; &#61; &#79;&#110; &#100;&#105;&#97;&#103;&#111;&#110;&#97;&#108; &#50; &#98;&#101;&#116;w&#101;&#101;&#110; &#82;&#101;&#103;&#105;&#111;&#110; &#49; &#97;&#110;&#100; &#50;&#60;&#98;&#114; /&#62;
214 &#78;&#111;&#114;&#116;&#104;&#69;&#97;&#115;&#116; &#61; &#79;&#110; &#100;&#105;&#97;&#103;&#111;&#110;&#97;&#108; &#49; &#98;&#101;&#116;w&#101;&#101;&#110; &#82;&#101;&#103;&#105;&#111;&#110; &#50; &#97;&#110;&#100; &#51;&#60;&#98;&#114; /&#62;
215 &#83;&#111;&#117;&#116;&#104;&#69;&#97;&#115;&#116; &#61; &#79;&#110; &#100;&#105;&#97;&#103;&#111;&#110;&#97;&#108; &#50; &#98;&#101;&#116;w&#101;&#101;&#110; &#82;&#101;&#103;&#105;&#111;&#110; &#51; &#97;&#110;&#100; &#52;&#60;&#98;&#114; /&#62;
216 &#83;&#111;&#117;&#116;&#104;&#87;&#101;&#115;&#116; &#61; &#79;&#110; &#100;&#105;&#97;&#103;&#111;&#110;&#97;&#108; &#49; &#98;&#101;&#116;w&#101;&#101;&#110; &#82;&#101;&#103;&#105;&#111;&#110;&#52; &#97;&#110;&#100; &#49;&#60;&#98;&#114; /&#62;
217 &#67;&#101;&#110;&#116;&#101;&#114; &#61; &#79;&#110; &#100;&#105;&#97;&#103;&#111;&#110;&#97;&#108; &#49; &#97;&#110;&#100; &#79;&#110; &#100;&#105;&#97;&#103;&#111;&#110;&#97;&#108; &#50; (&#116;&#104;&#101; &#99;&#101;&#110;&#116;&#101;&#114;)&#60;&#98;&#114; /&#62;
218 </dd>
219 </dl><a NAME="AssociationItem.__findRectIntersectionPoint" ID="AssociationItem.__findRectIntersectionPoint"></a>
220 <h4>AssociationItem.__findRectIntersectionPoint</h4>
221 <b>__findRectIntersectionPoint</b>(<i>item, p1, p2</i>)
222 <p>
223 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#102;&#105;&#110;&#100; &#116;&#104;&#101; &#105;&#110;&#116;&#101;&#114;&#115;&#101;&#116;&#105;&#111;&#110; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#97; &#108;&#105;&#110;&#101; w&#105;&#116;&#104; &#97; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;.
224 </p><dl>
225 <dt><i>item</i></dt>
226 <dd>
227 &#105;&#116;&#101;&#109; &#116;&#111; &#99;&#104;&#101;&#99;&#107; &#97;&#103;&#97;&#105;&#110;&#115;&#116;
228 </dd><dt><i>p1</i></dt>
229 <dd>
230 &#102;&#105;&#114;&#115;&#116; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#116;&#104;&#101; &#108;&#105;&#110;&#101; (&#81;&#80;&#111;&#105;&#110;&#116;&#70;)
231 </dd><dt><i>p2</i></dt>
232 <dd>
233 &#115;&#101;&#99;&#111;&#110;&#100; &#112;&#111;&#105;&#110;&#116; &#111;&#102; &#116;&#104;&#101; &#108;&#105;&#110;&#101; (&#81;&#80;&#111;&#105;&#110;&#116;&#70;)
234 </dd>
235 </dl><dl>
236 <dt>Returns:</dt>
237 <dd>
238 &#116;&#104;&#101; &#105;&#110;&#116;&#101;&#114;&#115;&#101;&#99;&#116;&#105;&#111;&#110; &#112;&#111;&#105;&#110;&#116; (&#81;&#80;&#111;&#105;&#110;&#116;&#70;)
239 </dd>
240 </dl><a NAME="AssociationItem.__mapRectFromItem" ID="AssociationItem.__mapRectFromItem"></a>
241 <h4>AssociationItem.__mapRectFromItem</h4>
242 <b>__mapRectFromItem</b>(<i>item</i>)
243 <p>
244 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#97;&#112; &#105;&#116;&#101;&#109;'&#115; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; &#116;&#111; &#116;&#104;&#105;&#115; &#105;&#116;&#101;&#109;'&#115; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; &#115;y&#115;&#116;&#101;&#109;.
245 </p><dl>
246 <dt><i>item</i></dt>
247 <dd>
248 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#105;&#116;&#101;&#109; &#116;&#111; &#98;&#101; &#109;&#97;&#112;&#112;&#101;&#100; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#82;&#101;&#99;&#116;&#73;&#116;&#101;&#109;)
249 </dd>
250 </dl><dl>
251 <dt>Returns:</dt>
252 <dd>
253 &#105;&#116;&#101;&#109;'&#115; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; &#105;&#110; &#108;&#111;&#99;&#97;&#108; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101;&#115; (&#81;&#82;&#101;&#99;&#116;&#70;)
254 </dd>
255 </dl><a NAME="AssociationItem.__updateEndPoint" ID="AssociationItem.__updateEndPoint"></a>
256 <h4>AssociationItem.__updateEndPoint</h4>
257 <b>__updateEndPoint</b>(<i>region, isWidgetA</i>)
258 <p>
259 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#117;&#112;&#100;&#97;&#116;&#101; &#97;&#110; &#101;&#110;&#100;&#112;&#111;&#105;&#110;&#116;.
260 </p><dl>
261 <dt><i>region</i></dt>
262 <dd>
263 &#116;&#104;&#101; &#114;&#101;&#103;&#105;&#111;&#110; &#102;&#111;&#114; &#116;&#104;&#101; &#101;&#110;&#100;&#112;&#111;&#105;&#110;&#116; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;)
264 </dd><dt><i>isWidgetA</i></dt>
265 <dd>
266 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#117;&#112;&#100;&#97;&#116;&#101; &#102;&#111;&#114; &#105;&#116;&#101;&#109;&#65; &#105;&#115; &#100;&#111;&#110;&#101; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;)
267 </dd>
268 </dl><a NAME="AssociationItem.unassociate" ID="AssociationItem.unassociate"></a>
269 <h4>AssociationItem.unassociate</h4>
270 <b>unassociate</b>(<i></i>)
271 <p>
272 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#117;&#110;&#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#101; &#102;&#114;&#111;&#109; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116;&#115;.
273 </p><a NAME="AssociationItem.widgetMoved" ID="AssociationItem.widgetMoved"></a>
274 <h4>AssociationItem.widgetMoved</h4>
275 <b>widgetMoved</b>(<i></i>)
276 <p>
277 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#99;&#97;&#108;&#99;&#117;&#108;&#97;&#116;&#101; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#97;&#102;&#116;&#101;&#114; &#97; w&#105;&#100;&#103;&#101;&#116; w&#97;&#115; &#109;&#111;v&#101;&#100;.
278 </p>
279 <div align="right"><a href="#top">Up</a></div>
280 <hr />
281 </body></html>

eric ide

mercurial