|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.text.FlowView.FlowStrategy
public static class FlowView.FlowStrategy
플로우의 물리적인 폼을 유지하기 위한 방법입니다. 디폴트의 구현에는 상태가 전혀 없고, 레이아웃이 지정된 FlowView 중(안)에서 무효인 경우는 전플로우를 재계산합니다. 하나 더의 방법은, 서브 클래스에서 구현해, 레이아웃을 추가 수복하든가 또는 대체의 브레이크 동작을 실행하는 방법입니다.
생성자 의 개요 | |
---|---|
FlowView.FlowStrategy ()
|
메소드의 개요 | |
---|---|
protected void |
adjustRow (FlowView fv,
int rowIndex,
int desiredSpan,
int x)
지정된 행을 가능하면 조정해, 배치 스팬내에 넣도록(듯이) 합니다. |
void |
changedUpdate (FlowView fv,
DocumentEvent e,
Rectangle alloc)
이 뷰가 취급하는 위치에서 속성이 변경된 것을 문서로부터 통지합니다. |
protected View |
createView (FlowView fv,
int startOffset,
int spanLeft,
int rowIndex)
현재의 플로우의 일부를 나타내기 위해서(때문에) 사용할 수 있는 뷰를 작성합니다. |
protected View |
getLogicalView (FlowView fv)
이 메소드는 FlowView 의 논리 뷰에의 플로우를 나타냅니다. |
void |
insertUpdate (FlowView fv,
DocumentEvent e,
Rectangle alloc)
이 뷰가 담당하는 위치에서 문서에 무엇인가가 삽입된 것을 통지합니다. |
void |
layout (FlowView fv)
지정된 FlowView 의 플로우를 갱신합니다. |
protected int |
layoutRow (FlowView fv,
int rowIndex,
int pos)
행의 배치 스팬 속에 안정되는 뷰의 행을 작성합니다. |
void |
removeUpdate (FlowView fv,
DocumentEvent e,
Rectangle alloc)
이 뷰가 담당하는 문서내의 위치로부터 무엇인가가 삭제되었다고 하는 것을 통지합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자 의 상세 |
---|
public FlowView.FlowStrategy()
메소드의 상세 |
---|
public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
e
- 관련하는 문서로부터의 변경 정보alloc
- 인 세트의 안쪽의 뷰의 현재의 할당
뷰가 표시되어 있지 않은 경우, 반환값은 nullView.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
e
- 관련하는 문서로부터의 변경 정보alloc
- 인 세트의 안쪽의 뷰의 현재의 할당View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
fv
- 변경을 포함한 FlowView
e
- 문서로 변경이 더해진 것을 설명한다
DocumentEvent
alloc
- View 의 BoundsView.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
protected View getLogicalView(FlowView fv)
public void layout(FlowView fv)
fv
- 재플로우 하는 뷰protected int layoutRow(FlowView fv, int rowIndex, int pos)
rowIndex
- 뷰를 거두는 행의 인덱스. 행은 입구에서는 빈 상태(empty)과
보여지는pos
- 이 뷰 요소의
아이안의 현재의 개시 위치
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x)
rowIndex
- 현재의 배치 스팬에
조정되는 행desiredSpan
- 현재의 배치 스팬 >= 0x
- r 의 개시 위치protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex)
fv
- 플로우를 보관 유지하는 뷰startOffset
- 작성되는 뷰의 개시 위치spanLeft
- 행에 삽입되는 나머지의 스팬rowIndex
- 뷰의 배치처의 행
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.