ThemePlugin.java :  » Swing-Library » substance-look-feel » org » jvnet » substance » themepack » Java Open Source

Java Open Source » Swing Library » substance look feel 
substance look feel » org » jvnet » substance » themepack » ThemePlugin.java
package org.jvnet.substance.themepack;

import java.util.HashSet;
import java.util.Set;

import org.jvnet.substance.plugin.SubstanceThemePlugin;
import org.jvnet.substance.theme.SubstanceTheme;
import org.jvnet.substance.theme.ThemeInfo;
import org.jvnet.substance.themepack.theme.ExtraBelizeTheme;
import org.jvnet.substance.themepack.theme.ExtraBloodyMoonTheme;
import org.jvnet.substance.themepack.theme.ExtraBlueYonderTheme;
import org.jvnet.substance.themepack.theme.ExtraBrickWallTheme;
import org.jvnet.substance.themepack.theme.ExtraBrownVelvetTheme;
import org.jvnet.substance.themepack.theme.ExtraCobaltSteelTheme;
import org.jvnet.substance.themepack.theme.ExtraDesertMarsTheme;
import org.jvnet.substance.themepack.theme.ExtraEarthFrescoTheme;
import org.jvnet.substance.themepack.theme.ExtraEmeraldGrassTheme;
import org.jvnet.substance.themepack.theme.ExtraFauveMauveTheme;
import org.jvnet.substance.themepack.theme.ExtraGooseberryJungleTheme;
import org.jvnet.substance.themepack.theme.ExtraGreenPearlTheme;
import org.jvnet.substance.themepack.theme.ExtraMahoganyTheme;
import org.jvnet.substance.themepack.theme.ExtraOrchidAlloyTheme;
import org.jvnet.substance.themepack.theme.ExtraPeachTheme;
import org.jvnet.substance.themepack.theme.ExtraPlacidPinkTheme;
import org.jvnet.substance.themepack.theme.ExtraSkyHighTheme;
import org.jvnet.substance.themepack.theme.ExtraSpringLeafTheme;
import org.jvnet.substance.themepack.theme.ExtraTurquoiseLakeTheme;
import org.jvnet.substance.themepack.theme.ExtraWildPineTheme;
import org.jvnet.substance.themepack.theme.ExtraYellowMarineTheme;

public class ThemePlugin implements SubstanceThemePlugin {

  private static ThemeInfo create(SubstanceTheme theme, boolean isDefault) {
    ThemeInfo result = new ThemeInfo(theme.getDisplayName(), theme
        .getClass().getName(), theme.getKind());
    result.setDefault(isDefault);
    return result;
  }

  public Set<ThemeInfo> getThemes() {
    Set<ThemeInfo> result = new HashSet<ThemeInfo>();
    result.add(create(new ExtraMahoganyTheme(), false));
    result.add(create(new ExtraBrownVelvetTheme(), false));
    result.add(create(new ExtraPeachTheme(), false));
    result.add(create(new ExtraTurquoiseLakeTheme(), false));
    result.add(create(new ExtraEmeraldGrassTheme(), false));
    result.add(create(new ExtraBelizeTheme(), false));
    result.add(create(new ExtraBloodyMoonTheme(), false));
    result.add(create(new ExtraBlueYonderTheme(), false));
    result.add(create(new ExtraBrickWallTheme(), false));
    result.add(create(new ExtraCobaltSteelTheme(), false));
    result.add(create(new ExtraDesertMarsTheme(), false));
    result.add(create(new ExtraEarthFrescoTheme(), false));
    result.add(create(new ExtraFauveMauveTheme(), false));
    result.add(create(new ExtraGooseberryJungleTheme(), false));
    result.add(create(new ExtraGreenPearlTheme(), false));
    result.add(create(new ExtraOrchidAlloyTheme(), false));
    result.add(create(new ExtraPlacidPinkTheme(), false));
    result.add(create(new ExtraSkyHighTheme(), false));
    result.add(create(new ExtraSpringLeafTheme(), false));
    result.add(create(new ExtraWildPineTheme(), false));
    result.add(create(new ExtraYellowMarineTheme(), false));
    return result;
  }
  
  public String getDefaultThemeClassName() {
    return null;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.