com.droplets.apix
Class GameBoard.Cell

java.lang.Object
  |
  +--com.droplets.apix.GameBoard.Cell
Enclosing class:
GameBoard

public static class GameBoard.Cell
extends java.lang.Object

Contains all the attributes for a cell on a GameBoard


Constructor Summary
GameBoard.Cell(Color bg)
          Creates a new Cell object, specifying only the background color.
GameBoard.Cell(Color bg, java.lang.String imageName, boolean isScaled)
          Creates a new Cell object, specifying the background color and the image.
GameBoard.Cell(Color bg, java.lang.String imageName, boolean isScaled, int cursor)
          Creates a new Cell object, specifying the background color, the image, and the cursor.
 
Method Summary
 Color getBackgroundColor()
          Gets the background color of the cell.
 java.lang.String getBackgroundImageName()
          Gets the name of the background image for this cell.
 int getCursor()
          Gets the integer value for this component's cursor.
 boolean getIsBackgroundImageScaled()
          Gets whether or not the background image is scaled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameBoard.Cell

public GameBoard.Cell(Color bg)
Creates a new Cell object, specifying only the background color.
Parameters:
bg - The background color

GameBoard.Cell

public GameBoard.Cell(Color bg,
                      java.lang.String imageName,
                      boolean isScaled)
Creates a new Cell object, specifying the background color and the image.
Parameters:
bg - The background color
imageName - The name of the image
isScaled - Whether or not the image should be scaled.

GameBoard.Cell

public GameBoard.Cell(Color bg,
                      java.lang.String imageName,
                      boolean isScaled,
                      int cursor)
Creates a new Cell object, specifying the background color, the image, and the cursor.
Parameters:
bg - The background color
imageName - The name of the image
isScaled - Whether or not the image should be scaled.
cursor - The Cursor code
Method Detail

getBackgroundColor

public Color getBackgroundColor()
Gets the background color of the cell.

getBackgroundImageName

public java.lang.String getBackgroundImageName()
Gets the name of the background image for this cell.

getIsBackgroundImageScaled

public boolean getIsBackgroundImageScaled()
Gets whether or not the background image is scaled.

getCursor

public int getCursor()
Gets the integer value for this component's cursor.


Copyright © Droplets, 2001. All Rights Reserved.