|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface ContextualRenderedImageFactory
ContextualRenderedImageFactory は、RenderableImageOp のインスタンス間で異なる機能のためのインタフェースを提供します。これにより、RenderableImage に対するさまざまな操作は、複数の ContextualRenderedImageFactory のインスタンスを使用して RenderedImageOp などの単一のクラスによって実行できるようになります。ContextualRenderedImageFactory は「CRIF」と略されます。
描画に依存しないチェーンで使用されるすべての操作は、ContextualRenderedImageFactory を実装する必要があります。
このインタフェースを実装するクラスは、引数なしのコンストラクタを提供する必要があります。
| メソッドの概要 | |
|---|---|
RenderedImage |
create(RenderContext renderContext,
ParameterBlock paramBlock)
RenderContext と、操作のソースとパラメータが格納されている ParameterBlock を指定して、描画を作成します。 |
Rectangle2D |
getBounds2D(ParameterBlock paramBlock)
描画に依存しないスペースでの、指定されたソースのセットに対して実行される操作の出力のためのバウンディングボックスを返します。 |
Object |
getProperty(ParameterBlock paramBlock,
String name)
名前パラメータで指定されたプロパティーの対応するインスタンスを返します。 |
String[] |
getPropertyNames()
getProperty によって認識される名前のリストを返します。 |
boolean |
isDynamic()
同じ引数を使って行なった連続した描画 (つまり、create(RenderContext, ParameterBlock) の呼び出し) の結果が異なる場合に true を返します。 |
RenderContext |
mapRenderContext(int i,
RenderContext renderContext,
ParameterBlock paramBlock,
RenderableImage image)
操作の出力 RenderContext を、各操作のソースの RenderContext にマッピングします。 |
| インタフェース java.awt.image.renderable.RenderedImageFactory から継承されたメソッド |
|---|
create |
| メソッドの詳細 |
|---|
RenderContext mapRenderContext(int i,
RenderContext renderContext,
ParameterBlock paramBlock,
RenderableImage image)
i - ソースイメージのインデックスrenderContext - 操作に適用される RenderContextparamBlock - 操作のソースおよびパラメータが格納されている ParameterBlockimage - 描画される RenderableImage
RenderContext
RenderedImage create(RenderContext renderContext,
ParameterBlock paramBlock)
renderContext - 描画を指定する RenderContextparamBlock - 操作のソースおよびパラメータが格納されている ParameterBlock
RenderedImageRectangle2D getBounds2D(ParameterBlock paramBlock)
paramBlock - 操作のソースおよびパラメータが格納されている ParameterBlock
Object getProperty(ParameterBlock paramBlock,
String name)
paramBlock - 操作のソースおよびパラメータが格納されている ParameterBlockname - 目的のプロパティーを指定する String
String[] getPropertyNames()
boolean isDynamic()
true、そうでない場合は false
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。