to.etc.domui.parts
Class PropButtonRenderer

java.lang.Object
  extended by to.etc.domui.parts.PropButtonRenderer

public class PropButtonRenderer
extends java.lang.Object

The actual renderer class for a property-file based renderer.

Author:
Frits Jalvingh Created on Jul 21, 2008

Field Summary
protected  java.awt.image.BufferedImage m_iconImage
           
protected  java.awt.image.BufferedImage m_rootImage
           
 
Constructor Summary
PropButtonRenderer()
           
 
Method Summary
protected  void compress(PartResponse pr)
           
protected  void decodeAccelerator()
           
 void generate(PartResponse pr, DomApplication da, PropBtnPart.ButtonPartKey key, java.util.Properties p, IResourceDependencyList rdl)
           
 DomApplication getApplication()
           
protected  java.awt.Color getColor(java.lang.String key, java.awt.Color c)
           
 IResourceDependencyList getDependencies()
           
 java.awt.Graphics2D getGraphics()
           
 int getInt(java.lang.String key, int dflt)
           
 PropBtnPart.ButtonPartKey getKey()
           
 java.util.Properties getProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String dflt)
           
protected  void initAntiAliasing()
           
protected  void initAttributedText()
           
protected  void initBackground()
           
protected  void initIcon()
           
protected  void initTextColor()
           
protected  void initTextFont()
           
protected  java.awt.image.BufferedImage loadImage(java.lang.String rurl)
           
protected  void renderAttributedText()
          Render the actual, attributed text on the image.
protected  void renderIcon()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_rootImage

protected java.awt.image.BufferedImage m_rootImage

m_iconImage

protected java.awt.image.BufferedImage m_iconImage
Constructor Detail

PropButtonRenderer

public PropButtonRenderer()
Method Detail

generate

public void generate(PartResponse pr,
                     DomApplication da,
                     PropBtnPart.ButtonPartKey key,
                     java.util.Properties p,
                     @Nonnull
                     IResourceDependencyList rdl)
              throws java.lang.Exception
Throws:
java.lang.Exception

compress

protected void compress(PartResponse pr)
                 throws java.lang.Exception
Throws:
java.lang.Exception

initIcon

protected void initIcon()
                 throws java.lang.Exception
Throws:
java.lang.Exception

getGraphics

public java.awt.Graphics2D getGraphics()

initAntiAliasing

protected void initAntiAliasing()

initBackground

protected void initBackground()
                       throws java.lang.Exception
Throws:
java.lang.Exception

renderIcon

protected void renderIcon()
                   throws java.lang.Exception
Throws:
java.lang.Exception

initTextColor

protected void initTextColor()

getColor

protected java.awt.Color getColor(java.lang.String key,
                                  java.awt.Color c)

initTextFont

protected void initTextFont()

decodeAccelerator

protected void decodeAccelerator()

initAttributedText

protected void initAttributedText()

renderAttributedText

protected void renderAttributedText()
                             throws java.lang.Exception
Render the actual, attributed text on the image.

Throws:
java.lang.Exception

loadImage

protected java.awt.image.BufferedImage loadImage(java.lang.String rurl)
                                          throws java.lang.Exception
Throws:
java.lang.Exception

getApplication

public DomApplication getApplication()

getDependencies

public IResourceDependencyList getDependencies()

getKey

public PropBtnPart.ButtonPartKey getKey()

getProperties

public java.util.Properties getProperties()

getProperty

public java.lang.String getProperty(java.lang.String key)

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String dflt)

getInt

public int getInt(java.lang.String key,
                  int dflt)