|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Object javax.swing.text.AsyncBoxView.ChildLocator
public class AsyncBoxView.ChildLocator
국부의 주변에서 변경을 하고 있을 때, 국부에서의 아이 뷰의 효과적인 위치를 관리하는 클래스입니다. AsyncBoxView 는 연속적으로 변화할 수 있습니다만, 레이아웃 thread가 갱신을 부모에게 통지하는 것을 결정할 때까지, 가시 영역은 안정된 상태로 남아 있을 필요가 있습니다.
필드의 개요 | |
---|---|
protected Rectangle |
childAlloc
가베지를 많이 생성하는 것을 피하기 위해서(때문에), 아이의 할당에 사용하는 형상입니다. |
protected Rectangle |
lastAlloc
변경이 윗쪽에 플래시 되었을 경우에, 마지막에 볼 수 있는 재페인트를 위한 할당입니다. |
protected AsyncBoxView.ChildState |
lastValidOffset
유효한 마지막 오프셋(offset) 계산의 위치입니다. |
생성자 의 개요 | |
---|---|
AsyncBoxView.ChildLocator ()
아이의 locator를 구축합니다. |
메소드의 개요 | |
---|---|
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)
박스에의 오프셋(offset)를 실시하는 뷰를, 주축에 따라 배치합니다. |
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 도 참조해 주세요.