|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.legend.ReIcon
public class ReIcon
Quick utility class used to "resize" an icon.
Constructor Summary | |
---|---|
ReIcon(javax.swing.Icon icon)
|
Method Summary | |
---|---|
javax.swing.Icon |
getIcon()
|
javax.swing.Icon |
getIcon(int size)
Produce an icon of the required size. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReIcon(javax.swing.Icon icon)
Method Detail |
---|
public javax.swing.Icon getIcon()
public javax.swing.Icon getIcon(int size)
The returned icon is not always an ImageIcon; and may in fact pay attention to your component foreground and background color.
size
- Size of the icon (usually 16,32 and 48 are supported)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |