Home | Trees | Index | Help |
|
---|
Package pyscript :: Module base :: Class PsObj |
|
object
--+
|
PsObj
AffineObj
,
Color
,
Dash
,
P
Method Summary | |
---|---|
can pass a dict of atributes to set | |
self |
Set a whole lot of attributes in one go |
string |
Return a representation of this object |
string |
return actual postscript string to generate object |
Bbox |
return objects bounding box this can be a Null Bbox() if object doesn't draw anything on the page.) |
string |
subclasses should overide this for generating postscipt code |
self |
return a copy of this object with listed attributes modified |
string |
convenience function to allow clean subclassing |
string |
convenience function to allow clean subclassing |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Method Details |
---|
__init__(self,
**options)
can pass a dict of atributes to set
|
__call__(self,
**options)
|
__repr__(self)
Return a representation of this object
|
__str__(self)
return actual postscript string to generate object
|
bbox(self)return objects bounding box this can be a Null Bbox() if object doesn't draw anything on the page.) NB that the bbox should be dynamically calculated and take into account the transformation matrix if it applies
|
body(self)subclasses should overide this for generating postscipt code
|
copy(self, **options)return a copy of this object with listed attributes modified eg:newobj=obj.copy(bg=Color(.3))
|
postbody(self)convenience function to allow clean subclassing
|
prebody(self)convenience function to allow clean subclassing
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Apr 24 17:02:37 2006 | http://epydoc.sf.net |