Implement Layer#legend