|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjavax.swing.text.LayeredHighlighter.LayerPainter
javax.swing.text.DefaultHighlighter.DefaultHighlightPainter
public static class DefaultHighlighter.DefaultHighlightPainter
하이라이트 영역을 솔리드 칼라로 전부 칠하는 간단한 하이라이트페인타입니다.
| 생성자 의 개요 | |
|---|---|
DefaultHighlighter.DefaultHighlightPainter (Color c)
새로운 하이라이트페인타를 구축합니다. |
|
| 메소드의 개요 | |
|---|---|
Color |
getColor ()
하이라이트에 사용하는 색을 돌려줍니다. |
void |
paint (Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c)
하이라이트를 그립니다. |
Shape |
paintLayer (Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c,
View view)
하이라이트의 일부분을 그립니다. |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 생성자 의 상세 |
|---|
public DefaultHighlighter.DefaultHighlightPainter(Color c)
c 가 null 의 경우, JTextComponent 에 선택 부분의 색을 문의합니다.
c - 하이라이트에 사용하는 색| 메소드의 상세 |
|---|
public Color getColor()
public void paint(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c)
g - 그래픽스 문맥offs0 - 모델의 개시 위치를 나타내는 오프셋(offset)치 >= 0offs1 - 모델의 종료 위치를 나타내는 오프셋(offset)치 >= offs1bounds - 하이라이트의 바운딩 박스c - 에디터
public Shape paintLayer(Graphics g,
int offs0,
int offs1,
Shape bounds,
JTextComponent c,
View view)
LayeredHighlighter.LayerPainter 내의 paintLayer g - 그래픽스 문맥offs0 - 모델의 개시 위치를 나타내는 오프셋(offset)치 >= 0offs1 - 모델의 종료 위치를 나타내는 오프셋(offset)치 >= offs1bounds - 뷰의 바운딩 박스.
페인트 하는 영역이라고는 할 수 없는c - 에디터view - 페인트 대상의 View
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.