eric7.EricGraphics.EricArrowItem
Module implementing a graphics item subclass for an arrow.
Global Attributes
Classes
Functions
EricArrowItem
    Class implementing an arrow graphics item subclass.
Derived from
QAbstractGraphicsShapeItem
Class Attributes
Class Methods
Methods
| EricArrowItem | Constructor | 
| boundingRect | Public method to return the bounding rectangle. | 
| paint | Public method to paint the item in local coordinates. | 
| setEndPoint | Public method to set the end point. | 
| setPoints | Public method to set the start and end points of the line. | 
| setStartPoint | Public method to set the start point. | 
Static Methods
EricArrowItem (Constructor)
EricArrowItem(origin=None, end=None, filled=False, arrowType=EricArrowType.NORMAL, colors=None, parent=None, )
        Constructor
- origin (QPointF)
- 
origin of the arrow
- end (QPointF)
- 
end point of the arrow
- filled (bool)
- 
flag indicating a filled arrow head
- arrowType (EricArrowType)
- 
arrow type
- colors (tuple of (QColor, QColor))
- 
tuple containing the foreground and background colors
- parent (QGraphicsItem)
- 
reference to the parent object
EricArrowItem.boundingRect
boundingRect()
        Public method to return the bounding rectangle.
- Return:
- 
bounding rectangle
- Return Type:
- 
QRectF
EricArrowItem.paint
paint(painter, option, widget=None)
        Public method to paint the item in local coordinates.
- painter (QPainter)
- 
reference to the painter object
- option (QStyleOptionGraphicsItem)
- 
style options
- widget (QWidget)
- 
optional reference to the widget painted on
EricArrowItem.setEndPoint
setEndPoint(x, y)
        Public method to set the end point.
        Note: This method does not redraw the item.
- x (float)
- 
x-coordinate of the end point
- y (float)
- 
y-coordinate of the end point
EricArrowItem.setPoints
setPoints(xa, ya, xb, yb)
        Public method to set the start and end points of the line.
        Note: This method does not redraw the item.
- xa (float)
- 
x-coordinate of the start point
- ya (float)
- 
y-coordinate of the start point
- xb (float)
- 
x-coordinate of the end point
- yb (float)
- 
y-coordinate of the end point
EricArrowItem.setStartPoint
setStartPoint(x, y)
        Public method to set the start point.
        Note: This method does not redraw the item.
- x (float)
- 
x-coordinate of the start point
- y (float)
- 
y-coordinate of the start point
EricArrowType
    Class defining the arrow types.
Derived from
enum.Enum
Class Attributes
Class Methods
Methods
Static Methods