net.sf.magicproject.ui.wizard
Class WizardImageIcon

java.lang.Object
  extended by javax.swing.ImageIcon
      extended by net.sf.magicproject.ui.wizard.WizardImageIcon
All Implemented Interfaces:
java.io.Serializable, javax.accessibility.Accessible, javax.swing.Icon

public class WizardImageIcon
extends javax.swing.ImageIcon

Since:
0.90
Author:
Fabrice Daugan
See Also:
Serialized Form

Field Summary
static int CARD_ICON_HEIGHT
          The height of displayed icon.
static int CARD_ICON_WIDTH
          The width of displayed icon.
static float VALUE_ALPHA_COMPOSITE
          The alpha composite of background
 
Constructor Summary
WizardImageIcon(java.awt.Image cardImage, java.lang.String iconName)
          Create a new instance of this class.
WizardImageIcon(MCard card, java.lang.String iconName)
          Create a new instance of this class.
 
Method Summary
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setCard(MCard card)
          Set the card to display in this panel.
 
Methods inherited from class javax.swing.ImageIcon
getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, setDescription, setImage, setImageObserver, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CARD_ICON_WIDTH

public static final int CARD_ICON_WIDTH
The width of displayed icon.

See Also:
Constant Field Values

VALUE_ALPHA_COMPOSITE

public static final float VALUE_ALPHA_COMPOSITE
The alpha composite of background

See Also:
Constant Field Values

CARD_ICON_HEIGHT

public static final int CARD_ICON_HEIGHT
The height of displayed icon.

See Also:
Constant Field Values
Constructor Detail

WizardImageIcon

public WizardImageIcon(MCard card,
                       java.lang.String iconName)
Create a new instance of this class.

Parameters:
card - the card to display in this panel.
iconName - the back picture to display in this panel.

WizardImageIcon

public WizardImageIcon(java.awt.Image cardImage,
                       java.lang.String iconName)
Create a new instance of this class.

Parameters:
cardImage - the image to display in this panel.
iconName - the back picture to display in this panel.
Method Detail

setCard

public void setCard(MCard card)
Set the card to display in this panel.

Parameters:
card - the card to display in this panel.

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon
Overrides:
paintIcon in class javax.swing.ImageIcon


Copyright © 2003-2007 Magic-Project. All Rights Reserved.