Package org.astrogrid.samp.gui
Class IconStore.SizedIcon
- java.lang.Object
-
- org.astrogrid.samp.gui.IconStore.SizedIcon
-
- All Implemented Interfaces:
javax.swing.Icon
- Enclosing class:
- IconStore
private static class IconStore.SizedIcon extends java.lang.Object implements javax.swing.Icon
Icon implementation which looks like an existing one, but is resized down if necessary.
-
-
Constructor Summary
Constructors Constructor Description SizedIcon(javax.swing.Icon icon, int size)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIconHeight()
int
getIconWidth()
void
paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
-
-
-
Method Detail
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfacejavax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
- Specified by:
paintIcon
in interfacejavax.swing.Icon
-
-