public class DataConverterHelper extends HelperBase
HelperBase.DATA_TYPE
_actor, _currentObj
Constructor and Description |
---|
DataConverterHelper(java.lang.Object actor,
jdk.nashorn.api.scripting.ScriptObjectMirror currentObj)
Constructor for DataConverterHelper.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
imageToJSArray(AWTImageToken imageToken)
Convert AWTImageToken to JavaScript array.
|
AWTImageToken |
jsArrayToImage(java.lang.Object object)
Convert JavaScript array to AWTImageToken.
|
_appendNumericToBuffer, _appendToBuffer, _error, _error, _error, _error, _extractFromBuffer, _issueResponse, _removeDuplicates, _sizeOfType, _toJavaBytes, _toJSArray, getHelping
public DataConverterHelper(java.lang.Object actor, jdk.nashorn.api.scripting.ScriptObjectMirror currentObj)
actor
- The actor associated with this helper.currentObj
- The JavaScript object that this is helping.public java.lang.Object imageToJSArray(AWTImageToken imageToken) throws IllegalActionException
imageToken
- The image token (AWTImageToken) to be converted.IllegalActionException
- If the conversion fails.public AWTImageToken jsArrayToImage(java.lang.Object object) throws IllegalActionException
object
- The JavaScript array to be converted to a image token.IllegalActionException
- If the conversion fails..