wx.lib.floatcanvas.FCObjects.Arrow¶Draws an arrow
It will draw an arrow , starting at the point XY points at an angle
defined by Direction.
Class Hierarchy¶
Inheritance diagram for class Arrow:
Known Superclasses¶wx.lib.floatcanvas.FCObjects.DrawObject, wx.lib.floatcanvas.FCObjects.LineOnlyMixin, wx.lib.floatcanvas.FCObjects.XYObjectMixin
Methods Summary¶Default class constructor. |
|
Calculate the arrow points. |
|
Set the direction |
|
Set the length |
|
Set the length and direction |
Class API¶Draws an arrow
It will draw an arrow , starting at the point XY points at an angle
defined by Direction.
Default class constructor.
XY – the (x, y) coordinate of the starting point, or a 2-tuple, or a (2,) NumPy array
Length (integer) – length of arrow in pixels
Direction (integer) – angle of arrow in degrees, zero is straight up + angle is to the right
LineColor – see SetColor
LineStyle – see SetLineStyle
LineWidth – see SetLineWidth
ArrowHeadSize – size of arrow head in pixels
ArrowHeadAngle – angle of arrow head in degrees
InForeground (boolean) – should object be in foreground
Calculate the arrow points.
Set the direction
Direction (integer) – angle of arrow in degrees, zero is straight up + angle is to the right
Set the length
Length (integer) – length of arrow in pixels
Set the length and direction
Length (integer) – length of arrow in pixels
Direction (integer) – angle of arrow in degrees, zero is straight up + angle is to the right