|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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)
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 |
メソッドの詳細 |
public RenderContext mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image)
i
- ソースイメージのインデックスrenderContext
- 操作に適用される RenderContextparamBlock
- 操作のソースおよびパラメータが格納されている ParameterBlockimage
- 描画される RenderableImagepublic RenderedImage create(RenderContext renderContext, ParameterBlock paramBlock)
renderContext
- 描画を指定する RenderContextparamBlock
- 操作のソースおよびパラメータが格納されている ParameterBlockpublic Rectangle2D getBounds2D(ParameterBlock paramBlock)
paramBlock
- 操作のソースおよびパラメータが格納されている ParameterBlockpublic Object getProperty(ParameterBlock paramBlock, String name)
paramBlock
- 操作のソースおよびパラメータが格納されている ParameterBlockname
- 目的のプロパティを指定する Stringpublic String[] getPropertyNames()
public boolean isDynamic()
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.