Sets the theme for this chart by specifying a theme class.

A theme can only be set via one setTheme method. An
{@link IllegalStateException} will be thrown if you call two setTheme
methods.

@param theme the theme class.
542034
public void setTheme(final Theme theme) {
        if (this.themeReference != null || this.themeUrl != null) {
            throw new IllegalStateException(
                    "A theme can only be defined once. Calling different setTheme methods is not allowed!");
        }
        this.theme = theme;
    }
1137553
public void setThemes_event(FSArray v) {
    if (Event_Type.featOkTst && ((Event_Type)jcasType).casFeat_themes_event == null)
      jcasType.jcas.throwFeatMissing("themes_event", "ch.epfl.bbp.uima.genia.Event");
    jcasType.ll_cas.ll_setRefValue(addr, ((Event_Type)jcasType).casFeatCode_themes_event, jcasType.ll_cas.ll_getFSRef(v));}
1270095
public void setStylesheet(FileResource stylesheet) {
        this.log("Setting custom stylesheet " + stylesheet.toString(), LogLevel.DEBUG.getLevel());
        this.stylesheet = stylesheet;
    }
800947
public function set($theme, $group = null)
    {
        if (!is_null($group)) {
            $this->currentGroup = $group;
            $this->currentTheme[$group] = $theme;
        }

        if (is_null($this->currentGroup)) {
            throw new \Exception('Current group cannot be null. Use Theme::setCurrentGroup($group) or Theme::set($theme, $group)');
        }

        $this->currentTheme[$this->currentGroup] = $theme;

        return $this;
    }
371207
private void setSeriesStyles() {

    SeriesColorMarkerLineStyleCycler seriesColorMarkerLineStyleCycler =
        new SeriesColorMarkerLineStyleCycler(
            getStyler().getSeriesColors(),
            getStyler().getSeriesMarkers(),
            getStyler().getSeriesLines());
    for (Series series : getSeriesMap().values()) {

      SeriesColorMarkerLineStyle seriesColorMarkerLineStyle =
          seriesColorMarkerLineStyleCycler.getNextSeriesColorMarkerLineStyle();

      if (series.getFillColor() == null) { // wasn't set manually
        series.setFillColor(seriesColorMarkerLineStyle.getColor());
      }
    }
  }
213180
public function setFormTheme($themes)
    {
        if (empty($themes)) {
            throw new Exception\InvalidArgumentException('The theme must not be empty.');
        }
        if (!is_string($themes) && !is_array($themes)) {
            throw new Exception\UnexpectedTypeException($themes, 'string or array of strings', 'themes');
        }

        $this->formThemes = array_merge($this->formThemes, (array)$themes);
    }
1280567
protected function secondaryTheme($theme=null) {
        
        if($theme) {
            $this->origin = $this->container->getThemeActivated();
            $this->container->setThemeActivated($theme);
        }
        
    }
348504
protected function _setTheme()
    {
        $theme = $this->request->getParam('theme');
        if ($theme) {
            $this->viewBuilder()->setTheme($theme);
        }
    }
38064
public void setErrorStyle(java.lang.String errorStyle) {
        getStateHelper().put(PropertyKeys.errorStyle, errorStyle);
    }
571834
public void setColor(@ColorInt int color) {
    this.color = color;
    if (!style.isFullyLoaded()) {
      // We are in progress of loading a new style
      return;
    }

    fillExtrusionLayer.setProperties(fillExtrusionColor(color));
  }
1099061
public function setThemeTemplate($template)
    {
        $this->_themeTemplate = $template;
        if ($this->getTheme() != null) {
            $this->getTheme()->setTemplate($this->_themeTemplate);
        }
    }
540465
def set_default_theme(theme):
    
    pref_init()  # make sure config files exist
    parser = cp.ConfigParser()
    parser.read(PREFS_FILE)
    # Do we need to create a section?
    if not parser.has_section("theme"):
        parser.add_section("theme")
    parser.set("theme", "default", theme)
    # best way to make sure no file truncation?
    with open("%s.2" % PREFS_FILE, "w") as fp:
        parser.write(fp)
    copy("%s.2" % PREFS_FILE, PREFS_FILE)
    unlink("%s.2" % PREFS_FILE,)
552736
@Override
	public void setStyleName(String styleName) {
		super.setStyleName(styleName);
		for (RibbonGroup group : groups) {
			group.asWidget().setStyleName(getStyleName() + "Group");
		}
	}
1074392
public void setThemeIfCurrentEmpty(String themeName) {
        if (themeName == null || themeName.isEmpty()) return;
        String theme = getTheme();
        if (theme == null || theme.isEmpty()) {
            setTheme(themeName);
        }
    }
711094
public void setStyles(String styles) {
		this.styles = styles;
		if (eventBus != null && parentLayer != null) {
			eventBus.fireEvent(new LayerStyleChangedEvent(parentLayer));
		}
	}
593191
public function setTheme($theme)
    {
        $this->theme = [];

        foreach ((array) $theme as $path) {
            $this->theme[] = $path === 'default' ? self::$defaultCSS : $path;
        }

        return $this;
    }
1216554
public void setSelectionStyle(ThemeUtil.ButtonStyle selectionStyle) {
        if (activePane != null) {
            activePane.updateSelectionStyle(this.selectionStyle, selectionStyle);
        }
        
        this.selectionStyle = selectionStyle;
    }