to.etc.domui.parts
Class PropButtonRenderer
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_rootImage
protected java.awt.image.BufferedImage m_rootImage
m_iconImage
protected java.awt.image.BufferedImage m_iconImage
PropButtonRenderer
public PropButtonRenderer()
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)