|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjavax.swing.text.View
javax.swing.text.GlyphView
javax.swing.text.LabelView
public class LabelView
LabelView 는, 텍스트 모델의 요소상에 매핑 된 뷰를 나타내는, 텍스트의 서식 첨부 체크입니다. draw에 사용되는 문자 레벨의 속성을 캐쉬에 기입합니다.
| 상자의 클래스의 개요 |
|---|
| 클래스 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 |
| 생성자 의 개요 | |
|---|---|
LabelView (Element elem)
요소에 랩 된 새로운 뷰를 작성합니다. |
|
| 메소드의 개요 | |
|---|---|
void |
changedUpdate (DocumentEvent e,
Shape a,
ViewFactory f)
이 뷰가 취급하는 위치에서 속성이 변경된 것을 문서로부터 통지합니다. |
Color |
getBackground ()
Glyph의 draw에 사용하는 백그라운드 칼라를 가져옵니다. |
Font |
getFont ()
Glyph의 베이스가 되는 폰트를 가져옵니다. |
protected FontMetrics |
getFontMetrics ()
추천 되고 있지 않습니다. FontMetrics 는, JDK 로 실행하는 경우는 Glyph draw에는 사용되지 않습니다. |
Color |
getForeground ()
Glyph의 draw에 사용하는 foreground 칼라를 가져옵니다. |
boolean |
isStrikeThrough ()
Glyph가 취소해 선을 가질까 화도인지를 판정합니다. |
boolean |
isSubscript ()
Glyph를 슈퍼 스크립트로서 draw 할지 어떨지를 결정합니다. |
boolean |
isSuperscript ()
Glyph를 첨자로서 draw 할지 어떨지를 결정합니다. |
boolean |
isUnderline ()
Glyph에 밑줄을 붙일지 어떨지를 판정합니다. |
protected void |
setBackground (Color bg)
뷰의 백그라운드 칼라를 설정합니다. |
protected void |
setPropertiesFromAttributes ()
캐쉬에 기입해진 프로퍼티을 속성으로부터 설정합니다. |
protected void |
setStrikeThrough (boolean s)
뷰에 취소해 선을 붙일지 어떨지를 설정합니다. |
protected void |
setSubscript (boolean s)
뷰가 첨자를 나타낼지 어떨지를 설정합니다. |
protected void |
setSuperscript (boolean s)
뷰가 슈퍼 스크립트를 나타낼지 어떨지를 설정합니다. |
protected void |
setUnderline (boolean u)
뷰에 밑줄을 붙일지 어떨지를 설정합니다. |
| 클래스 javax.swing.text. GlyphView 로부터 상속된 메소드 |
|---|
breakView , checkPainter , clone , createFragment , getAlignment , getBreakWeight , getEndOffset , getGlyphPainter , getNextVisualPositionFrom , getPartialSpan , getPreferredSpan , getStartOffset , getTabbedSpan , getTabExpander , getText , insertUpdate , modelToView , paint , removeUpdate , setGlyphPainter , viewToModel |
| 클래스 javax.swing.text. View 로부터 상속된 메소드 |
|---|
append , forwardUpdate , forwardUpdateToView , getAttributes , 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 LabelView(Element elem)
elem - 요소| 메소드의 상세 |
|---|
protected void setUnderline(boolean u)
u - 뷰에 밑줄이 붙어 있는 경우는 true, 그렇지 않은 경우는
falseisUnderline() protected void setStrikeThrough(boolean s)
s - 뷰에 취소해 선이 있는 경우는 true
그렇지 않은 경우는 falseisStrikeThrough() protected void setSuperscript(boolean s)
s - 뷰가 슈퍼 스크립트를 나타내는 경우는 true,
그렇지 않은 경우는 falseisSuperscript() protected void setSubscript(boolean s)
s - 뷰가 첨자를 나타내는 경우는 true,
그렇지 않은 경우는 falseisSubscript() protected void setBackground(Color bg)
View 의 구성의 일환으로서 불려 갑니다. 백그라운드 칼라를 커스터마이즈 할 필요가 있는 경우는,setPropertiesFromAttributes 를 오버라이드(override) 해, 이 메소드를 호출합니다. 값 null 는, 백그라운드가 draw 되지 않는 것을 나타내기 (위해)때문에, 친 View 의 백그라운드가 비쳐 보이게 됩니다.
bg - 백그라운드 칼라, 또는 nullsetPropertiesFromAttributes() protected void setPropertiesFromAttributes()
@Deprecated protected FontMetrics getFontMetrics()
FontMetrics 을 가져옵니다.
public Color getBackground()
null 가 됩니다.
GlyphView 내의 getBackground public Color getForeground()
null 가 됩니다.
GlyphView 내의 getForeground public Font getFont()
GlyphView 내의 getFont public boolean isUnderline()
이 프로퍼티을 요구할 때,Element 의 AttributeSet 라고 하는 프로퍼티으로,LabelView 상태가 동기 다시 합니다. Element 의 AttributeSet 에 이 프로퍼티 세트가 없는 경우, false 에 되돌려집니다.
GlyphView 내의 isUnderline underline 프로퍼티의 값public boolean isStrikeThrough()
strikeThrough 프로퍼티을 돌려주기 위해서(때문에) 구현됩니다.
이 프로퍼티을 요구할 때,Element 의 AttributeSet 라고 하는 프로퍼티으로,LabelView 상태가 동기 다시 합니다. Element 의 AttributeSet 에 이 프로퍼티 세트가 없는 경우, false 에 되돌려집니다.
GlyphView 내의 isStrikeThrough strikeThrough 프로퍼티의 값public boolean isSubscript()
GlyphView 내의 isSubscript 이 프로퍼티을 요구할 때,Element 의 AttributeSet 라고 하는 프로퍼티으로,LabelView 상태가 동기 다시 합니다. Element 의 AttributeSet 에 이 프로퍼티 세트가 없는 경우, false 에 되돌려집니다.
public boolean isSuperscript()
이 프로퍼티을 요구할 때,Element 의 AttributeSet 라고 하는 프로퍼티으로,LabelView 상태가 동기 다시 합니다. Element 의 AttributeSet 에 이 프로퍼티 세트가 없는 경우, false 에 되돌려집니다.
GlyphView 내의 isSuperscript superscript 프로퍼티의 값
public void changedUpdate(DocumentEvent e,
Shape a,
ViewFactory f)
GlyphView 내의 changedUpdate e - 관련하는 문서로부터의 변경 정보a - 뷰의 현재의 할당f - 뷰가 아이를 가지는 경우에 재구축에 사용하는 팩토리View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.