Home | Trees | Index | Help |
|
---|
Package pyscript :: Module objects :: Class Text |
|
object
--+ |PsObj
--+ |AffineObj
--+ |Area
--+ | Text
Method Summary | |
---|---|
can pass a dict of atributes to set | |
Returns the object's postscript body | |
Get the font | |
Get the kerning information | |
Get the font size | |
Get the text of the Text object | |
Set the font | |
Set the kerning information | |
Set the font size | |
Set the text of the Text object | |
Typeset the Text object (including kerning info) | |
Inherited from Area | |
Return the bounding box of the object | |
Get the "centre" point | |
Get the "east" point | |
Get the "north" point | |
Get the "north-east" point | |
Get the "north-west" point | |
Get the "south" point | |
Get the "south-east" point | |
Get the "south-west" point | |
Get the "west" point | |
Set the "centre" point | |
Set the "east" point | |
Set the "north" point | |
Set the "north-east" point | |
Set the "north-west" point | |
Set the "south" point | |
Set the "south-east" point | |
Set the "south-west" point | |
Set the "west" point | |
Inherited from AffineObj | |
self |
concat matrix t to tranformation matrix |
P |
convert external to internal co-ords |
P |
convert internal to external co-ords |
self |
translate object by a certain amount |
string |
undo coordinate system transformation |
string |
set up transformation of coordinate system |
self |
reflect object in mirror |
self |
rotate object, the rotation is around p when supplied otherwise it's the objects origin |
self |
scale object size (towards objects origin or p) |
self |
shear object |
Inherited from PsObj | |
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 |
self |
return a copy of this object with listed attributes modified |
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 |
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)
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) |
Property Details |
---|
font |
kerning
|
size |
text |
Class Variable Details |
---|
fgcolor of the text
|
_font
|
_kerning
|
_size
|
_text
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Apr 24 17:02:37 2006 | http://epydoc.sf.net |