Get RobotChase at SourceForge.net. Fast, secure and Free Open Source software downloads

org.gcs.robot
Class RCImage

java.lang.Object
  extended by org.gcs.robot.RCImage

public final class RCImage
extends Object

The RCImage class supplies images to the RCView view. Each set is a single instance containing the images used in play. There are three sets, each having a common image type: png, gif or jpg. The images are assumed to have a uniform aspect ratio, defined in RCTile.

Author:
John B. Matthews
See Also:
RCTile

Field Summary
static Color borderColor
          Theme color
 
Method Summary
static RCImage getNextSet()
          Return the next set of images in the series.
static RCImage getSet()
          Return the current set of images.
static ImageIcon scale(Image image, int w, int h)
          Create a scaled ImageIcon from the given image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

borderColor

public static final Color borderColor
Theme color

Method Detail

getSet

public static RCImage getSet()
Return the current set of images.


scale

public static ImageIcon scale(Image image,
                              int w,
                              int h)
Create a scaled ImageIcon from the given image.

Parameters:
image - the image to scale
w - desired width
h - desired height
Returns:
a scaled ImageIcon

getNextSet

public static RCImage getNextSet()
Return the next set of images in the series.


Get RobotChase at SourceForge.net. Fast, secure and Free Open Source software downloads

Copyright © 2007 Gem City Software. Distributed under the terms of the GPL