public class IcyIcon extends java.lang.Object implements org.pushingpixels.flamingo.api.common.icon.ResizableIcon
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE |
Constructor and Description |
---|
IcyIcon(IcyIcon icon) |
IcyIcon(java.awt.Image image) |
IcyIcon(java.awt.Image image,
boolean alpha) |
IcyIcon(java.awt.Image image,
int size) |
IcyIcon(java.awt.Image image,
int size,
boolean alpha) |
IcyIcon(java.lang.String name) |
IcyIcon(java.lang.String name,
boolean alpha) |
IcyIcon(java.lang.String name,
int size) |
IcyIcon(java.lang.String name,
int size,
boolean alpha) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAlpha() |
java.awt.Color |
getColor() |
java.awt.Dimension |
getDimension() |
int |
getIconHeight() |
int |
getIconWidth() |
java.awt.Image |
getImage() |
java.lang.String |
getName() |
int |
getSize() |
boolean |
isAlpha()
Deprecated.
Use
getAlpha() instead |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
void |
setAlpha(boolean alpha) |
void |
setColor(java.awt.Color color) |
void |
setDimension(java.awt.Dimension newDim) |
void |
setImage(java.awt.Image value) |
void |
setName(java.lang.String value) |
void |
setSize(int size) |
public static final int DEFAULT_SIZE
public IcyIcon(java.lang.String name, int size, boolean alpha)
public IcyIcon(java.lang.String name, int size)
public IcyIcon(java.lang.String name, boolean alpha)
public IcyIcon(java.lang.String name)
public IcyIcon(java.awt.Image image, int size, boolean alpha)
public IcyIcon(java.awt.Image image, int size)
public IcyIcon(java.awt.Image image, boolean alpha)
public IcyIcon(java.awt.Image image)
public int getSize()
public void setSize(int size)
public java.lang.String getName()
public void setName(java.lang.String value)
value
- the name to setpublic java.awt.Image getImage()
public void setImage(java.awt.Image value)
value
- the image to setpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the fill color to set (null = default LAF color)@Deprecated public boolean isAlpha()
getAlpha()
insteadpublic boolean getAlpha()
public void setAlpha(boolean alpha)
alpha
- use alpha or color image dependingpublic java.awt.Dimension getDimension()
public void setDimension(java.awt.Dimension newDim)
setDimension
in interface org.pushingpixels.flamingo.api.common.icon.ResizableIcon
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