public class AWTImageToken extends ImageToken
Red (cxh) |
Red (cxh) |
Constructor and Description |
---|
AWTImageToken(java.awt.Image value)
Construct a token with a specified java.awt.Image.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Image |
asAWTImage()
Because all tokens that contain images must extend ImageToken,
we must include the following method.
|
Type |
getType()
Return the type of this token.
|
java.awt.Image |
getValue()
Return the java.awt.Image object associated with this token.
|
java.lang.String |
toString()
Return a description of the token.
|
add, addReverse, divide, divideReverse, isCloseTo, isCloseTo, isEqualTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public AWTImageToken(java.awt.Image value)
value
- The given valuepublic java.awt.Image asAWTImage()
asAWTImage
in class ImageToken
public java.awt.Image getValue()
public java.lang.String toString()