ptolemy.data
Class ImageToken

java.lang.Object
  extended by ptolemy.data.Token
      extended by ptolemy.data.ImageToken
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AWTImageToken, JAIImageToken, JMFImageToken

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 57040 2010-01-27 20:52:32Z cxh $
Author:
James Yeh
See Also:
Serialized Form
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Field Summary
 
Fields inherited from class ptolemy.data.Token
NIL
 
Constructor Summary
ImageToken()
          Construct an empty token.
 
Method Summary
abstract  java.awt.Image asAWTImage()
          Return the value of this token as a java.awt.Image.
 
Methods inherited from class ptolemy.data.Token
add, addReverse, divide, divideReverse, getType, isCloseTo, isCloseTo, isEqualTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, 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()
Return the value of this token as a java.awt.Image.

Returns:
The image.