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 1863 of file svgfig.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 1875 of file svgfig.py.

1875  def __init__(self, x, y, d, **attr):
1876  self.x = x
1877  self.y = y
1878  self.d = str(d)
1879  self.attr = dict(self.defaults)
1880  self.attr.update(attr)
1881 

Member Function Documentation

◆ __repr__()

def svgfig.TextGlobal.__repr__ (   self)

◆ SVG()

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

Definition at line 1882 of file svgfig.py.

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

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.

Member Data Documentation

◆ attr

svgfig.TextGlobal.attr

◆ d

svgfig.TextGlobal.d

◆ defaults

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

Definition at line 1870 of file svgfig.py.

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

◆ x

svgfig.TextGlobal.x

◆ y

svgfig.TextGlobal.y
str
#define str(s)
Definition: TestProcessor.cc:48
update
#define update(a, b)
Definition: TrackClassifier.cc:10