Top Constructors Methods
com.sun.webkit.graphics

public abstract Class WCImageDecoder

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.javafx.webkit.prism.WCImageDecoderImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract void
addImageData(byte[]
a portion of image data, or null if all data received
data
)

Receives a portion of image data.

protected abstract void
protected abstract String
protected abstract WCImageFrame
getFrame(int
frame index
index
)

Returns image frame at the specified index.

protected abstract boolean
getFrameCompleteStatus(int
frame index
index
)

Returns whether the frame is complete or partial

protected abstract int

Returns:

a number of image frames
getFrameCount
()

Returns a number of frames of the decoded image.

protected abstract int
getFrameDuration(int
frame index
index
)

Returns frame duration in ms

protected abstract int[]
getFrameSize(int
frame index
index
)

Returns frame size, array[0] represents width and array[1] represents height.

protected abstract int[]
getImageSize()

Returns image size.

protected abstract void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WCImageDecoderback to summary
public WCImageDecoder()

Method Detail

addImageDataback to summary
protected abstract void addImageData(byte[] data)

Receives a portion of image data.

Parameters
data:byte[]

a portion of image data, or null if all data received

destroyback to summary
protected abstract void destroy()
getFilenameExtensionback to summary
protected abstract String getFilenameExtension()
getFrameback to summary
protected abstract WCImageFrame getFrame(int index)

Returns image frame at the specified index.

Parameters
index:int

frame index

getFrameCompleteStatusback to summary
protected abstract boolean getFrameCompleteStatus(int index)

Returns whether the frame is complete or partial

Parameters
index:int

frame index

getFrameCountback to summary
protected abstract int getFrameCount()

Returns a number of frames of the decoded image.

Returns:int

a number of image frames

getFrameDurationback to summary
protected abstract int getFrameDuration(int index)

Returns frame duration in ms

Parameters
index:int

frame index

getFrameSizeback to summary
protected abstract int[] getFrameSize(int index)

Returns frame size, array[0] represents width and array[1] represents height.

Parameters
index:int

frame index

getImageSizeback to summary
protected abstract int[] getImageSize()

Returns image size.

loadFromResourceback to summary
protected abstract void loadFromResource(String name)