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.

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.

setPoint(point)

Set the point associated with this label.

draw(canvas)[source]

Draw this label on the supplied canvas.

getDepth()

Return the depth at which this instance lives.

getPath()

Return the path of this instance.

getPoint()[source]

Get the point associated with this label.

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.

setPoint(point)[source]

Set the point associated with this label.