eric4.Graphics.UMLCanvasView

Module implementing a subclass of QCanvasView for our diagrams.

Classes

UMLCanvasView Class implementing a specialized canvasview for our diagrams.

Functions

None


UMLCanvasView

Class implementing a specialized canvasview for our diagrams.

Derived from

E4CanvasView

Methods

UMLCanvasView Constructor
__decHeight Private method to handle the decrease height context menu entry.
__decWidth Private method to handle the decrease width context menu entry.
__deleteShape Private method to delete the selected shapes from the display.
__incHeight Private method to handle the increase height context menu entry.
__incWidth Private method to handle the increase width context menu entry.
__printDiagram Private slot called to print the diagram.
__relayout Private method to handle the re-layout context menu entry.
__saveImage Private method to handle the save context menu entry.
__setSize Private method to handle the set size context menu entry.
__showContextMenu Private slot to show the context menu.
__zoom Private method to handle the zoom context menu action.
collisions Public method to filter a list of collisions.
selectItem Public method to select an item.
selectItems Public method to select the given items.

UMLCanvasView (Constructor)

UMLCanvasView(canvas, parent = None, name = None)

Constructor

canvas
canvas that is managed by the view (QCanvas)
parent
parent widget of the view (QWidget)
name
name of the view widget (QString or string)

UMLCanvasView.__decHeight

__decHeight()

Private method to handle the decrease height context menu entry.

UMLCanvasView.__decWidth

__decWidth()

Private method to handle the decrease width context menu entry.

UMLCanvasView.__deleteShape

__deleteShape()

Private method to delete the selected shapes from the display.

UMLCanvasView.__incHeight

__incHeight()

Private method to handle the increase height context menu entry.

UMLCanvasView.__incWidth

__incWidth()

Private method to handle the increase width context menu entry.

UMLCanvasView.__printDiagram

__printDiagram()

Private slot called to print the diagram.

UMLCanvasView.__relayout

__relayout()

Private method to handle the re-layout context menu entry.

UMLCanvasView.__saveImage

__saveImage()

Private method to handle the save context menu entry.

UMLCanvasView.__setSize

__setSize()

Private method to handle the set size context menu entry.

UMLCanvasView.__showContextMenu

__showContextMenu(coord)

Private slot to show the context menu.

coord
the position of the mouse pointer (QPoint)

UMLCanvasView.__zoom

__zoom()

Private method to handle the zoom context menu action.

UMLCanvasView.collisions

collisions(items)

Public method to filter a list of collisions.

items
list of collision items as reported by the canvas object (E4CanvasItem)
Returns:
list of interesting collision items (E4CanvasItem)

UMLCanvasView.selectItem

selectItem(item)

Public method to select an item.

item
item to be selected (E4CanvasItem)

UMLCanvasView.selectItems

selectItems(items)

Public method to select the given items.

items
list of items to be selected (list of E4CanvasItem)

Up