Package pyscript :: Module objects :: Class Text
[show private | hide private]
[frames | no frames]

Class Text

object --+            
         |            
     PsObj --+        
             |        
     AffineObj --+    
                 |    
              Area --+
                     |
                    Text


A single line text object
Method Summary
  __init__(self, **options)
can pass a dict of atributes to set
  body(self)
Returns the object's postscript body
  _get_font(self)
Get the font
  _get_kerning(self)
Get the kerning information
  _get_size(self)
Get the font size
  _get_text(self)
Get the text of the Text object
  _set_font(self, fontname)
Set the font
  _set_kerning(self, kerning)
Set the kerning information
  _set_size(self, size)
Set the font size
  _set_text(self, text)
Set the text of the Text object
  _typeset(self)
Typeset the Text object (including kerning info)
    Inherited from Area
  bbox(self)
Return the bounding box of the object
  _get_c(self)
Get the "centre" point
  _get_e(self)
Get the "east" point
  _get_n(self)
Get the "north" point
  _get_ne(self)
Get the "north-east" point
  _get_nw(self)
Get the "north-west" point
  _get_s(self)
Get the "south" point
  _get_se(self)
Get the "south-east" point
  _get_sw(self)
Get the "south-west" point
  _get_w(self)
Get the "west" point
  _set_c(self, pe)
Set the "centre" point
  _set_e(self, pe)
Set the "east" point
  _set_n(self, pe)
Set the "north" point
  _set_ne(self, pe)
Set the "north-east" point
  _set_nw(self, pe)
Set the "north-west" point
  _set_s(self, pe)
Set the "south" point
  _set_se(self, pe)
Set the "south-east" point
  _set_sw(self, pe)
Set the "south-west" point
  _set_w(self, pe)
Set the "west" point
    Inherited from AffineObj
self concat(self, t, p)
concat matrix t to tranformation matrix
P etoi(self, p_e)
convert external to internal co-ords
P itoe(self, p_i)
convert internal to external co-ords
self move(self, *args)
translate object by a certain amount
string postbody(self)
undo coordinate system transformation
string prebody(self)
set up transformation of coordinate system
self reflect(self, angle, p)
reflect object in mirror
self rotate(self, angle, p)
rotate object, the rotation is around p when supplied otherwise it's the objects origin
self scale(self, sx, sy, p)
scale object size (towards objects origin or p)
self shear(self, s, angle, p)
shear 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
self copy(self, **options)
return a copy of this object with listed attributes modified
    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

Property Summary
  font
  kerning
  size
  text
    Inherited from Area
  c
  e
  n
  ne
  nw
  s
  se
  sw
  w

Class Variable Summary
Color fg: color of the text
  font = pyscript.objects.Text.font
  kerning = pyscript.objects.Text.kerning
  size = pyscript.objects.Text.size
  text = pyscript.objects.Text.text
str _font = 'Times-Roman'
int _kerning = 1                                                                     
int _size = 12                                                                    
str _text = ''
    Inherited from Area
  c = pyscript.objects.Area.c
int height: the height
P isw = <class 'pyscript.vectors.P'>
int width: the width
    Inherited from AffineObj
P o = <class 'pyscript.vectors.P'>
Matrix T = <pyscript.vectors.Matrix instance at 0x40449cec>

Method Details

__init__(self, text='', **options)
(Constructor)

can pass a dict of atributes to set
Overrides:
pyscript.base.PsObj.__init__ (inherited documentation)

body(self)

Returns the object's postscript body
Overrides:
pyscript.base.PsObj.body

_get_font(self)

Get the font

_get_kerning(self)

Get the kerning information

_get_size(self)

Get the font size

_get_text(self)

Get the text of the Text object

_set_font(self, fontname)

Set the font

_set_kerning(self, kerning)

Set the kerning information

_set_size(self, size)

Set the font size

_set_text(self, text)

Set the text of the Text object

_typeset(self)

Typeset the Text object (including kerning info)

Property Details

font

Get Method:
_get_font(self)
Set Method:
_set_font(self, fontname)

kerning

Get Method:
_get_kerning(self)
Set Method:
_set_kerning(self, kerning)

size

Get Method:
_get_size(self)
Set Method:
_set_size(self, size)

text

Get Method:
_get_text(self)
Set Method:
_set_text(self, text)

Class Variable Details

fg

color of the text
Type:
Color
Value:
<class 'pyscript.base.Color'>                                          

_font

Type:
str
Value:
'Times-Roman'                                                          

_kerning

Type:
int
Value:
1                                                                     

_size

Type:
int
Value:
12                                                                    

_text

Type:
str
Value:
''                                                                     

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