public class PropButtonRenderer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BufferedImage |
m_iconImage |
protected BufferedImage |
m_rootImage |
| Constructor and Description |
|---|
PropButtonRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compress(PartResponse pr) |
protected void |
decodeAccelerator() |
void |
generate(PartResponse pr,
DomApplication da,
ButtonPartKey key,
Properties p,
IResourceDependencyList rdl) |
DomApplication |
getApplication() |
protected Color |
getColor(String key,
Color c) |
IResourceDependencyList |
getDependencies() |
Graphics2D |
getGraphics() |
int |
getInt(String key,
int dflt) |
ButtonPartKey |
getKey() |
Properties |
getProperties() |
String |
getProperty(String key) |
String |
getProperty(String key,
String dflt) |
protected void |
initAntiAliasing() |
protected void |
initAttributedText() |
protected void |
initBackground()
Load all backgrounds, and checks their sizes: they must have the exact same size.
|
protected void |
initIcon() |
protected void |
initTextColor() |
protected void |
initTextFont() |
protected BufferedImage |
loadImage(String rurl) |
protected void |
renderAttributedText()
Render the actual, attributed text on the image.
|
protected void |
renderIcon() |
protected BufferedImage m_rootImage
protected BufferedImage m_iconImage
public void generate(PartResponse pr, DomApplication da, ButtonPartKey key, Properties p, @Nonnull IResourceDependencyList rdl) throws Exception
Exceptionprotected void compress(PartResponse pr) throws Exception
Exceptionpublic Graphics2D getGraphics()
protected void initAntiAliasing()
protected void initBackground()
throws Exception
Exceptionprotected void initTextColor()
protected void initTextFont()
protected void decodeAccelerator()
protected void initAttributedText()
protected void renderAttributedText()
throws Exception
Exceptionprotected BufferedImage loadImage(String rurl) throws Exception
Exceptionpublic DomApplication getApplication()
public IResourceDependencyList getDependencies()
public ButtonPartKey getKey()
public Properties getProperties()
public int getInt(String key, int dflt)
Copyright © 2017 etc.to. All rights reserved.