|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.swing.text.AsyncBoxView.ChildLocator
public class AsyncBoxView.ChildLocator
局部の周辺で変更が行われているときに、局部での子ビューの効果的な位置を管理するクラスです。AsyncBoxView は連続的に変化できますが、レイアウトスレッドが更新を親に通知することを決定するまで、可視領域は安定した状態で残っている必要があります。
| フィールドの概要 | |
|---|---|
protected Rectangle |
childAlloc
ガベージを多く生成することを避けるために、子の割り当てに使う形状です。 |
protected Rectangle |
lastAlloc
変更が上方にフラッシュされた場合に、最後に見られる再ペイントのための割り当てです。 |
protected AsyncBoxView.ChildState |
lastValidOffset
有効な最後のオフセット計算の位置です。 |
| コンストラクタの概要 | |
|---|---|
AsyncBoxView.ChildLocator()
子のロケータを構築します。 |
|
| メソッドの概要 | |
|---|---|
void |
childChanged(AsyncBoxView.ChildState cs)
子が変更されたという通知です。 |
protected Shape |
getChildAllocation(int index)
子ビューに使用する割り当てを取得します。 |
Shape |
getChildAllocation(int index,
Shape a)
子ビューに使う割り当てを取得します。 |
int |
getViewIndexAtPoint(float x,
float y,
Shape a)
指定されたポイントの子ビューインデックスを取得します。 |
protected int |
getViewIndexAtVisualOffset(float targetOffset)
ボックスへのオフセットを行うビューを、主軸に沿って配置します。 |
void |
paintChildren(Graphics g)
クリップ領域を交差する子をペイントします。 |
protected void |
setAllocation(Shape a)
現在割り当てられている形状を、現在の割り当てを格納するのに使用する矩形にコピーします。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected AsyncBoxView.ChildState lastValidOffset
protected Rectangle lastAlloc
protected Rectangle childAlloc
| コンストラクタの詳細 |
|---|
public AsyncBoxView.ChildLocator()
| メソッドの詳細 |
|---|
public void childChanged(AsyncBoxView.ChildState cs)
public void paintChildren(Graphics g)
public Shape getChildAllocation(int index,
Shape a)
public int getViewIndexAtPoint(float x,
float y,
Shape a)
x - X 座標 >= 0y - Y 座標 >= 0a - View に対する割り当て
protected Shape getChildAllocation(int index)
protected void setAllocation(Shape a)
protected int getViewIndexAtVisualOffset(float targetOffset)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。