|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.data.Token
ptolemy.data.ImageToken
ptolemy.actor.lib.jai.JAIImageToken
public class JAIImageToken
A token that contains a javax.media.jai.RenderedOp. This token is used when dealing with images in the Java Advanced Imaging (JAI) library. Because it extends ImageToken, it can be used with the standard image processing tools by simply calling asAWTImage().
| Red (cxh) |
| Red (cxh) |
| Field Summary | |
|---|---|
private java.awt.image.BufferedImage |
_bufferedImage
|
private javax.media.jai.RenderedOp |
_renderedOp
|
| Fields inherited from class ptolemy.data.Token |
|---|
NIL |
| Constructor Summary | |
|---|---|
JAIImageToken(javax.media.jai.RenderedOp value)
Construct a token with a specified RenderedOp. |
|
| Method Summary | |
|---|---|
private java.awt.image.renderable.ParameterBlock |
_parameterize(javax.media.jai.RenderedOp left,
JAIImageToken right)
|
Token |
add(Token rightArgument)
Return a new token whose value is the sum of this token and the argument. |
java.awt.Image |
asAWTImage()
Convert a javax.media.jai.RenderedOp to a BufferedImage, a subclass of awt.Image, and return it. |
Token |
divide(Token rightArgument)
Return a new token whose value is the division of this token and the argument. |
Type |
getType()
Return the type of this token. |
javax.media.jai.RenderedOp |
getValue()
Return the value of the token, a renderedop. |
Token |
multiply(Token rightArgument)
Return a new token whose value is the multiplication of this token and the argument. |
Token |
subtract(Token rightArgument)
Return a new token whose value is the subtraction of this token from the argument. |
java.lang.String |
toString()
Return a description of the token. |
| Methods inherited from class ptolemy.data.Token |
|---|
addReverse, divideReverse, isCloseTo, isCloseTo, isEqualTo, isNil, modulo, moduloReverse, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtractReverse, zero, zeroReturnType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.awt.image.BufferedImage _bufferedImage
private javax.media.jai.RenderedOp _renderedOp
| Constructor Detail |
|---|
public JAIImageToken(javax.media.jai.RenderedOp value)
value - The RenderedOp with which to construct the JAIImageToken.| Method Detail |
|---|
public Token add(Token rightArgument)
throws IllegalActionException
add in class TokenrightArgument - The token to add to this token.
IllegalActionException - If the data type is not supported.public java.awt.Image asAWTImage()
asAWTImage in class ImageToken
public Token divide(Token rightArgument)
throws IllegalActionException
divide in class TokenrightArgument - The token to divide this token by.
IllegalActionException - If the data type is not supported.public Type getType()
getType in class Tokenpublic javax.media.jai.RenderedOp getValue()
public Token multiply(Token rightArgument)
throws IllegalActionException
multiply in class TokenrightArgument - The token to multiply this token by.
IllegalActionException - If the data type is not supported.
public Token subtract(Token rightArgument)
throws IllegalActionException
subtract in class TokenrightArgument - The token to subtract from this token.
IllegalActionException - If the data type is not supported.public java.lang.String toString()
toString in class Token
private java.awt.image.renderable.ParameterBlock _parameterize(javax.media.jai.RenderedOp left,
JAIImageToken right)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||