Module fig :: Class PolyBox

Class PolyBox




Represents a rectangular closed box object.

Instance Methods
 
__init__(self, x1, y1, x2, y2)
 
polylineType(self)
Return type of this polygon (ptBox for all PolyBox objects), see changeType.
 
closed(self)
Return whether this polygon is closed (True for all PolyBox objects.)
 
center(self)
Return (x, y) coordinate tuple of the midpoint of this box.
 
upperLeft(self)
Return coordinates of upper left corner.
 
lowerRight(self)
Return coordinates of lower right corner.
 
width(self)
Return width of this box.
 
height(self)
Return height of this box.

Inherited from PolylineBase: __str__, bounds, changeType

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

Properties

Inherited from PolylineBase: 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, x1, y1, x2, y2)
(Constructor)

 
Overrides: PolylineBase.__init__