com.liquidatom.derbyscore.theme
Class Theme

java.lang.Object
  extended by com.liquidatom.derbyscore.theme.Theme

public class Theme
extends java.lang.Object

Author:
Russell Francis (russ@metro-six.com)

Constructor Summary
protected Theme()
           
  Theme(java.net.URL themeDefinitionURL)
           
 
Method Summary
protected  javax.script.ScriptEngine acquireJavascriptEngine(java.util.Map<java.lang.String,java.lang.Object> scope)
           
 boolean addElement(ThemeElement element)
           
 void addResource(java.lang.String id, java.awt.image.BufferedImage img)
           
 void addResource(java.lang.String id, java.awt.image.BufferedImage img, int transparency)
           
 void addResource(java.lang.String id, java.awt.Font font)
           
 java.awt.image.BufferedImage getBackdrop()
           
 java.lang.String getBase()
           
protected  Bout getBout()
           
protected  java.awt.GraphicsConfiguration getDefaultConfiguration()
           
 java.awt.Font getFont(java.lang.String id)
           
 java.awt.image.BufferedImage getImage(java.lang.String id)
           
 java.net.URL getThemeDefinitionURL()
           
 java.util.Collection<ThemeElement> getThemeElements()
           
protected  void releaseJavascriptEngine()
           
protected  java.awt.image.BufferedImage toCompatibleImage(java.awt.image.BufferedImage img, int transparency, java.awt.GraphicsConfiguration gc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Theme

protected Theme()

Theme

public Theme(java.net.URL themeDefinitionURL)
Method Detail

getDefaultConfiguration

protected java.awt.GraphicsConfiguration getDefaultConfiguration()

toCompatibleImage

protected java.awt.image.BufferedImage toCompatibleImage(java.awt.image.BufferedImage img,
                                                         int transparency,
                                                         java.awt.GraphicsConfiguration gc)

getThemeElements

public java.util.Collection<ThemeElement> getThemeElements()

getBackdrop

public java.awt.image.BufferedImage getBackdrop()

getFont

public java.awt.Font getFont(java.lang.String id)

getImage

public java.awt.image.BufferedImage getImage(java.lang.String id)

getBout

protected Bout getBout()

addResource

public void addResource(java.lang.String id,
                        java.awt.Font font)

addResource

public void addResource(java.lang.String id,
                        java.awt.image.BufferedImage img)

addResource

public void addResource(java.lang.String id,
                        java.awt.image.BufferedImage img,
                        int transparency)

addElement

public boolean addElement(ThemeElement element)

getThemeDefinitionURL

public java.net.URL getThemeDefinitionURL()

getBase

public java.lang.String getBase()

acquireJavascriptEngine

protected javax.script.ScriptEngine acquireJavascriptEngine(java.util.Map<java.lang.String,java.lang.Object> scope)

releaseJavascriptEngine

protected void releaseJavascriptEngine()