phoenix_title wx.lib.floatcanvas.FCObjects.Line

Draws a line

It will draw a straight line if there are two points, and a polyline if there are more than two.


class_hierarchy Class Hierarchy

Inheritance diagram for class Line:

sub_classes Known Subclasses

wx.lib.floatcanvas.FCObjects.Spline


super_classes Known Superclasses

wx.lib.floatcanvas.FCObjects.DrawObject, wx.lib.floatcanvas.FCObjects.LineOnlyMixin, wx.lib.floatcanvas.FCObjects.PointsObjectMixin


method_summary Methods Summary

__init__

Default class constructor.


api Class API

class Line(PointsObjectMixin, LineOnlyMixin, DrawObject)

Draws a line

It will draw a straight line if there are two points, and a polyline if there are more than two.


Methods

__init__(self, Points, LineColor = "Black", LineStyle = "Solid", LineWidth = 1, InForeground = False)

Default class constructor.

Parameters:
  • Points – takes a 2-tuple, or a (2,) NumPy array of point coordinates

  • LineColor – see SetColor

  • LineStyle – see SetLineStyle

  • LineWidth – see SetLineWidth

  • InForeground (boolean) – should object be in foreground