racket/collects/plot/contracted/legend.rkt
Neil Toronto e90ec4b69f Added unstable/latent-contract
Reorganized contracts
Started exposing customization API in plot/utils
Now dog-fooding customization API in earnest
2011-11-10 12:59:41 -07:00

17 lines
624 B
Racket

#lang racket/base
(require racket/contract unstable/latent-contract racket/class)
(require "../common/legend.rkt"
"../common/area.rkt")
(provide (contract-out
(struct legend-entry ([label string?]
[draw ((is-a?/c plot-area%) real? real? real? real? . -> . void?)])))
(activate-contract-out
line-legend-entry line-legend-entries
rectangle-legend-entry rectangle-legend-entries
interval-legend-entry interval-legend-entries
contour-intervals-legend-entries
point-legend-entry
vector-field-legend-entry))