eric6/Documentation/Source/eric6.Graphics.UMLItem.html

changeset 7530
9f4fac61e7c7
parent 7273
391d6b7b1eff
child 7989
a21d673a8f99
equal deleted inserted replaced
7529:2b8a0d8ba12a 7530:9f4fac61e7c7
143 <tr><td>None</td></tr> 143 <tr><td>None</td></tr>
144 </table> 144 </table>
145 145
146 <a NAME="UMLItem.__init__" ID="UMLItem.__init__"></a> 146 <a NAME="UMLItem.__init__" ID="UMLItem.__init__"></a>
147 <h4>UMLItem (Constructor)</h4> 147 <h4>UMLItem (Constructor)</h4>
148 <b>UMLItem</b>(<i>model=None, x=0, y=0, rounded=False, parent=None</i>) 148 <b>UMLItem</b>(<i>model=None, x=0, y=0, rounded=False, colors=None, parent=None</i>)
149 149
150 <p> 150 <p>
151 Constructor 151 Constructor
152 </p> 152 </p>
153 <dl> 153 <dl>
154 154
155 <dt><i>model</i></dt> 155 <dt><i>model</i> (UMLModel)</dt>
156 <dd> 156 <dd>
157 UML model containing the item data (UMLModel) 157 UML model containing the item data
158 </dd> 158 </dd>
159 <dt><i>x</i></dt> 159 <dt><i>x</i> (int)</dt>
160 <dd> 160 <dd>
161 x-coordinate (integer) 161 x-coordinate
162 </dd> 162 </dd>
163 <dt><i>y</i></dt> 163 <dt><i>y</i> (int)</dt>
164 <dd> 164 <dd>
165 y-coordinate (integer) 165 y-coordinate
166 </dd> 166 </dd>
167 <dt><i>rounded</i></dt> 167 <dt><i>rounded</i> (bool)</dt>
168 <dd> 168 <dd>
169 flag indicating a rounded corner (boolean) 169 flag indicating a rounded corner
170 </dd> 170 </dd>
171 <dt><i>parent=</i></dt> 171 <dt><i>colors</i> (tuple of (QColor, QColor))</dt>
172 <dd> 172 <dd>
173 reference to the parent object (QGraphicsItem) 173 tuple containing the foreground and background colors
174 </dd>
175 <dt><i>parent</i> (QGraphicsItem)</dt>
176 <dd>
177 reference to the parent object
174 </dd> 178 </dd>
175 </dl> 179 </dl>
176 <a NAME="UMLItem.addAssociation" ID="UMLItem.addAssociation"></a> 180 <a NAME="UMLItem.addAssociation" ID="UMLItem.addAssociation"></a>
177 <h4>UMLItem.addAssociation</h4> 181 <h4>UMLItem.addAssociation</h4>
178 <b>addAssociation</b>(<i>assoc</i>) 182 <b>addAssociation</b>(<i>assoc</i>)

eric ide

mercurial