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 ; }
Sets the theme for this chart by specifying a theme class .