public ColorScheme filterColorScheme(ColorScheme colorScheme) {
   if (!reversingColorScheme) {
     return colorScheme;
   }
   List colors = new ArrayList(colorScheme.getColors());
   Collections.reverse(colors);
   return new ColorScheme(colorScheme.getName(), colors);
 }
 private void addComboBoxItems() {
   int maxColorSchemeSize = -1;
   for (Iterator i = ColorScheme.rangeColorSchemeNames().iterator(); i.hasNext(); ) {
     String rangeColorSchemeName = (String) i.next();
     maxColorSchemeSize =
         Math.max(maxColorSchemeSize, ColorScheme.create(rangeColorSchemeName).getColors().size());
   }
   for (int i = 3; i <= maxColorSchemeSize; i++) {
     comboBoxModel.addElement(new Integer(i));
   }
 }
 public void applyColorScheme(ColorScheme colorScheme) {
   stylePanel
       .tableModel()
       .apply(
           new ColorScheme(
               null,
               CollectionUtil.stretch(
                   colorScheme.getColors(),
                   new ArrayList(),
                   stylePanel.tableModel().getRowCount())),
           false);
 }
 public Collection getColorSchemeNames() {
   return ColorScheme.rangeColorSchemeNames();
 }