|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.ImageIcon
net.sf.magicproject.ui.component.MiniCard
public class MiniCard
| Field Summary | |
|---|---|
static int |
CARD_ICON_HEIGHT
The height of icon. |
static int |
CARD_ICON_WIDTH
The width of icon. |
| Constructor Summary | |
|---|---|
MiniCard(java.awt.Image image,
javax.swing.ImageIcon backImage)
Create a new instance of this class. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Gets the height of the icon. |
int |
getIconWidth()
Gets the width of the icon. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Paints the icon. |
| Methods inherited from class javax.swing.ImageIcon |
|---|
getAccessibleContext, getDescription, getImage, getImageLoadStatus, getImageObserver, setDescription, setImage, setImageObserver, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CARD_ICON_WIDTH
public static final int CARD_ICON_HEIGHT
| Constructor Detail |
|---|
public MiniCard(java.awt.Image image,
javax.swing.ImageIcon backImage)
image - the image to display.backImage - the background image behing the card.| Method Detail |
|---|
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
x,
y) in the coordinate space of the graphics context
g. If this icon has no image observer, this method uses the
c component as the observer.
paintIcon in interface javax.swing.IconpaintIcon in class javax.swing.ImageIconc - the component to be used as the observer if this icon has no image
observerg - the graphics contextx - the X coordinate of the icon's top-left cornery - the Y coordinate of the icon's top-left cornerpublic int getIconWidth()
getIconWidth in interface javax.swing.IcongetIconWidth in class javax.swing.ImageIconpublic int getIconHeight()
getIconHeight in interface javax.swing.IcongetIconHeight in class javax.swing.ImageIcon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||