Thumbnailer wraps the Thumbnail method, which draws the small image in a legend representing the style of data.
| 69 | // draws the small image in a legend representing the |
| 70 | // style of data. |
| 71 | type Thumbnailer interface { |
| 72 | // Thumbnail draws an thumbnail representing |
| 73 | // a legend entry. The thumbnail will usually show |
| 74 | // a smaller representation of the style used |
| 75 | // to plot the corresponding data. |
| 76 | Thumbnail(c *draw.Canvas) |
| 77 | } |
| 78 | |
| 79 | // NewLegend returns a legend with the default parameter settings. |
| 80 | func NewLegend() Legend { |
no outgoing calls
no test coverage detected