LineLegendItem#

LineLegendItem#

Constructor#

LineLegendItem(graphic[, label, ...])

The legend representation of a LineGraphic, created with LineGraphic.create_legend_item().

Properties#

LineLegendItem.cmap_transform_labels

get or set the label of each cmap_transform value of a qualitative colormap

LineLegendItem.colorbar

the colorbar of this item, set when the graphic uses a quantitative colormap

LineLegendItem.dash_pattern_labels

get or set the label of each dash pattern

LineLegendItem.elements

the elements of this item, empty when it is shown as a colorbar

LineLegendItem.figure

the figure this container is drawn in

LineLegendItem.graphic

the graphic this item represents

LineLegendItem.label

get or set the label of this item, the graphic's name is used if it is not set

LineLegendItem.legend

the legend this item has been added to

Methods#

LineLegendItem.check_graphic_mode()

Make the item again if the graphic switched between uniform colors, per-vertex colors and a colormap, which replaces the feature instance and clears its handlers, so there is no event to follow.

LineLegendItem.draw()

pushes and pops the ID to keep identical containers unique within one frame

LineLegendItem.update()

Implement your GUI here and it will be drawn within the host window