no.hig.okolloen.graphics.digit
Class ImageColl

java.lang.Object
  |
  +--no.hig.okolloen.graphics.digit.ImageColl

public class ImageColl
extends java.lang.Object

ImageColl is the basis for all the DigitStrip classes (DigitStrip, DateStrip and TimeStrip). This class is used to hold the different images used by the DigitStrip class. The images will be read from a subdirectory. The structure is :

where "style a subdir" etc is the directories for the different styles.

Each of these directories must include the following files :

Since:
rev 0.1

Constructor Summary
ImageColl(java.lang.String collName)
          Constructor for the ImageColl class.
 
Method Summary
 java.awt.Image getAM()
          Method for getting the image object representing a am ("AM") indicator.
 java.awt.Image getColon()
          Method for getting the image object representing a colon (":") sign.
 java.awt.Image getDot()
          Method for getting the image object representing a dot (".") sign.
 java.awt.Image getEight()
          Method for getting the image object representing the digit 8.
 java.awt.Image getFive()
          Method for getting the image object representing the digit 5.
 java.awt.Image getFour()
          Method for getting the image object representing the digit 4.
 int getHeight(java.awt.image.ImageObserver observer)
          Returns the height of a digit in this style.
 java.awt.Image getMinus()
          Method for getting the image object representing a minus ("-") sign.
 java.awt.Image getNine()
          Method for getting the image object representing the digit 9.
 java.awt.Image getOne()
          Method for getting the image object representing the digit 1.
 java.awt.Image getPM()
          Method for getting the image object representing a pm ("PM") indicator.
 java.awt.Image getSeven()
          Method for getting the image object representing the digit 7.
 java.awt.Image getSix()
          Method for getting the image object representing the digit 6.
 java.awt.Image getThree()
          Method for getting the image object representing the digit 3.
 java.awt.Image getTwo()
          Method for getting the image object representing the digit 2.
 int getWidth(java.awt.image.ImageObserver observer)
          Returns the width of a digit in this style.
 java.awt.Image getZero()
          Method for getting the image object representing the digit 0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageColl

public ImageColl(java.lang.String collName)
Constructor for the ImageColl class. Reads images from a catalog to build a new image collection that holds all images for a particular style.
Parameters:
collName - Name of the catalog below digits that holds the images for this collection.
Method Detail

getMinus

public java.awt.Image getMinus()
Method for getting the image object representing a minus ("-") sign.
Returns:
Image object holding the image for this sign.

getDot

public java.awt.Image getDot()
Method for getting the image object representing a dot (".") sign.
Returns:
Image object holding the image for this sign.

getColon

public java.awt.Image getColon()
Method for getting the image object representing a colon (":") sign.
Returns:
Image object holding the image for this sign.

getAM

public java.awt.Image getAM()
Method for getting the image object representing a am ("AM") indicator.
Returns:
Image object holding the image for this indicator.

getPM

public java.awt.Image getPM()
Method for getting the image object representing a pm ("PM") indicator.
Returns:
Image object holding the image for this indicator.

getZero

public java.awt.Image getZero()
Method for getting the image object representing the digit 0.
Returns:
Image object holding the image for this digit.

getOne

public java.awt.Image getOne()
Method for getting the image object representing the digit 1.
Returns:
Image object holding the image for this digit.

getTwo

public java.awt.Image getTwo()
Method for getting the image object representing the digit 2.
Returns:
Image object holding the image for this digit.

getThree

public java.awt.Image getThree()
Method for getting the image object representing the digit 3.
Returns:
Image object holding the image for this digit.

getFour

public java.awt.Image getFour()
Method for getting the image object representing the digit 4.
Returns:
Image object holding the image for this digit.

getFive

public java.awt.Image getFive()
Method for getting the image object representing the digit 5.
Returns:
Image object holding the image for this digit.

getSix

public java.awt.Image getSix()
Method for getting the image object representing the digit 6.
Returns:
Image object holding the image for this digit.

getSeven

public java.awt.Image getSeven()
Method for getting the image object representing the digit 7.
Returns:
Image object holding the image for this digit.

getEight

public java.awt.Image getEight()
Method for getting the image object representing the digit 8.
Returns:
Image object holding the image for this digit.

getNine

public java.awt.Image getNine()
Method for getting the image object representing the digit 9.
Returns:
Image object holding the image for this digit.

getHeight

public int getHeight(java.awt.image.ImageObserver observer)
Returns the height of a digit in this style.
Parameters:
observer - ImageObserver object that will be user to show this image.
Returns:
int value representing current height.

getWidth

public int getWidth(java.awt.image.ImageObserver observer)
Returns the width of a digit in this style.
Parameters:
observer - ImageObserver object that will be user to show this image.
Returns:
int value representing current width.