net.infonode.gui.icon.button

Class AbstractButtonIcon

public abstract class AbstractButtonIcon extends Object implements Icon, Serializable

Constructor Summary
AbstractButtonIcon()
AbstractButtonIcon(Color color)
AbstractButtonIcon(Color color, int size)
AbstractButtonIcon(int size)
AbstractButtonIcon(int size, boolean enabled)
Method Summary
intgetIconHeight()
intgetIconWidth()
floatgetShadowStrength()
booleanisShadowEnabled()
voidpaintIcon(Component c, Graphics g, int x, int y)
protected voidpaintIcon(Component c, Graphics g, int x1, int y1, int x2, int y2, boolean isShadow)
protected voidpaintIcon(Component c, Graphics g, int x1, int y1, int x2, int y2)
voidsetShadowEnabled(boolean shadowEnabled)
voidsetShadowStrength(float shadowStrength)

Constructor Detail

AbstractButtonIcon

public AbstractButtonIcon()

AbstractButtonIcon

public AbstractButtonIcon(Color color)

AbstractButtonIcon

public AbstractButtonIcon(Color color, int size)

AbstractButtonIcon

public AbstractButtonIcon(int size)

AbstractButtonIcon

public AbstractButtonIcon(int size, boolean enabled)

Method Detail

getIconHeight

public int getIconHeight()

getIconWidth

public int getIconWidth()

getShadowStrength

public float getShadowStrength()

isShadowEnabled

public boolean isShadowEnabled()

paintIcon

public void paintIcon(Component c, Graphics g, int x, int y)

paintIcon

protected void paintIcon(Component c, Graphics g, int x1, int y1, int x2, int y2, boolean isShadow)

paintIcon

protected void paintIcon(Component c, Graphics g, int x1, int y1, int x2, int y2)

setShadowEnabled

public void setShadowEnabled(boolean shadowEnabled)

setShadowStrength

public void setShadowStrength(float shadowStrength)