getLegend

Retrieves the appropriate Legend configuration based on the given LegendCode.

Return

The corresponding Legend, or null if the code is not recognized.

Parameters

code

The LegendCode enum representing the desired legend.