src/eric7/Documentation/Source/eric7.EricGraphics.EricGraphicsView.html

branch
eric7
changeset 10922
36a90a94765c
parent 10479
856476537696
equal deleted inserted replaced
10921:495f084a737e 10922:36a90a94765c
144 </table> 144 </table>
145 145
146 146
147 <a NAME="EricGraphicsView.__init__" ID="EricGraphicsView.__init__"></a> 147 <a NAME="EricGraphicsView.__init__" ID="EricGraphicsView.__init__"></a>
148 <h4>EricGraphicsView (Constructor)</h4> 148 <h4>EricGraphicsView (Constructor)</h4>
149 <b>EricGraphicsView</b>(<i>scene, parent=None</i>) 149 <b>EricGraphicsView</b>(<i>scene, drawingMode="automatic", parent=None</i>)
150 <p> 150 <p>
151 Constructor 151 Constructor
152 </p> 152 </p>
153 153
154 <dl> 154 <dl>
155 155
156 <dt><i>scene</i> (QGraphicsScene)</dt> 156 <dt><i>scene</i> (QGraphicsScene)</dt>
157 <dd> 157 <dd>
158 reference to the scene object 158 reference to the scene object
159 </dd>
160 <dt><i>drawingMode</i> (str (optional))</dt>
161 <dd>
162 name of the drawing mode (one of "automatic",
163 "black_white" or "white_black") (defaults to "automatic")
159 </dd> 164 </dd>
160 <dt><i>parent</i> (QWidget)</dt> 165 <dt><i>parent</i> (QWidget)</dt>
161 <dd> 166 <dd>
162 parent widget 167 parent widget
163 </dd> 168 </dd>
317 QGraphicsItem 322 QGraphicsItem
318 </dd> 323 </dd>
319 </dl> 324 </dl>
320 <a NAME="EricGraphicsView.getBackgroundColor" ID="EricGraphicsView.getBackgroundColor"></a> 325 <a NAME="EricGraphicsView.getBackgroundColor" ID="EricGraphicsView.getBackgroundColor"></a>
321 <h4>EricGraphicsView.getBackgroundColor</h4> 326 <h4>EricGraphicsView.getBackgroundColor</h4>
322 <b>getBackgroundColor</b>(<i></i>) 327 <b>getBackgroundColor</b>(<i>drawingMode="automatic"</i>)
323 <p> 328 <p>
324 Public method to get the configured background color. 329 Public method to get the configured background color.
325 </p> 330 </p>
326 331
332 <dl>
333
334 <dt><i>drawingMode</i> (str (optional))</dt>
335 <dd>
336 name of the drawing mode (one of "automatic",
337 "black_white" or "white_black") (defaults to "automatic")
338 </dd>
339 </dl>
327 <dl> 340 <dl>
328 <dt>Return:</dt> 341 <dt>Return:</dt>
329 <dd> 342 <dd>
330 background color 343 background color
331 </dd> 344 </dd>
336 QColor 349 QColor
337 </dd> 350 </dd>
338 </dl> 351 </dl>
339 <a NAME="EricGraphicsView.getDrawingColors" ID="EricGraphicsView.getDrawingColors"></a> 352 <a NAME="EricGraphicsView.getDrawingColors" ID="EricGraphicsView.getDrawingColors"></a>
340 <h4>EricGraphicsView.getDrawingColors</h4> 353 <h4>EricGraphicsView.getDrawingColors</h4>
341 <b>getDrawingColors</b>(<i></i>) 354 <b>getDrawingColors</b>(<i>drawingMode="automatic"</i>)
342 <p> 355 <p>
343 Public method to get the configured drawing colors. 356 Public method to get the configured drawing colors.
344 </p> 357 </p>
345 358
359 <dl>
360
361 <dt><i>drawingMode</i> (str (optional))</dt>
362 <dd>
363 name of the drawing mode (one of "automatic",
364 "black_white" or "white_black") (defaults to "automatic")
365 </dd>
366 </dl>
346 <dl> 367 <dl>
347 <dt>Return:</dt> 368 <dt>Return:</dt>
348 <dd> 369 <dd>
349 tuple containing the foreground and background colors 370 tuple containing the foreground and background colors
350 </dd> 371 </dd>
355 tuple of (QColor, QColor) 376 tuple of (QColor, QColor)
356 </dd> 377 </dd>
357 </dl> 378 </dl>
358 <a NAME="EricGraphicsView.getForegroundColor" ID="EricGraphicsView.getForegroundColor"></a> 379 <a NAME="EricGraphicsView.getForegroundColor" ID="EricGraphicsView.getForegroundColor"></a>
359 <h4>EricGraphicsView.getForegroundColor</h4> 380 <h4>EricGraphicsView.getForegroundColor</h4>
360 <b>getForegroundColor</b>(<i></i>) 381 <b>getForegroundColor</b>(<i>drawingMode="automatic"</i>)
361 <p> 382 <p>
362 Public method to get the configured foreground color. 383 Public method to get the configured foreground color.
363 </p> 384 </p>
364 385
386 <dl>
387
388 <dt><i>drawingMode</i> (str (optional))</dt>
389 <dd>
390 name of the drawing mode (one of "automatic",
391 "black_white" or "white_black") (defaults to "automatic")
392 </dd>
393 </dl>
365 <dl> 394 <dl>
366 <dt>Return:</dt> 395 <dt>Return:</dt>
367 <dd> 396 <dd>
368 foreground color 397 foreground color
369 </dd> 398 </dd>
374 QColor 403 QColor
375 </dd> 404 </dd>
376 </dl> 405 </dl>
377 <a NAME="EricGraphicsView.printDiagram" ID="EricGraphicsView.printDiagram"></a> 406 <a NAME="EricGraphicsView.printDiagram" ID="EricGraphicsView.printDiagram"></a>
378 <h4>EricGraphicsView.printDiagram</h4> 407 <h4>EricGraphicsView.printDiagram</h4>
379 <b>printDiagram</b>(<i>printer, diagramName=""</i>) 408 <b>printDiagram</b>(<i>printer, margins=None, diagramName=""</i>)
380 <p> 409 <p>
381 Public method to print the diagram. 410 Public method to print the diagram.
382 </p> 411 </p>
383 412
384 <dl> 413 <dl>
385 414
386 <dt><i>printer</i> (QPrinter)</dt> 415 <dt><i>printer</i> (QPrinter)</dt>
387 <dd> 416 <dd>
388 reference to a ready configured printer object 417 reference to a ready configured printer object
389 </dd> 418 </dd>
390 <dt><i>diagramName</i> (float)</dt> 419 <dt><i>margins</i> (QMarginsF or None (optional))</dt>
420 <dd>
421 diagram margins (defaults to None)
422 </dd>
423 <dt><i>diagramName</i> (str)</dt>
391 <dd> 424 <dd>
392 name of the diagram 425 name of the diagram
393 </dd> 426 </dd>
394 </dl> 427 </dl>
395 <a NAME="EricGraphicsView.resizeScene" ID="EricGraphicsView.resizeScene"></a> 428 <a NAME="EricGraphicsView.resizeScene" ID="EricGraphicsView.resizeScene"></a>

eric ide

mercurial