|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.text.View
javax.swing.text.GlyphView
javax.swing.text.LabelView
javax.swing.text.html.InlineView
public class InlineView
CSS 속성에 근거해 「인 라인 요소」스타일을 표시합니다.
상자의 클래스의 개요 |
---|
클래스 javax.swing.text. GlyphView 로부터 상속된 상자의 클래스/인터페이스 |
---|
GlyphView.GlyphPainter |
필드의 개요 |
---|
클래스 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 |
생성자 의 개요 | |
---|---|
InlineView (Element elem)
요소에 랩 된 새로운 뷰를 작성합니다. |
메소드의 개요 | |
---|---|
View |
breakView (int axis,
int offset,
float pos,
float len)
지정된 축으로 이 뷰의 분할을 시도합니다. |
void |
changedUpdate (DocumentEvent e,
Shape a,
ViewFactory f)
이 뷰가 취급하는 위치에서 속성이 변경된 것을 문서로부터 통지합니다. |
AttributeSet |
getAttributes ()
draw 할 경우에 사용하는 속성을 가져옵니다. |
int |
getBreakWeight (int axis,
float pos,
float len)
이 뷰로 분할의 웨이트가 어느 정도 적절한가를 나타냅니다. |
protected StyleSheet |
getStyleSheet ()
|
void |
insertUpdate (DocumentEvent e,
Shape a,
ViewFactory f)
이 뷰가 취급하는 위치에서 문서에 무엇인가가 삽입된 것을 통지합니다. |
void |
removeUpdate (DocumentEvent e,
Shape a,
ViewFactory f)
이 뷰가 취급하는 문서내의 위치로부터 무엇인가가 삭제되었다고 하는 것을 통지합니다. |
protected void |
setPropertiesFromAttributes ()
속성으로부터, 캐쉬에 기입해지는 프로퍼티을 설정합니다. |
클래스 javax.swing.text. LabelView 로부터 상속된 메소드 |
---|
getBackground , getFont , getFontMetrics , getForeground , isStrikeThrough , isSubscript , isSuperscript , isUnderline , setBackground , setStrikeThrough , setSubscript , setSuperscript , setUnderline |
클래스 javax.swing.text. GlyphView 로부터 상속된 메소드 |
---|
checkPainter , clone , createFragment , getAlignment , getEndOffset , getGlyphPainter , getNextVisualPositionFrom , getPartialSpan , getPreferredSpan , getStartOffset , getTabbedSpan , getTabExpander , getText , modelToView , paint , setGlyphPainter , viewToModel |
클래스 javax.swing.text. View 로부터 상속된 메소드 |
---|
append , forwardUpdate , forwardUpdateToView , getChildAllocation , getContainer , getDocument , getElement , getGraphics , getMaximumSpan , getMinimumSpan , getParent , getResizeWeight , getToolTipText , getView , getViewCount , getViewFactory , getViewIndex , getViewIndex , insert , isVisible , modelToView , modelToView , preferenceChanged , remove , removeAll , replace , setParent , setSize , updateChildren , updateLayout , viewToModel |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
인터페이스 javax.swing.text. TabableView 로부터 상속된 메소드 |
---|
getPartialSpan , getTabbedSpan |
생성자 의 상세 |
---|
public InlineView(Element elem)
elem
- 요소메소드의 상세 |
---|
public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
null
의 경우, 이 메소드의 동작은 구현에 의존합니다.
GlyphView
내의 insertUpdate
e
- 관련하는 문서로부터의 변경 정보a
- 뷰의 현재의 할당f
- 뷰가 아이를 가지는 경우에 재구축에 사용하는 팩토리View.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
null
의 경우, 이 메소드의 동작은 구현에 의존합니다.
GlyphView
내의 removeUpdate
e
- 관련하는 문서로부터의 변경 정보a
- 뷰의 현재의 할당f
- 뷰가 아이를 가지는 경우에 재구축에 사용하는 팩토리View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
LabelView
내의 changedUpdate
e
- 관련하는 문서로부터의 변경 정보a
- 뷰의 현재의 할당f
- 뷰가 아이를 가지는 경우에 재구축에 사용하는 팩토리View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
public AttributeSet getAttributes()
View
내의 getAttributes
public int getBreakWeight(int axis, float pos, float len)
breakView
를 호출하는 가장 적절한 뷰를 판단하기 위해서(때문에) 사용할 수 있습니다. 예를 들어, margin를 포함한 텍스트를 나타내는 뷰는, margin를 포함하지 않는 뷰보다 적절합니다. 웨이트가 높을 정도(수록), 분할에는 보다 적절합니다. BadBreakWeight
이하의 값은, 분할해야 하지는 않습니다. ForcedBreakWeight
이상의 값은, 분할하지 않으면 안됩니다.
이 메소드는, 길이가 뷰의 길이보다 긴 경우 (뷰 전체가 fragment를 나타낸다)를 제외해 BadBreakWeight
를 돌려주는 디폴트의 동작을 제공합니다. 뷰가 분할 동작을 지원하도록(듯이) 기술되어 있지 않은 한, 뷰를 분할하려고 하는 것은 적절하지는 않습니다. 분할을 지원하는 뷰에는 LabelView
등이 있습니다. 분할 웨이트를 사용하는 뷰에는 ParagraphView
등이 있습니다.
GlyphView
내의 getBreakWeight
axis
- View.X_AXIS 또는 View.Y_AXISpos
- 분할된 뷰의 개시의 가능성이 있는 위치.
0 이상. 이것은 탭 위치의 계산에 편리한
경우가 있는len
- 분할이 바람직하는 pos 로부터의 상대적인 길이를 지정한다.
0 이상
LabelView
,
ParagraphView
,
View.BadBreakWeight
,
View.GoodBreakWeight
,
View.ExcellentBreakWeight
,
View.ForcedBreakWeight
public View breakView(int axis, int offset, float pos, float len)
View.breakView(int, int, float, float)
를 참조해 주세요.
이 메소드의 동작은 axis
가 View.X_AXIS
도 View.Y_AXIS
도 아니었던 경우,offset
,pos
, len
가 null 의 경우를 위해서(때문에) 지정되고 있지 않습니다.
GlyphView
내의 breakView
axis
- View.X_AXIS
또는 View.Y_AXIS
offset
- 분할된 fragment가 차지하는 문서 모델내의 위치.
0 이상.
이것은 반환되는 fragment의
개시 오프셋(offset)가 되는pos
- 분할된 뷰가 차지하는 축으로 따른 위치.
0 이상. 이것은 탭의 계산등으로
편리한 경우가 있는len
- 분할이 필요한 축으로 따른 거리.
0 이상
View.breakView(int, int, float, float)
protected void setPropertiesFromAttributes()
LabelView
내의 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 도 참조해 주세요.