public class ColormapIcon extends java.lang.Object implements javax.swing.Icon
Constructor and Description |
---|
ColormapIcon(IcyColorMap colormap) |
ColormapIcon(IcyColorMap colormap,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
IcyColorMap |
getColormap() |
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
void |
setHeight(int value) |
void |
setWidth(int value) |
public ColormapIcon(IcyColorMap colormap, int width, int height)
public ColormapIcon(IcyColorMap colormap)
public IcyColorMap getColormap()
public void setWidth(int value)
public void setHeight(int value)
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon