def METHOD_NAME(self, dendro, ax, orientation, idx, x, y):
    """Plots a dendrogram item to the given Cairo context
    @param dendro: the dendrogram object
    @param orientation: whether the dendrogram is horizontally oriented
    @param idx: the index of the item
    @param x: the X position of the item
    @param y: the Y position of the item
    """
    if dendro._names is None or dendro._names[idx] is None:
        return
    if orientation == "lr":
        ha, va, rotation = "right", "center", 0
    elif orientation == "rl":
        ha, va, rotation = "left", "center", 0
    elif orientation == "tb":
        ha, va, rotation = "center", "bottom", 90
    else:
        ha, va, rotation = "center", "top", 90
    # TODO: offset a little? But remember zoom in callbacks
    ax.text(
        x,
        y,
        dendro._names[idx],
        ha=ha,
        va=va,
        rotation=rotation,
    )