Module fig :: Class PolylineBase

Class PolylineBase




Base class of Polygon-like objects (Polygon, Polyline, PictureBBox).

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
changeType(self, polylineType, retainPoints=False)
Change type of this Polyline object.
 
__str__(self)
str(x)
 
bounds(self)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties
  filename
  flipped
  points
  radius

Inherited from Object: backwardArrow, capStyle, comment, depth, fillColor, fillStyle, forwardArrow, joinStyle, lineStyle, lineWidth, penColor, penStyle, styleValue

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: Object.__init__

changeType(self, polylineType, retainPoints=False)

 

Change type of this Polyline object. polylineType may be one of the ptXXX constants:

  • ptPolyline
  • ptBox
  • ptPolygon
  • ptArcBox
  • ptPictureBBox

This method may change the type of this object to another PolylineBase-derived class.

If retainPoints is not set to True, this function will add/remove the last point such that closed polygons do not have the first point repeated at the end.

__str__(self)
(Informal representation operator)

 
str(x)
Overrides: object.__str__
(inherited documentation)