public abstract class TextUI extends ComponentUI
| Constructor and Description | 
|---|
| TextUI() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | damageRange(JTextComponent t, int p0, int p1)
              导致部分视图对模型的给定部分负责。 
             | 
| abstract void | damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)
              导致部分视图对模型的给定部分负责。 
             | 
| abstract EditorKit | getEditorKit(JTextComponent t)
              获取为正在编辑的文档类型设置策略的服务的绑定。 
             | 
| abstract int | getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet)
              提供一种方法来确定可能放置插入符号的下一个视觉表示的模型位置。 
             | 
| abstract View | getRootView(JTextComponent t)
              通过分配相关的文本组件获取视图(即 
             | 
| String | getToolTipText(JTextComponent t, Point pt)
              返回要用作传入位置的工具提示的字符串。 
             | 
| abstract Rectangle | modelToView(JTextComponent t, int pos)
              将模型中的给定位置转换为视图坐标系中的一个位置。 
             | 
| abstract Rectangle | modelToView(JTextComponent t, int pos, Position.Bias bias)
              将模型中的给定位置转换为视图坐标系中的一个位置。 
             | 
| abstract int | viewToModel(JTextComponent t, Point pt)
              将视图坐标系中的给定位置转换为模型中最近的代表位置。 
             | 
| abstract int | viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)
              提供从视图坐标空间到模型的逻辑坐标空间的映射。 
             | 
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, updatepublic abstract Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException
pos - 模型中的本地位置翻译> = 0 
           BadLocationException - 如果给定的位置不表示相关文档中的有效位置 
           public abstract Rectangle modelToView(JTextComponent t, int pos, Position.Bias bias) throws BadLocationException
pos - 模型中的本地位置翻译> = 0 
           BadLocationException - 如果给定的位置不表示相关文档中的有效位置 
           public abstract int viewToModel(JTextComponent t, Point pt)
pt - 视图中的位置翻译。 
            这应该在与鼠标事件相同的坐标系统中。 
           public abstract int viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)
pt - 视图中的位置翻译。 
            这应该在与鼠标事件相同的坐标系统中。 
           biasReturn - 用这种方法填写以指示给定的点是否更接近模型中的上一个或下一个字符 
           public abstract int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException
t - 安装此UI的文本组件 
           pos - 转换> = 0的位置 
           b - 位置的偏差 
           direction - 从当前位置的方向,可以被认为是通常在键盘上找到的箭头键。 
            这可能是SwingConstants.WEST,SwingConstants.EAST,SwingConstants.NORTH或SwingConstants.SOUTH 
           biasRet - 用于包含返回位置的偏置的数组 
           BadLocationException 
           IllegalArgumentException - 无效方向 
           public abstract void damageRange(JTextComponent t, int p0, int p1)
p0 - 范围的开始> = 0 
           p1 - 范围的结束> = p0 
           public abstract void damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)
p0 - 范围的开始> = 0 
           p1 - 范围的结束> = p0 
           public abstract EditorKit getEditorKit(JTextComponent t)
public abstract View getRootView(JTextComponent t)
public String getToolTipText(JTextComponent t, Point pt)
JTextComponent.getToolTipText(java.awt.event.MouseEvent) 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.