|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pushingpixels.flamingo.api.common.icon.FilteredResizableIcon
public class FilteredResizableIcon
Implementation of ResizableIcon that allows applying a
BufferedImageOp on another icon.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.awt.image.BufferedImage> |
cachedImages
Image cache to speed up rendering. |
protected ResizableIcon |
delegate
The main (pre-filtered) icon. |
protected java.awt.image.BufferedImageOp |
operation
Filter operation. |
| Constructor Summary | |
|---|---|
FilteredResizableIcon(ResizableIcon delegate,
java.awt.image.BufferedImageOp operation)
Creates a new filtered icon. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
void |
setDimension(java.awt.Dimension newDimension)
Changes the dimension of this icon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<java.lang.String,java.awt.image.BufferedImage> cachedImages
protected ResizableIcon delegate
protected java.awt.image.BufferedImageOp operation
| Constructor Detail |
|---|
public FilteredResizableIcon(ResizableIcon delegate,
java.awt.image.BufferedImageOp operation)
delegate - The main (pre-filtered) icon.operation - Filter operation.| Method Detail |
|---|
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic void setDimension(java.awt.Dimension newDimension)
ResizableIconthis icon.
setDimension in interface ResizableIconnewDimension - New dimension for this icon.
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Icon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||