CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Static Public Attributes
svgfig.TextGlobal Class Reference

Public Member Functions

def __init__ (self, x, y, d, attr)
 
def __repr__ (self)
 
def SVG (self, trans=None)
 

Public Attributes

 attr
 
 d
 
 x
 
 y
 

Static Public Attributes

dictionary defaults = {"stroke":"none", "fill":"black", "font-size":5}
 

Detailed Description

Draws at text string at a specified point in global coordinates.

x, y                   required      location of the point in global coordinates
d                      required      text/Unicode string
attribute=value pairs  keyword list  SVG attributes 

Definition at line 1862 of file svgfig.py.

Constructor & Destructor Documentation

def svgfig.TextGlobal.__init__ (   self,
  x,
  y,
  d,
  attr 
)

Definition at line 1874 of file svgfig.py.

1874  def __init__(self, x, y, d, **attr):
1875  self.x = x
1876  self.y = y
1877  self.d = str(d)
1878  self.attr = dict(self.defaults)
1879  self.attr.update(attr)
1880 
def __init__(self, x, y, d, attr)
Definition: svgfig.py:1874
dictionary defaults
Definition: svgfig.py:1869

Member Function Documentation

def svgfig.TextGlobal.__repr__ (   self)
def svgfig.TextGlobal.SVG (   self,
  trans = None 
)
Apply the transformation "trans" and return an SVG object.

Definition at line 1881 of file svgfig.py.

References svgfig.SVG.attr, svgfig.Path.attr, svgfig.Curve.attr, svgfig.Poly.attr, svgfig.Text.attr, svgfig.TextGlobal.attr, svgfig.Fig.d, svgfig.Plot.d, svgfig.Frame.d, svgfig.Path.d, svgfig.Poly.d, svgfig.Text.d, svgfig.TextGlobal.d, MuonGeometryArrange::MGACollection.x, svgfig.Plot.x, svgfig.Frame.x, svgfig.Text.x, svgfig.TextGlobal.x, MuonGeometryArrange::MGACollection.y, svgfig.Plot.y, svgfig.Frame.y, svgfig.Curve.Sample.y, svgfig.Text.y, and svgfig.TextGlobal.y.

1881  def SVG(self, trans=None):
1882  """Apply the transformation "trans" and return an SVG object."""
1883  return SVG("text", self.d, x=self.x, y=self.y, **self.attr)
1884 
def SVG(self, trans=None)
Definition: svgfig.py:1881

Member Data Documentation

svgfig.TextGlobal.attr
svgfig.TextGlobal.d
dictionary svgfig.TextGlobal.defaults = {"stroke":"none", "fill":"black", "font-size":5}
static

Definition at line 1869 of file svgfig.py.

Referenced by tree.Tree.reset(), and tree.Tree.var().

svgfig.TextGlobal.x
svgfig.TextGlobal.y