toLvglAlignment

Converts a value to a LvglAlignment.

Return

The corresponding LvglAlignment or a IllegalStateException if the value isn't recognised.