インタフェースjava.awt.Paint
の使用
パッケージ | 説明 |
---|---|
java.awt |
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
|
javax.swing |
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
|
javax.swing.border |
Swingコンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。
|
javax.swing.plaf |
SwingがプラガブルなLook & Feel機能を提供するために使用する、1つのインタフェースおよび多くの抽象クラスを提供します。
|
-
java.awtでのPaintの使用
Paintを実装するjava.awtのクラス 修飾子と型 クラス 説明 class
Color
Color
クラスは、デフォルトのsRGBカラー・スペース内の色、またはColorSpace
で識別される任意のカラー・スペース内の色をカプセル化するために使用されます。class
GradientPaint
GradientPaint
クラスは、Shape
をカラーの線形グラデーション・パターンで塗りつぶす方法を提供します。class
LinearGradientPaint
LinearGradientPaint
クラスは、Shape
をカラーの線形グラデーション・パターンで塗りつぶす方法を提供します。class
MultipleGradientPaint
ラスターで塗りつぶすために複数色のグラデーションを使用するPaintsのスーパー・クラスです。class
RadialGradientPaint
RadialGradientPaint
クラスは、Shapeを色の円放射状グラデーション・パターンで塗りつぶす方法を提供します。class
SystemColor
システムのネイティブなGUIオブジェクトの色を表すシンボリック・カラーをカプセル化するクラスです。class
TexturePaint
TexturePaint
クラスは、Shape
をBufferedImage
として指定されたテクスチャで塗りつぶす方法を提供します。 -
javax.swingでのPaintの使用
Paint型のパラメータを持つjavax.swingのメソッド 修飾子と型 メソッド 説明 static Border
BorderFactory. createDashedBorder(Paint paint)
指定されたpaint
のdashedボーダーを作成します。static Border
BorderFactory. createDashedBorder(Paint paint, float length, float spacing)
指定されたpaint
、相対的なlength
、および相対的なspacing
のdashedボーダーを作成します。static Border
BorderFactory. createDashedBorder(Paint paint, float thickness, float length, float spacing, boolean rounded)
指定されたpaint
、thickness
、線形、相対的なlength
、および相対的なspacing
のdashedボーダーを作成します。static Border
BorderFactory. createStrokeBorder(BasicStroke stroke, Paint paint)
指定されたstroke
とpaint
のボーダーを作成します。 -
javax.swing.borderでのPaintの使用
Paintを返すjavax.swing.borderのメソッド 修飾子と型 メソッド 説明 Paint
StrokeBorder. getPaint()
ボーダーの描画中に色を生成するために使われるPaint
オブジェクトを返します。Paint型のパラメータを持つjavax.swing.borderのコンストラクタ コンストラクタ 説明 StrokeBorder(BasicStroke stroke, Paint paint)
指定されたstroke
とpaint
のボーダーを作成します。 -
javax.swing.plafでのPaintの使用
Paintを実装するjavax.swing.plafのクラス 修飾子と型 クラス 説明 class
ColorUIResource
UIResourceを実装するColorのサブクラスです。