|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.awt.TexturePaint
public class TexturePaint
TexturePaint クラスは、BufferedImage として指定されるテクスチャーで Shape を塗りつぶす手段を提供します。TexturePaint オブジェクトによって BufferedImage データがコピーされるので、BufferedImage オブジェクトのサイズは小さくしておく必要があります。テクスチャーは、作成時にユーザー空間で指定される Rectangle2D の左上隅にアンカー設定されます。テクスチャーのデバイス空間での位置は、指定された Rectangle2D を、ユーザー空間ですべての方向に無限に複製し、複製された各 Rectangle2D に BufferedImage をマッピングすることにより、計算されます。
Paint,
Graphics2D.setPaint(java.awt.Paint)| フィールドの概要 |
|---|
| インタフェース java.awt.Transparency から継承されたフィールド |
|---|
BITMASK, OPAQUE, TRANSLUCENT |
| コンストラクタの概要 | |
|---|---|
TexturePaint(BufferedImage txtr,
Rectangle2D anchor)
TexturePaint オブジェクトを構築します。 |
|
| メソッドの概要 | |
|---|---|
PaintContext |
createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
カラーパターンを生成するために使用されるコンテキストを作成して返します。 |
Rectangle2D |
getAnchorRect()
テクスチャーイメージの位置とサイズを指定するアンカー矩形のコピーを返します。 |
BufferedImage |
getImage()
図形を塗りつぶすために使用される BufferedImage テクスチャーを返します。 |
int |
getTransparency()
この TexturePaint の透明度モードを返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public TexturePaint(BufferedImage txtr,
Rectangle2D anchor)
TexturePaint オブジェクトを構築します。
txtr - ペイントに使用するテクスチャーを持つ BufferedImage オブジェクトanchor - テクスチャーのアンカー設定および複製に使用されるユーザー空間内の Rectangle2D| メソッドの詳細 |
|---|
public BufferedImage getImage()
BufferedImage テクスチャーを返します。
BufferedImagepublic Rectangle2D getAnchorRect()
TexturePaint のアンカー設定およびサイズ指定を行うために使用される Rectangle2D
public PaintContext createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Paint 内の createContextcm - Paint データを受け取る ColorModel。これは単にヒントとして使用されるdeviceBounds - 描画されるグラフィックスプリミティブのデバイス空間でのバウンディングボックスuserBounds - 描画されるグラフィックスプリミティブのユーザー空間でのバウンディングボックスxform - ユーザー空間からデバイス空間への AffineTransformhints - パターンの最終的な描画方法を指定するために使用できる RenderingHints オブジェクト
PaintContextPaintContextpublic int getTransparency()
TexturePaint の透明度モードを返します。
Transparency 内の getTransparencyTexturePaint の透明度モード (int 値)Transparency
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。