Table Of Contents

Previous topic

Arc

Next topic

ArrowLine

This Page

phoenix_title Arrow

Arrow class definition.

API definition:

Arrow(XY, # coords of origin of arrow (x,y)
      Length, # length of arrow in pixels
      theta, # angle of arrow in degrees: zero is straight up
             # +angle is to the right
      LineColor = "Black",
      LineStyle = "Solid",
      LineWidth    = 1,
      ArrowHeadSize = 4, # size of arrowhead in pixels
      ArrowHeadAngle = 45, # angle of arrow head in degrees
      InForeground = False):

It will draw an arrow , starting at the point, (X,Y) pointing in direction, theta.


class_hierarchy Inheritance Diagram

Inheritance diagram for class Arrow

Inheritance diagram of Arrow


api Class API



class Arrow(XYObjectMixin, LineOnlyMixin, DrawObject)

Arrow class definition.

API definition:

Arrow(XY, # coords of origin of arrow (x,y)
      Length, # length of arrow in pixels
      theta, # angle of arrow in degrees: zero is straight up
             # +angle is to the right
      LineColor = "Black",
      LineStyle = "Solid",
      LineWidth    = 1,
      ArrowHeadSize = 4, # size of arrowhead in pixels
      ArrowHeadAngle = 45, # angle of arrow head in degrees
      InForeground = False):

It will draw an arrow , starting at the point, (X,Y) pointing in direction, theta.


Methods



__init__(self, XY, Length, Direction, LineColor = "Black", LineStyle = "Solid", LineWidth = 2, ArrowHeadSize = 8, ArrowHeadAngle = 30, InForeground = False)


CalcArrowPoints(self)


SetDirection(self, Direction)


SetLength(self, Length)


SetLengthDirection(self, Length, Direction)