| |
|
| javax.media.jai.TileRequest
All known Subclasses: com.sun.media.jai.util.Request,
TileRequest | public interface TileRequest (Code) | | Interface representing a TileScheduler request to compute
a specific set of tiles for a given image with optional monitoring by
TileComputationListener s.
See Also: TileScheduler See Also: TileComputationListener See Also: RenderedOp See Also: OpImage since: JAI 1.1 |
Field Summary | |
final public static int | TILE_STATUS_CANCELLED Status value indicating that the tile computation has been cancelled. | final public static int | TILE_STATUS_COMPUTED Status value indicating that the tile has been computed successfully. | final public static int | TILE_STATUS_FAILED Status value indicating that the tile computation failed. | final public static int | TILE_STATUS_PENDING Status value indicating that the tile has yet to be processed. | final public static int | TILE_STATUS_PROCESSING Status value indicating that the tile has is being processed. |
Method Summary | |
void | cancelTiles(Point[] tileIndices) Issues a request to the TileScheduler which generated
this TileRequest to cancel all tiles in the supplied
parameter array which are associated with this request. | PlanarImage | getImage() Returns the image associated with the request. | Point[] | getTileIndices() Returns the tile indices of all tiles associated with the request. | TileComputationListener[] | getTileListeners() Returns the array of TileComputationListener s specified as
monitoring the request. | int | getTileStatus(int tileX, int tileY) Returns one of the TILE_STATUS_* constants defined in
this interface to indicate the status of the specified tile (optional
operation). | boolean | isStatusAvailable() Whether this TileRequest implementation supports the
getTileStatus() method. |
TILE_STATUS_CANCELLED | final public static int TILE_STATUS_CANCELLED(Code) | | Status value indicating that the tile computation has been cancelled.
|
TILE_STATUS_COMPUTED | final public static int TILE_STATUS_COMPUTED(Code) | | Status value indicating that the tile has been computed successfully.
|
TILE_STATUS_FAILED | final public static int TILE_STATUS_FAILED(Code) | | Status value indicating that the tile computation failed.
|
TILE_STATUS_PENDING | final public static int TILE_STATUS_PENDING(Code) | | Status value indicating that the tile has yet to be processed.
|
TILE_STATUS_PROCESSING | final public static int TILE_STATUS_PROCESSING(Code) | | Status value indicating that the tile has is being processed.
|
cancelTiles | void cancelTiles(Point[] tileIndices)(Code) | | Issues a request to the TileScheduler which generated
this TileRequest to cancel all tiles in the supplied
parameter array which are associated with this request. Any tiles
in the array which are not associated with this request will be
ignored. If the parameter is null a request to cancel
all tiles in the request will be issued. This method should merely
be a convenience wrapper around the cancelTiles()
method of the TileScheduler which created the
TileRequest .
|
getImage | PlanarImage getImage()(Code) | | Returns the image associated with the request. This is the image
which is actually specified to the TileScheduler . For
most PlanarImage s (including OpImage s)
this will be the image on which queueTiles() was
invoked; for RenderedOp nodes this will be the rendering
of the node.
|
getTileIndices | Point[] getTileIndices()(Code) | | Returns the tile indices of all tiles associated with the request.
|
getTileListeners | TileComputationListener[] getTileListeners()(Code) | | Returns the array of TileComputationListener s specified as
monitoring the request. The returned value should be null
if there are no such listeners.
|
getTileStatus | int getTileStatus(int tileX, int tileY)(Code) | | Returns one of the TILE_STATUS_* constants defined in
this interface to indicate the status of the specified tile (optional
operation). Implementations for which status is available, i.e.,
for which isStatusAvailable() returns true ,
may but are not required to support all status levels defined by
this interface. The status levels must however be a subset of those
herein defined.
Parameters: tileX - The X index of the tile in the tile array. Parameters: tileY - The Y index of the tile in the tile array. exception: UnsupportedOperationException - ifisStatusAvailable() returns false . exception: IllegalArgumentException - if the specified tile is notassociated with this request. |
isStatusAvailable | boolean isStatusAvailable()(Code) | | Whether this TileRequest implementation supports the
getTileStatus() method.
|
|
|
|