| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface PaintContext
PaintContext インタフェースは、Graphics2D での塗りつぶし操作用またはストローク操作用としてデバイス空間でカラーパターンを生成するための、カプセル化および最適化した環境を定義します。PaintContext は、ColorModel に関連した Raster の形式で、Graphics2D 操作に必要な色を提供します。PaintContext は、特定のペイント操作の状態を維持します。マルチスレッド環境では、1 つの Paint オブジェクトに対して同時に複数のコンテキストが存在する場合があります。
Paint| メソッドの概要 | |
|---|---|
|  void | dispose()操作に割り当てられているリソースを解放します。 | 
|  ColorModel | getColorModel()出力の ColorModelを返します。 | 
|  Raster | getRaster(int x,
          int y,
          int w,
          int h)グラフィックス操作用に生成された色を格納する Rasterを返します。 | 
| メソッドの詳細 | 
|---|
void dispose()
ColorModel getColorModel()
ColorModel を返します。この ColorModel は、Paint の createContext メソッドで指定されたヒントとは異なる場合があります。すべての PaintContext オブジェクトが任意の ColorModel でカラーパターンを生成できるわけではありません。
ColorModel
Raster getRaster(int x,
                 int y,
                 int w,
                 int h)
Raster を返します。
x - 色が生成される、デバイス空間での領域の x 座標y - 色が生成される、デバイス空間での領域の y 座標w - デバイス空間での領域の幅h - デバイス空間での領域の高さ
Raster| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。