Esempio n. 1
0
 /** Get legend from an ordinal value */
 protected static Enum fromOrdinal(int o) {
   for (Enum e : Enum.values()) {
     if (e.ordinal() == o) return e;
   }
   return undefined;
 }