Documentation/Source/eric5.Graphics.UMLItem.html

Sat, 02 Jan 2010 18:19:35 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 02 Jan 2010 18:19:35 +0000
changeset 17
edde1fe80b3e
child 21
b88a0e6268bd
permissions
-rw-r--r--

Updated documentation.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>eric5.Graphics.UMLItem</title>
<style>
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'
</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric5.Graphics.UMLItem</h1>
<p>
&#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#77;&#76;&#87;&#105;&#100;&#103;&#101;&#116; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#UMLItem">UMLItem</a></td>
<td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#77;&#76;&#73;&#116;&#101;&#109; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="UMLItem" ID="UMLItem"></a>
<h2>UMLItem</h2>
<p>
    &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#85;&#77;&#76;&#73;&#116;&#101;&#109; &#98;&#97;&#115;&#101; &#99;&#108;&#97;&#115;&#115;.
</p>
<h3>Derived from</h3>
QGraphicsRectItem
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#UMLItem.__init__">UMLItem</a></td>
<td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
</tr><tr>
<td><a href="#UMLItem.addAssociation">addAssociation</a></td>
<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.</td>
</tr><tr>
<td><a href="#UMLItem.adjustAssociations">adjustAssociations</a></td>
<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#106;&#117;&#115;&#116; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#116;&#111; w&#105;&#100;&#103;&#101;&#116; &#109;&#111;v&#101;&#109;&#101;&#110;&#116;&#115;.</td>
</tr><tr>
<td><a href="#UMLItem.itemChange">itemChange</a></td>
<td>&#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; w&#104;&#101;&#110; &#97;&#110; &#105;&#116;&#101;&#109;&#115; &#115;&#116;&#97;&#116;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115;.</td>
</tr><tr>
<td><a href="#UMLItem.moveBy">moveBy</a></td>
<td>&#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#111;v&#101; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116; &#114;&#101;&#108;&#97;&#116;&#105;v&#101;.</td>
</tr><tr>
<td><a href="#UMLItem.paint">paint</a></td>
<td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#97;&#105;&#110;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109; &#105;&#110; &#108;&#111;&#99;&#97;&#108; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101;&#115;.</td>
</tr><tr>
<td><a href="#UMLItem.removeAssociation">removeAssociation</a></td>
<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.</td>
</tr><tr>
<td><a href="#UMLItem.removeAssociations">removeAssociations</a></td>
<td>&#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#108;&#108; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#111;&#102; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.</td>
</tr><tr>
<td><a href="#UMLItem.setPos">setPos</a></td>
<td>&#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109;&#115; &#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110;.</td>
</tr><tr>
<td><a href="#UMLItem.setSize">setSize</a></td>
<td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;&#115; &#115;&#105;z&#101;.</td>
</tr>
</table>
<a NAME="UMLItem.__init__" ID="UMLItem.__init__"></a>
<h4>UMLItem (Constructor)</h4>
<b>UMLItem</b>(<i>x = 0, y = 0, rounded = False, parent = None</i>)
<p>
        &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
</p><dl>
<dt><i>x</i></dt>
<dd>
x-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;)
</dd><dt><i>y</i></dt>
<dd>
y-&#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;)
</dd><dt><i>rounded</i></dt>
<dd>
&#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#97; &#114;&#111;&#117;&#110;&#100;&#101;&#100; &#99;&#111;&#114;&#110;&#101;&#114; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;)
</dd><dt><i>parent=</i></dt>
<dd>
&#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;)
</dd>
</dl><a NAME="UMLItem.addAssociation" ID="UMLItem.addAssociation"></a>
<h4>UMLItem.addAssociation</h4>
<b>addAssociation</b>(<i>assoc</i>)
<p>
        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.
</p><dl>
<dt><i>assoc</i></dt>
<dd>
&#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#98;&#101; &#97;&#100;&#100;&#101;&#100; (&#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#87;&#105;&#100;&#103;&#101;&#116;)
</dd>
</dl><a NAME="UMLItem.adjustAssociations" ID="UMLItem.adjustAssociations"></a>
<h4>UMLItem.adjustAssociations</h4>
<b>adjustAssociations</b>(<i></i>)
<p>
        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#106;&#117;&#115;&#116; &#116;&#104;&#101; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#116;&#111; w&#105;&#100;&#103;&#101;&#116; &#109;&#111;v&#101;&#109;&#101;&#110;&#116;&#115;.
</p><a NAME="UMLItem.itemChange" ID="UMLItem.itemChange"></a>
<h4>UMLItem.itemChange</h4>
<b>itemChange</b>(<i>change, value</i>)
<p>
        &#80;&#114;&#111;&#116;&#101;&#99;&#116;&#101;&#100; &#109;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; w&#104;&#101;&#110; &#97;&#110; &#105;&#116;&#101;&#109;&#115; &#115;&#116;&#97;&#116;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#115;.
