LineLegendElement#

LineLegendElement#

Constructor#

LineLegendElement(label, color, thickness, ...)

A line sample drawn with the thickness and dash pattern of the graphic.

Properties#

LineLegendElement.color

the color the swatch is drawn with

LineLegendElement.label

the label drawn next to the swatch

LineLegendElement.swatch_height

height in pixels the swatch needs, must be implemented in subclass

Methods#

LineLegendElement.draw_swatch(draw_list, x, ...)

draw the swatch in the given rect, must be implemented in subclass