|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--javax.swing.text.GlyphView.GlyphPainter
글리프(glyph)의 표현를 실시하는 클래스입니다. 표현, 및 모델과 뷰의 변환을 재빠르게 실시하기 위해서(때문에), 상태없이, 혹은 정보를 캐쉬로서 보관 유지하도록(듯이), 이 메소드를 구현할 수가 있습니다. 적어도, 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)를 paint 합니다. |
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
pos
- 변환 대상의 위치a
- 표현를 위해서(때문에) 할당할 수 있었던 area
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)
x
- X 좌표y
- Y 좌표a
- 표현를 위해서(때문에) 할당할 수 있었던 area
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의 표시를 개시하는 모델내의 위치 >= 0len
- 분할이 바람직하는 뷰에의 거리 >= 0
View.breakView(int, int, float, float)
public GlyphView.GlyphPainter getPainter(GlyphView v, int p0, int p1)
public int getNextVisualPositionFrom(GlyphView v, int pos, Position.Bias b, Shape a, int direction, Position.Bias [] biasRet) throws BadLocationException
v
- 사용하는 뷰pos
- 변환 대상의 위치 >= 0a
- 표현를 위해서(때문에) 할당할 수 있었던 areadirection
- 키보드상에 통상 있는 커서 키라고 볼 수가 있는 현재의 위치로부터의 방향. SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, 또는 SwingConstants.SOUTH
BadLocationException
IllegalArgumentException
- 방향이 무효인 경우
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
Java, Java 2 D, 및 JDBC 는 미국 및 그 외의 나라에 있어서의 미국 Sun Microsystems, Inc. 의 상표 혹은 등록상표입니다.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.