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

Variable Index

 o dim
Dimensions of the image.
 o p
The piece to which the pawn is to be promoted.

Constructor Index

 o PromotionImage(Piece, Dimension, MouseListener)
Creates new PromotionImage canvas.

Method Index

 o paint(Graphics)

Variables

 o p
 public final Piece p
The piece to which the pawn is to be promoted.

 o dim
 private final Dimension dim
Dimensions of the image.

Constructors

 o 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.

Methods

 o paint
 public void paint(Graphics g)
Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index