Пример #1
0
 static TreeColorSet createInstance(final Configuration configuration) {
   final TreeColorSet tcs = new TreeColorSet();
   if ((configuration != null)
       && (configuration.getDisplayColors() != null)
       && (configuration.getDisplayColors().size() > 0)) {
     final Map<String, Color> colors = configuration.getDisplayColors();
     for (final String field : colors.keySet()) {
       final Color color = colors.get(field);
       try {
         tcs.setColorforDefault(field, color);
       } catch (final IllegalArgumentException ex) {
         ForesterUtil.printWarningMessage(Constants.PRG_NAME, ex.getMessage());
       }
     }
   }
   tcs.setColorSchema(0);
   return tcs;
 }
Пример #2
0
 static TreeColorSet createInstance() {
   final TreeColorSet tcs = new TreeColorSet();
   tcs.setColorSchema(0);
   return tcs;
 }