pyfeyn2.render.pyx.deco.Label

class pyfeyn2.render.pyx.deco.Label(text, pos=None, x=None, y=None, size=<pyx.text.size object>, halign=<pyx.text.halign object>, valign=None)[source]

Bases: Visible

General label, unattached to any diagram elements

__init__(text, pos=None, x=None, y=None, size=<pyx.text.size object>, halign=<pyx.text.halign object>, valign=None)[source]

Constructor.

Methods

__init__(text[, pos, x, y, size, halign, valign])

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.

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.

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.

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.