Thumbnail fulfills the plot.Thumbnailer interface.
(plt *plot.Plot)
| 231 | |
| 232 | // Thumbnail fulfills the plot.Thumbnailer interface. |
| 233 | func (b *BarChart) Thumbnail(plt *plot.Plot) { |
| 234 | pc := plt.Paint |
| 235 | pc.FillStyle.Color = b.Color |
| 236 | b.LineStyle.SetStroke(plt) |
| 237 | ptb := pc.Bounds |
| 238 | pc.DrawRectangle(float32(ptb.Min.X), float32(ptb.Min.Y), float32(ptb.Size().X), float32(ptb.Size().Y)) |
| 239 | pc.FillStrokeClear() |
| 240 | } |
nothing calls this directly
no test coverage detected