|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
javax.swing.text.html.BlockView
public class BlockView
CSS 스펙을 사용해, 블록을 박스로서 표시하기 위한 뷰의 구현입니다.
필드의 개요 |
---|
클래스 javax.swing.text. View 로부터 상속된 필드 |
---|
BadBreakWeight , ExcellentBreakWeight , ForcedBreakWeight , GoodBreakWeight , X_AXIS , Y_AXIS |
인터페이스 javax.swing. SwingConstants 로부터 상속된 필드 |
---|
BOTTOM , CENTER , EAST , HORIZONTAL , LEADING , LEFT , NEXT , NORTH , NORTH_EAST , NORTH_WEST , PREVIOUS , RIGHT , SOUTH , SOUTH_EAST , SOUTH_WEST , TOP , TRAILING , VERTICAL , WEST |
생성자 의 개요 | |
---|---|
BlockView (Element elem,
int axis)
HTML 박스를 나타내는 새로운 뷰를 작성합니다. |
메소드의 개요 | |
---|---|
protected SizeRequirements |
calculateMajorAxisRequirements (int axis,
SizeRequirements r)
주축 (타일링의 기준에 있는 축)에 따른 블록의 필요 사이즈를 계산합니다. |
protected SizeRequirements |
calculateMinorAxisRequirements (int axis,
SizeRequirements r)
부축 (타일링 된 축으로 직각의 축)에 따른 블록의 필요 사이즈를 계산합니다. |
void |
changedUpdate (DocumentEvent changes,
Shape a,
ViewFactory f)
이 뷰가 취급하는 위치에서 속성이 변경된 것을 문서로부터 통지합니다. |
float |
getAlignment (int axis)
배치를 가져옵니다. |
AttributeSet |
getAttributes ()
draw 할 경우에 사용하는 속성을 가져옵니다. |
float |
getMaximumSpan (int axis)
이 뷰의 최대 스팬을 축으로 따라 지정합니다. |
float |
getMinimumSpan (int axis)
이 뷰의 최소 스팬을 축으로 따라 지정합니다. |
float |
getPreferredSpan (int axis)
이 뷰에 적절한 스팬을 축으로 따라 지정합니다. |
int |
getResizeWeight (int axis)
사이즈 변경의 웨이트를 가져옵니다. |
protected StyleSheet |
getStyleSheet ()
|
protected void |
layoutMinorAxis (int targetSpan,
int axis,
int[] offsets,
int[] spans)
박스의 부축 (즉, 그것이 나타내는 축으로 직각의 축)을 레이아웃 합니다. |
void |
paint (Graphics g,
Shape allocation)
지정된 draw 표면 및 그 표면상의 영역을 사용해 draw 합니다. |
void |
setParent (View parent)
이 뷰의 친뷰를 확립합니다. |
protected void |
setPropertiesFromAttributes ()
속성에 유래하는 값이 캐쉬에 기입해지고 있으면, 그것을 갱신합니다. |
클래스 javax.swing.text. BoxView 로부터 상속된 메소드 |
---|
baselineLayout , baselineRequirements , childAllocation , flipEastAndWestAtEnds , forwardUpdate , getAxis , getChildAllocation , getHeight , getOffset , getSpan , getViewAtPoint , getWidth , isAfter , isAllocationValid , isBefore , isLayoutValid , layout , layoutChanged , layoutMajorAxis , modelToView , paintChild , preferenceChanged , replace , setAxis , setSize , viewToModel |
클래스 javax.swing.text. CompositeView 로부터 상속된 메소드 |
---|
getBottomInset , getInsideAllocation , getLeftInset , getNextEastWestVisualPositionFrom , getNextNorthSouthVisualPositionFrom , getNextVisualPositionFrom , getRightInset , getTopInset , getView , getViewAtPosition , getViewCount , getViewIndex , getViewIndexAtPosition , loadChildren , modelToView , setInsets , setParagraphInsets |
클래스 javax.swing.text. View 로부터 상속된 메소드 |
---|
append , breakView , createFragment , forwardUpdateToView , getBreakWeight , getContainer , getDocument , getElement , getEndOffset , getGraphics , getParent , getStartOffset , getToolTipText , getViewFactory , getViewIndex , insert , insertUpdate , isVisible , modelToView , remove , removeAll , removeUpdate , updateChildren , updateLayout , viewToModel |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자 의 상세 |
---|
public BlockView(Element elem, int axis)
elem
- 뷰를 작성하는 요소axis
- View.X_AXIS 또는 View.Y_AXIS메소드의 상세 |
---|
public void setParent(View parent)
이 메소드는, 슈퍼 클래스에의 전송을 위해서(때문에) 구현됩니다. 또,setPropertiesFromAttributes()
메소드를 호출해 CSS 속성으로부터 단락 프로퍼티을 설정하기 위해서 구현됩니다. 호출이 이 타이밍에 행해지는 것은, 상위 방향의 모든 친뷰의 속성으로 해결할 수 있는 것을 보증하기 (위해)때문에입니다.
CompositeView
내의 setParent
parent
- 새로운 부모.
뷰가 이전에 추가된 부모로부터
삭제되는 경우는 nullprotected SizeRequirements calculateMajorAxisRequirements(int axis, SizeRequirements r)
BoxView
내의 calculateMajorAxisRequirements
axis
- 조사중의 축r
- SizeRequirements
객체.
null
의 경우, 1 개(살) 작성된다
SizeRequirements
객체SizeRequirements
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r)
BoxView
내의 calculateMinorAxisRequirements
axis
- 조사중의 축r
- SizeRequirements
객체.
null
의 경우, 1 개(살) 작성된다
SizeRequirements
객체SizeRequirements
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
BoxView
내의 layoutMinorAxis
targetSpan
- 뷰로 지정된 스팬의 합계.
아이를 레이아웃 하기 위해서 사용되는axis
- 레이아웃 되는 축offsets
- 각 자 뷰의 뷰의 기점으로부터의 오프셋(offset).
이것은 반환값이며,
이 메소드의 구현에 의해 할당할 수 있는spans
- 각 자 뷰의 스팬.
이것은 반환값이며, 이 메소드의 구현에 의해 할당할 수 있다public void paint(Graphics g, Shape allocation)
BoxView
내의 paint
g
- 사용하는 draw 표면allocation
- draw를 위해서(때문에) 할당할 수 있었던 영역View.paint(java.awt.Graphics, java.awt.Shape)
public AttributeSet getAttributes()
View
내의 getAttributes
public int getResizeWeight(int axis)
BoxView
내의 getResizeWeight
axis
- X_AXIS 또는 Y_AXIS
IllegalArgumentException
- 축이 무효인 경우public float getAlignment(int axis)
BoxView
내의 getAlignment
axis
- X_AXIS 또는 Y_AXIS
public void changedUpdate(DocumentEvent changes, Shape a, ViewFactory f)
View
의 기술:
View
내의 changedUpdate
changes
- 관련하는 문서로부터의 변경 정보a
- 뷰의 현재의 할당f
- 뷰가 아이를 가지는 경우에 재구축에 사용하는 팩토리View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public float getPreferredSpan(int axis)
BoxView
내의 getPreferredSpan
axis
- View.X_AXIS
또는 View.Y_AXIS
IllegalArgumentException
- 축이 무효인 형태View.getPreferredSpan(int)
public float getMinimumSpan(int axis)
BoxView
내의 getMinimumSpan
axis
- View.X_AXIS
또는 View.Y_AXIS
IllegalArgumentException
- 축이 무효인 형태View.getPreferredSpan(int)
public float getMaximumSpan(int axis)
BoxView
내의 getMaximumSpan
axis
- View.X_AXIS
또는 View.Y_AXIS
IllegalArgumentException
- 축이 무효인 형태View.getPreferredSpan(int)
protected void setPropertiesFromAttributes()
protected StyleSheet getStyleSheet()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.