Package pyscript :: Module base :: Class Dash
[show private | hide private]
[frames | no frames]

Class Dash

object --+    
         |    
     PsObj --+
             |
            Dash


Class to encode postscript dash pattern

Argument is a list of lengths for alternating dash and spaces

eg: Dash(3) 3 on, 3 off, ... Dash(2,offset=1) 1 on, 2 off, 2 on, 2 off, ... Dash(2,1) 2 on, 1 off, 2 on, 1 off, ... Dash(3,5,offset=6) 2 off, 3 on, 5 off, 3 on, 5 off, ... Dash(3,1,1,1) 3 on, 1 off, 1 on, 1 off, 3 on, ...
Method Summary
  __init__(self, *args, **options)
Initialisation of the Dash object
  body(self)
Returns the postscript of a Dash object
    Inherited from PsObj
self __call__(self, **options)
Set a whole lot of attributes in one go
string __repr__(self)
Return a representation of this object
string __str__(self)
return actual postscript string to generate object
Bbox bbox(self)
return objects bounding box this can be a Null Bbox() if object doesn't draw anything on the page.)
self copy(self, **options)
return a copy of this object with listed attributes modified
string postbody(self)
convenience function to allow clean subclassing
string prebody(self)
convenience function to allow clean subclassing
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
    Inherited from type
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T

Class Variable Summary
int offset: initially fastforward this much into the pattern
tuple pattern = (2,)

Method Details

__init__(self, *args, **options)
(Constructor)

Initialisation of the Dash object
Overrides:
pyscript.base.PsObj.__init__

body(self)

Returns the postscript of a Dash object
Overrides:
pyscript.base.PsObj.body

Class Variable Details

offset

initially fastforward this much into the pattern
Type:
int
Value:
0                                                                     

pattern

Type:
tuple
Value:
(2,)                                                                   

Generated by Epydoc 2.0 on Mon Apr 24 17:02:37 2006 http://epydoc.sf.net