</p><dl>
<dt><i>change</i></dt>
<dd>
&#116;&#104;&#101; &#105;&#116;&#101;&#109;'&#115; &#99;&#104;&#97;&#110;&#103;&#101; (&#81;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;.&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;&#67;&#104;&#97;&#110;&#103;&#101;)
</dd><dt><i>value</i></dt>
<dd>
&#116;&#104;&#101; v&#97;&#108;&#117;&#101; &#111;&#102; &#116;&#104;&#101; &#99;&#104;&#97;&#110;&#103;&#101;
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
&#97;&#100;&#106;&#117;&#115;&#116;&#101;&#100; v&#97;&#108;&#117;&#101;&#115;
</dd>
</dl><a NAME="UMLItem.moveBy" ID="UMLItem.moveBy"></a>
<h4>UMLItem.moveBy</h4>
<b>moveBy</b>(<i>dx, dy</i>)
<p>
        &#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#109;&#111;v&#101; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116; &#114;&#101;&#108;&#97;&#116;&#105;v&#101;.
</p><dl>
<dt><i>dx</i></dt>
<dd>
&#114;&#101;&#108;&#97;&#116;&#105;v&#101; &#109;&#111;v&#101;&#109;&#101;&#110;&#116; &#105;&#110; x-&#100;&#105;&#114;&#101;&#99;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
</dd><dt><i>dy</i></dt>
<dd>
&#114;&#101;&#108;&#97;&#116;&#105;v&#101; &#109;&#111;v&#101;&#109;&#101;&#110;&#116; &#105;&#110; y-&#100;&#105;&#114;&#101;&#99;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
</dd>
</dl><a NAME="UMLItem.paint" ID="UMLItem.paint"></a>
<h4>UMLItem.paint</h4>
<b>paint</b>(<i>painter, option, widget = None</i>)
<p>
        &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#112;&#97;&#105;&#110;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109; &#105;&#110; &#108;&#111;&#99;&#97;&#108; &#99;&#111;&#111;&#114;&#100;&#105;&#110;&#97;&#116;&#101;&#115;.
</p><dl>
<dt><i>painter</i></dt>
<dd>
&#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#105;&#110;&#116;&#101;&#114; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#80;&#97;&#105;&#110;&#116;&#101;&#114;)
</dd><dt><i>option</i></dt>
<dd>
&#115;&#116;y&#108;&#101; &#111;&#112;&#116;&#105;&#111;&#110;&#115; (&#81;&#83;&#116;y&#108;&#101;&#79;&#112;&#116;&#105;&#111;&#110;&#71;&#114;&#97;&#112;&#104;&#105;&#99;&#115;&#73;&#116;&#101;&#109;)
</dd><dt><i>widget</i></dt>
<dd>
&#111;&#112;&#116;&#105;&#111;&#110;&#97;&#108; &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; w&#105;&#100;&#103;&#101;&#116; &#112;&#97;&#105;&#110;&#116;&#101;&#100; &#111;&#110; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;)
</dd>
</dl><a NAME="UMLItem.removeAssociation" ID="UMLItem.removeAssociation"></a>
<h4>UMLItem.removeAssociation</h4>
<b>removeAssociation</b>(<i>assoc</i>)
<p>
        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#110; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.
</p><dl>
<dt><i>assoc</i></dt>
<dd>
&#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110; &#116;&#111; &#98;&#101; &#114;&#101;&#109;&#111;v&#101;&#100; (&#65;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#87;&#105;&#100;&#103;&#101;&#116;)
</dd>
</dl><a NAME="UMLItem.removeAssociations" ID="UMLItem.removeAssociations"></a>
<h4>UMLItem.removeAssociations</h4>
<b>removeAssociations</b>(<i></i>)
<p>
        &#77;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#108;&#108; &#97;&#115;&#115;&#111;&#99;&#105;&#97;&#116;&#105;&#111;&#110;&#115; &#111;&#102; &#116;&#104;&#105;&#115; w&#105;&#100;&#103;&#101;&#116;.
</p><a NAME="UMLItem.setPos" ID="UMLItem.setPos"></a>
<h4>UMLItem.setPos</h4>
<b>setPos</b>(<i>x, y</i>)
<p>
        &#79;v&#101;&#114;&#114;&#105;&#100;&#101;&#110; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#105;&#116;&#101;&#109;&#115; &#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110;.
</p><dl>
<dt><i>x</i></dt>
<dd>
&#97;&#98;&#115;&#111;&#108;&#117;&#116;&#101; x-&#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
</dd><dt><i>y</i></dt>
<dd>
&#97;&#98;&#115;&#111;&#108;&#117;&#116;&#101; y-&#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110; (&#102;&#108;&#111;&#97;&#116;)
</dd>
</dl><a NAME="UMLItem.setSize" ID="UMLItem.setSize"></a>
<h4>UMLItem.setSize</h4>
<b>setSize</b>(<i>width, height</i>)
<p>
        &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101;&#115; &#115;&#105;z&#101;.
</p><dl>
<dt><i>width</i></dt>
<dd>
w&#105;&#100;&#116;&#104; &#111;&#102; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; (&#102;&#108;&#111;&#97;&#116;)
</dd><dt><i>height</i></dt>
<dd>
&#104;&#101;&#105;&#103;&#104;&#116; &#111;&#102; &#116;&#104;&#101; &#114;&#101;&#99;&#116;&#97;&#110;&#103;&#108;&#101; (&#102;&#108;&#111;&#97;&#116;)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial