All Packages Class Hierarchy This Package Previous Next Index
Class kpalin.alabra.PromotionImage
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----kpalin.alabra.PromotionImage
- public class PromotionImage
- extends Canvas
Images on the pawn promotion dialog.
- Author:
- Kimmo Palin
- See Also:
- PawnPromote
-
dim
- Dimensions of the image.
-
p
- The piece to which the pawn is to be promoted.
-
PromotionImage(Piece, Dimension, MouseListener)
- Creates new PromotionImage canvas.
-
paint(Graphics)
-
p
public final Piece p
- The piece to which the pawn is to be promoted.
dim
private final Dimension dim
- Dimensions of the image.
PromotionImage
PromotionImage(Piece piece,
Dimension d,
MouseListener listen)
- Creates new PromotionImage canvas.
- Parameters:
- piece - The piece which is to be shown on the canvas.
- d - Dimension of the image.
- listen - The mouselistener which listens the selection.
paint
public void paint(Graphics g)
- Overrides:
- paint in class Canvas
All Packages Class Hierarchy This Package Previous Next Index