pyfeyn2.render.pyx.deco.PointLabel
- class pyfeyn2.render.pyx.deco.PointLabel(point, text, displace=0.3, angle=0, size=<pyx.text.size object>, halign=<pyx.text.halign object>, valign=None)[source]
Bases:
Label
Label attached to points on the diagram
- __init__(point, text, displace=0.3, angle=0, size=<pyx.text.size object>, halign=<pyx.text.halign object>, valign=None)[source]
Constructor.
Methods
__init__
(point, text[, displace, angle, ...])Constructor.
draw
(canvas)Draw this label on the supplied canvas.
getDepth
()Return the depth at which this instance lives.
getPath
()Return the path of this instance.
getPoint
()Get the point associated with this label.
Return the visible path of this instance.
Check if this instance is visible.
setDepth
(depth)Set the depth at which this instance lives.
setPoint
(point)Set the point associated with this label.
- getDepth()
Return the depth at which this instance lives.
- getPath()
Return the path of this instance.
- getVisiblePath()
Return the visible path of this instance.
- isVisible()
Check if this instance is visible.
- setDepth(depth)
Set the depth at which this instance lives.