ewe.fx
Class ImageBytes

java.lang.Object
  extended byewe.util.ByteArray
      extended byewe.fx.ImageBytes
All Implemented Interfaces:
Copyable, Encodable

public class ImageBytes
extends ByteArray

This provides no more functionality than a ByteArray. Its sole purpose is to allow for automatic creation of an ImageControl UI component when creating Editors for objects. Any variable of type ImageBytes gets an ImageControl created for it.


Field Summary
 
Fields inherited from class ewe.util.ByteArray
data, length
 
Constructor Summary
ImageBytes()
           
ImageBytes(byte[] data)
           
ImageBytes(IImage image)
           
 
Method Summary
 Object getCopy()
          This version of getCopy() returns a new ImageBytes object.
 mImage pngDecode()
          This method will decode the Image that was perviously saved via pngEnocde().
 void pngEncode(IImage image)
          This method will save the Image as a PNG image into this ImageBytes object, erasing any data that may have been in it.
 
Methods inherited from class ewe.util.ByteArray
append, append, appendInt, appendInt, appendLong, clear, copyFrom, copyFrom, delete, insert, insertInt, insertLong, makeSpace, setLength, toBytes, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

ImageBytes

public ImageBytes()

ImageBytes

public ImageBytes(byte[] data)

ImageBytes

public ImageBytes(IImage image)
Method Detail

getCopy

public Object getCopy()
This version of getCopy() returns a new ImageBytes object.

Specified by:
getCopy in interface Copyable
Overrides:
getCopy in class ByteArray

pngEncode

public void pngEncode(IImage image)
This method will save the Image as a PNG image into this ImageBytes object, erasing any data that may have been in it.


pngDecode

public mImage pngDecode()
This method will decode the Image that was perviously saved via pngEnocde().