|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SurfaceFormat
A class that implements SurfaceFormat can be registered with Mango to extend the number of surface formats supported.
| Method Summary | |
|---|---|
Object |
clone()
Returns a copy of the object. |
String |
getName()
Deprecated. |
String |
getPreferredFileExtension()
Returns the preferred file extension of this format. |
boolean |
isThisFormat(File file)
Used to determine if a file is of this format (e.g., read magic number, check file size, check file extension, etc). |
SurfaceData[] |
readFormat(File file,
ViewerController vc)
Reads surface data from file. |
void |
writeFormat(File file,
SurfaceData[] data,
ViewerController vc)
Writes surface data to file. |
| Method Detail |
|---|
SurfaceData[] readFormat(File file,
ViewerController vc)
file - the file to readvc - the ViewerController object can be used to access image dimensions, orientation, lookup tables, etc.
void writeFormat(File file,
SurfaceData[] data,
ViewerController vc)
file - the file to writedata - the data to write; the first index in data specifies the base image surfacevc - the ViewerController object can be used to access image dimensions, orientation, lookup tables, etc.boolean isThisFormat(File file)
file - the file to read
String getPreferredFileExtension()
String getName()
Object clone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||