|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.text.GlyphView.GlyphPainter
public abstract static class GlyphView.GlyphPainter
Glyph의 draw를 실시하는 클래스입니다. draw, 및 모델과 뷰의 변환을 재빠르게 실시하기 위해서(때문에), 상태없이, 혹은 정보를 캐쉬로서 보관 유지하도록(듯이), 이 메소드를 구현할 수가 있습니다. 적어도, GlyphPainter 는 View 구현이 JVM 의 특정의 버젼이나 기능의 선택 (즉 i18n 의 형상등) (와)는 관계없는 것으로 작업할 수 있도록(듯이) 합니다.
생성자 의 개요 | |
---|---|
GlyphView.GlyphPainter ()
|
메소드의 개요 | |
---|---|
abstract float |
getAscent (GlyphView v)
|
abstract int |
getBoundedPosition (GlyphView v,
int p0,
float x,
float len)
지정된 스팬내에 적합하는 최대 유효폭을 나타내는 모델 위치를 결정합니다. |
abstract float |
getDescent (GlyphView v)
|
abstract float |
getHeight (GlyphView v)
|
int |
getNextVisualPositionFrom (GlyphView v,
int pos,
Position.Bias b,
Shape a,
int direction,
Position.Bias [] biasRet)
caret가 배치될 가능성이 있는, 시각적으로 나타내진 다음의 모델 위치를 결정하는 수단을 제공합니다. |
GlyphView.GlyphPainter |
getPainter (GlyphView v,
int p0,
int p1)
지정된 GlyphView 용의 페인타를 작성합니다. |
abstract float |
getSpan (GlyphView v,
int p0,
int p1,
TabExpander e,
float x)
탭 전개의 개시 위치의 지정을 받아, Glyph의 스팬을 결정합니다. |
abstract Shape |
modelToView (GlyphView v,
int pos,
Position.Bias bias,
Shape a)
문서 모델의 좌표 공간으로부터 뷰의 좌표 공간에의 매핑을 제공합니다. |
abstract void |
paint (GlyphView v,
Graphics g,
Shape a,
int p0,
int p1)
지정된 범위를 나타내는 Glyph를 그립니다. |
abstract int |
viewToModel (GlyphView v,
float x,
float y,
Shape a,
Position.Bias [] biasReturn)
뷰의 좌표 공간으로부터 모델의 논리 좌표 공간에의 매핑을 제공합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자 의 상세 |
---|
public GlyphView.GlyphPainter()
메소드의 상세 |
---|
public abstract float getSpan(GlyphView v, int p0, int p1, TabExpander e, float x)
public abstract float getHeight(GlyphView v)
public abstract float getAscent(GlyphView v)
public abstract float getDescent(GlyphView v)
public abstract void paint(GlyphView v, Graphics g, Shape a, int p0, int p1)
public abstract Shape modelToView(GlyphView v, int pos, Position.Bias bias, Shape a) throws BadLocationException
v
- 매핑처의 좌표 공간을 포함한다
GlyphView
pos
- 변환 대상의 위치bias
- Position.Bias.Forward
또는
Position.Bias.Backward
a
- View 의 Bounds
BadLocationException
- 지정된 위치가, 관련지을 수 있었던 문서내의
유효한 위치를 나타내지 않는 경우View.modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)
public abstract int viewToModel(GlyphView v, float x, float y, Shape a, Position.Bias [] biasReturn)
v
- 매핑의 대상이 되는 GlyphView
x
- X 좌표y
- Y 좌표a
- draw를 위해서(때문에) 할당할 수 있었던 영역biasReturn
- 이 배열의 0 번째의 요소로서Position.Bias.Forward
또는
Position.Bias.Backward
하지만 반환된다
View.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])
public abstract int getBoundedPosition(GlyphView v, int p0, float x, float len)
v
- 분할하는 모델 위치를 찾아내는 뷰p0
- fragment의 표시를 개시하는 모델내의 위치.
0 이상x
- 분할된 뷰가 차지하는 축으로 따른 그래픽 위치.
0 이상. 이것은 탭의 계산등으로
편리한 경우가 있는len
- 분할이 필요한 뷰에의 거리.
0 이상
View.breakView(int, int, float, float)
public GlyphView.GlyphPainter getPainter(GlyphView v, int p0, int p1)
v
- 페인타의 작성의 대상이 되는 GlyphView
p0
- 문서의 개시 오프셋(offset) >= 0p1
- 문서의 종료 오프셋(offset) >= p0public int getNextVisualPositionFrom(GlyphView v, int pos, Position.Bias b, Shape a, int direction, Position.Bias [] biasRet) throws BadLocationException
v
- 사용하는 뷰pos
- 변환 대상의 위치 >>= 0b
- Position.Bias.Forward
또는
Position.Bias.Backward
a
- draw를 위해서(때문에) 할당할 수 있었던 영역direction
- 현재 위치로부터의 방향.
이것은, 키보드에 일반적으로 존재하는 커서 키라고 볼 수가 있어
SwingConstants.WEST, SwingConstants.EAST,
SwingConstants.NORTH, 또는 SwingConstants.SOUTH 가 되는biasRet
- Position.Bias.Forward
또는
Position.Bias.Backward
하지만, 이 배열의 0 번째의 요소로서 반환된다
BadLocationException
IllegalArgumentException
- 방향이 무효인 경우
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.