|
|||||||||
| 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 Map<String,BufferedImage> |
cachedImages
Image cache to speed up rendering. |
protected ResizableIcon |
delegate
The main (pre-filtered) icon. |
protected BufferedImageOp |
operation
Filter operation. |
| Constructor Summary | |
|---|---|
FilteredResizableIcon(ResizableIcon delegate,
BufferedImageOp operation)
Creates a new filtered icon. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
setDimension(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 Map<String,BufferedImage> cachedImages
protected ResizableIcon delegate
protected BufferedImageOp operation
| Constructor Detail |
|---|
public FilteredResizableIcon(ResizableIcon delegate,
BufferedImageOp operation)
delegate - The main (pre-filtered) icon.operation - Filter operation.| Method Detail |
|---|
public int getIconHeight()
getIconHeight in interface Iconpublic int getIconWidth()
getIconWidth in interface Iconpublic void setDimension(Dimension newDimension)
ResizableIconthis icon.
setDimension in interface ResizableIconnewDimension - New dimension for this icon.
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface Icon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||