ptolemy.data
Class ImageToken

java.lang.Object
  extended byptolemy.data.Token
      extended byptolemy.data.ImageToken
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AWTImageToken

public abstract class ImageToken
extends Token

An abstract class that all tokens which encapsulate images should extend. Each class that extends this class is required to implement the method asAWTImage(), so that it may be used with the standard image processing library.

Since:
Ptolemy II 3.0
Version:
$Id: ImageToken.java,v 1.14 2004/04/13 03:21:36 cxh Exp $
Author:
James Yeh
See Also:
Serialized Form
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Constructor Summary
ImageToken()
          Construct an empty token.
 
Method Summary
abstract  java.awt.Image asAWTImage()
          An abstract method that all subclasses must implement to ensure compatibility with the standard image processing library.
 
Methods inherited from class ptolemy.data.Token
add, addReverse, divide, divideReverse, getType, isCloseTo, isCloseTo, isEqualTo, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, one, pow, subtract, subtractReverse, toString, zero, zeroReturnType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageToken

public ImageToken()
Construct an empty token.

Method Detail

asAWTImage

public abstract java.awt.Image asAWTImage()
An abstract method that all subclasses must implement to ensure compatibility with the standard image processing library.