eric6/Documentation/Source/eric6.E5Graphics.E5ArrowItem.html

branch
maintenance
changeset 6989
8b8cadf8d7e9
parent 6942
2602857055c5
child 7273
391d6b7b1eff
equal deleted inserted replaced
6938:7926553b7509 6989:8b8cadf8d7e9
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.E5Graphics.E5ArrowItem</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.E5Graphics.E5ArrowItem</h1>
23 <p>
24 Module implementing a graphics item subclass for an arrow.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>ArrowheadAngleFactor</td></tr><tr><td>NormalArrow</td></tr><tr><td>WideArrow</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#E5ArrowItem">E5ArrowItem</a></td>
34 <td>Class implementing an arrow graphics item subclass.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="E5ArrowItem" ID="E5ArrowItem"></a>
43 <h2>E5ArrowItem</h2>
44 <p>
45 Class implementing an arrow graphics item subclass.
46 </p>
47 <h3>Derived from</h3>
48 QAbstractGraphicsShapeItem
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#E5ArrowItem.__init__">E5ArrowItem</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#E5ArrowItem.boundingRect">boundingRect</a></td>
64 <td>Public method to return the bounding rectangle.</td>
65 </tr><tr>
66 <td><a href="#E5ArrowItem.paint">paint</a></td>
67 <td>Public method to paint the item in local coordinates.</td>
68 </tr><tr>
69 <td><a href="#E5ArrowItem.setEndPoint">setEndPoint</a></td>
70 <td>Public method to set the end point.</td>
71 </tr><tr>
72 <td><a href="#E5ArrowItem.setPoints">setPoints</a></td>
73 <td>Public method to set the start and end points of the line.</td>
74 </tr><tr>
75 <td><a href="#E5ArrowItem.setStartPoint">setStartPoint</a></td>
76 <td>Public method to set the start point.</td>
77 </tr>
78 </table>
79 <h3>Static Methods</h3>
80 <table>
81 <tr><td>None</td></tr>
82 </table>
83 <a NAME="E5ArrowItem.__init__" ID="E5ArrowItem.__init__"></a>
84 <h4>E5ArrowItem (Constructor)</h4>
85 <b>E5ArrowItem</b>(<i>origin=None, end=None, filled=False, arrowType=NormalArrow, parent=None</i>)
86 <p>
87 Constructor
88 </p><dl>
89 <dt><i>origin</i></dt>
90 <dd>
91 origin of the arrow (QPointF)
92 </dd><dt><i>end</i></dt>
93 <dd>
94 end point of the arrow (QPointF)
95 </dd><dt><i>filled</i></dt>
96 <dd>
97 flag indicating a filled arrow head (boolean)
98 </dd><dt><i>arrowType</i></dt>
99 <dd>
100 arrow type (NormalArrow, WideArrow)
101 </dd><dt><i>parent=</i></dt>
102 <dd>
103 reference to the parent object (QGraphicsItem)
104 </dd>
105 </dl><a NAME="E5ArrowItem.boundingRect" ID="E5ArrowItem.boundingRect"></a>
106 <h4>E5ArrowItem.boundingRect</h4>
107 <b>boundingRect</b>(<i></i>)
108 <p>
109 Public method to return the bounding rectangle.
110 </p><dl>
111 <dt>Returns:</dt>
112 <dd>
113 bounding rectangle (QRectF)
114 </dd>
115 </dl><a NAME="E5ArrowItem.paint" ID="E5ArrowItem.paint"></a>
116 <h4>E5ArrowItem.paint</h4>
117 <b>paint</b>(<i>painter, option, widget=None</i>)
118 <p>
119 Public method to paint the item in local coordinates.
120 </p><dl>
121 <dt><i>painter</i></dt>
122 <dd>
123 reference to the painter object (QPainter)
124 </dd><dt><i>option</i></dt>
125 <dd>
126 style options (QStyleOptionGraphicsItem)
127 </dd><dt><i>widget</i></dt>
128 <dd>
129 optional reference to the widget painted on (QWidget)
130 </dd>
131 </dl><a NAME="E5ArrowItem.setEndPoint" ID="E5ArrowItem.setEndPoint"></a>
132 <h4>E5ArrowItem.setEndPoint</h4>
133 <b>setEndPoint</b>(<i>x, y</i>)
134 <p>
135 Public method to set the end point.
136 </p><p>
137 <b>Note:</b> This method does not redraw the item.
138 </p><dl>
139 <dt><i>x</i></dt>
140 <dd>
141 x-coordinate of the end point (float)
142 </dd><dt><i>y</i></dt>
143 <dd>
144 y-coordinate of the end point (float)
145 </dd>
146 </dl><a NAME="E5ArrowItem.setPoints" ID="E5ArrowItem.setPoints"></a>
147 <h4>E5ArrowItem.setPoints</h4>
148 <b>setPoints</b>(<i>xa, ya, xb, yb</i>)
149 <p>
150 Public method to set the start and end points of the line.
151 </p><p>
152 <b>Note:</b> This method does not redraw the item.
153 </p><dl>
154 <dt><i>xa</i></dt>
155 <dd>
156 x-coordinate of the start point (float)
157 </dd><dt><i>ya</i></dt>
158 <dd>
159 y-coordinate of the start point (float)
160 </dd><dt><i>xb</i></dt>
161 <dd>
162 x-coordinate of the end point (float)
163 </dd><dt><i>yb</i></dt>
164 <dd>
165 y-coordinate of the end point (float)
166 </dd>
167 </dl><a NAME="E5ArrowItem.setStartPoint" ID="E5ArrowItem.setStartPoint"></a>
168 <h4>E5ArrowItem.setStartPoint</h4>
169 <b>setStartPoint</b>(<i>x, y</i>)
170 <p>
171 Public method to set the start point.
172 </p><p>
173 <b>Note:</b> This method does not redraw the item.
174 </p><dl>
175 <dt><i>x</i></dt>
176 <dd>
177 x-coordinate of the start point (float)
178 </dd><dt><i>y</i></dt>
179 <dd>
180 y-coordinate of the start point (float)
181 </dd>
182 </dl>
183 <div align="right"><a href="#top">Up</a></div>
184 <hr />
185 </body></html>

eric ide

mercurial