|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.plaf.synth.SynthContext
public class SynthContext
Region に関するコンテキスト依存の情報を含む不変の一時オブジェクトです。SynthContext が渡されたメソッドが呼び出されている間だけ、SynthContext が有効と見なされます。つまり、ユーザに渡された SynthContext をキャッシュに入れなくても、有効な状態が続くものと考えてください。
| コンストラクタの概要 | |
|---|---|
SynthContext(JComponent component,
Region region,
SynthStyle style,
int state)
指定された値を使って SynthContext を作成します。 |
|
| メソッドの概要 | |
|---|---|
JComponent |
getComponent()
この領域を含む収容側コンポーネントを返します。 |
int |
getComponentState()
SynthConstants で定義された値のビットマスクである、ウィジェットの状態を返します。 |
Region |
getRegion()
この状態を識別する Region を返します。 |
SynthStyle |
getStyle()
この Region に関連付けられたスタイルを返します。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public SynthContext(JComponent component,
Region region,
SynthStyle style,
int state)
component - JComponentregion - JComponent の部分を識別するstyle - コンポーネントに関連付けられたスタイルstate - SynthConstants で定義されたコンポーネントの状態
NullPointerException - コンポーネント、領域、またはスタイルが null の場合| メソッドの詳細 |
|---|
public JComponent getComponent()
public Region getRegion()
public SynthStyle getStyle()
public int getComponentState()
SynthConstants で定義された値のビットマスクである、ウィジェットの状態を返します。領域は、少なくとも ENABLED、MOUSE_OVER、PRESSED、または DISABLED のいずれかになります。
SynthConstants
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。