所有类


javax.swing.plaf.multi
类 MultiTextUI

java.lang.Object
  继承者 javax.swing.plaf.ComponentUI
      继承者 javax.swing.plaf.TextUI
          继承者 javax.swing.plaf.multi.MultiTextUI

public class MultiTextUI
   
   
   
   
extends TextUI

用于组合 TextUI 的多路 UI。

此文件由 AutoMulti 自动生成。


字段摘要
protected  Vectoruis
          包含实际 UI 的向量。
 
构造方法摘要
MultiTextUI()
           
 
方法摘要
 booleancontains(JComponent a, int b, int c)
          在由此对象处理的每个 UI 上调用 contains 方法。
static ComponentUIcreateUI(JComponent a)
          如果任意辅助 LookAndFeel 都支持此 UI,则返回一个多路 UI 实例。
 voiddamageRange(JTextComponent a, int b, int c)
          在由此对象处理的每个 UI 上调用 damageRange 方法。
 voiddamageRange(JTextComponent a, int b, int c, Position.Bias d, Position.Bias e)
          在由此对象处理的每个 UI 上调用 damageRange 方法。
 AccessiblegetAccessibleChild(JComponent a, int b)
          在由此对象处理的每个 UI 上调用 getAccessibleChild 方法。
 intgetAccessibleChildrenCount(JComponent a)
          在由此对象处理的每个 UI 上调用 getAccessibleChildrenCount 方法。
 EditorKitgetEditorKit(JTextComponent a)
          在由此对象处理的每个 UI 上调用 getEditorKit 方法。
 DimensiongetMaximumSize(JComponent a)
          在由此对象处理的每个 UI 上调用 getMaximumSize 方法。
 DimensiongetMinimumSize(JComponent a)
          在由此对象处理的每个 UI 上调用 getMinimumSize 方法。
 intgetNextVisualPositionFrom(JTextComponent a, int b, Position.Bias c, int d, Position.Bias[] e)
          在由此对象处理的每个 UI 上调用 getNextVisualPositionFrom 方法。
 DimensiongetPreferredSize(JComponent a)
          在由此对象处理的每个 UI 上调用 getPreferredSize 方法。
 ViewgetRootView(JTextComponent a)
          在由此对象处理的每个 UI 上调用 getRootView 方法。
 StringgetToolTipText(JTextComponent a, Point b)
          在由此对象处理的每个 UI 上调用 getToolTipText 方法。
 ComponentUI[]getUIs()
          返回与此多路 UI 关联的 UI 列表。
 voidinstallUI(JComponent a)
          在由此对象处理的每个 UI 上调用 installUI 方法。
 RectanglemodelToView(JTextComponent a, int b)
          在由此对象处理的每个 UI 上调用 modelToView 方法。
 RectanglemodelToView(JTextComponent a, int b, Position.Bias c)
          在由此对象处理的每个 UI 上调用 modelToView 方法。
 voidpaint(Graphics a, JComponent b)
          在由此对象处理的每个 UI 上调用 paint 方法。
 voiduninstallUI(JComponent a)
          在由此对象处理的每个 UI 上调用 uninstallUI 方法。
 voidupdate(Graphics a, JComponent b)
          在由此对象处理的每个 UI 上调用 update 方法。
 intviewToModel(JTextComponent a, Point b)
          在由此对象处理的每个 UI 上调用 viewToModel 方法。
 intviewToModel(JTextComponent a, Point b, Position.Bias[] c)
          在由此对象处理的每个 UI 上调用 viewToModel 方法。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

uis

protected Vector uis
包含实际 UI 的向量。这是在对 createUI 的调用中生成的,并且可通过调用 getUIs 方法获得它。可以保证第一个元素是从默认外观获得的实际 UI。

构造方法详细信息

MultiTextUI

public MultiTextUI()
方法详细信息

getUIs

public ComponentUI[] getUIs()
返回与此多路 UI 关联的 UI 列表。这允许由意识到组件上多路 UI 的应用程序进行 UI 处理。


getToolTipText

public String getToolTipText(JTextComponent a,
                             Point b)
在由此对象处理的每个 UI 上调用 getToolTipText 方法。

覆盖:
TextUI 中的 getToolTipText
返回:
从第一个 UI 获得的值,该 UI 是从默认 LookAndFeel 获得的 UI
另请参见:
JTextComponent.getToolTipText(java.awt.event.MouseEvent)

modelToView

public Rectangle modelToView(JTextComponent a,
                             int b)
                      throws BadLocationException
在由此对象处理的每个 UI 上调用 modelToView 方法。

指定者:
TextUI 中的 modelToView
b - 模型中要转换的本地位置,该位置 >= 0
返回:
从第一个 UI 获得的值,该 UI 是从默认 LookAndFeel 获得的 UI
抛出:
BadLocationException - 如果给定位置并不表示相关文档中的一个有效位置

modelToView

public Rectangle modelToView(JTextComponent a,
                             int b,
                             Position.Bias c)
                      throws BadLocationException
在由此对象处理的每个 UI 上调用 modelToView 方法。

指定者:
TextUI 中的 modelToView
b - 模型中要转换的本地位置,该位置 >= 0
返回:
从第一个 UI 获得的值,该 UI 是从默认 LookAndFeel 获得的 UI
抛出:
BadLocationException - 如果给定位置并不表示相关文档中的一个有效位置

viewToModel

public int viewToModel(JTextComponent a,
                       Point b)
在由此对象处理的每个 UI 上调用 viewToModel 方法。

指定者:
TextUI 中的 viewToModel
b - 视图中要转换的位置。此位置应该与鼠标事件在同一坐标系统中。
返回:
从第一个 UI 获得的值,该 UI 是从默认 LookAndFeel 获得的 UI

viewToModel

public int viewToModel(JTextComponent a,
                       Point b,
                       Position.Bias[] c)
在由此对象处理的每个 UI 上调用 viewToModel 方法。

指定者:
TextUI 中的 viewToModel
b - 视图中要转换的位置。此位置应该与鼠标事件在同一坐标系统中。
c - 由此方法填充,以指示给定点更接近于模型中的前一个字符,还是更接近于模型中的下一个字符
返回:
从第一个 UI 获得的值,该 UI 是从默认 LookAndFeel 获得的 UI

getNextVisualPositionFrom

public int getNextVisualPositionFrom(JTextComponent a,
                                     int b,
                                     Position.Bias c,
                                     int d,
                                     Position.Bias[] e)
                              throws BadLocationException
在由此对象处理的每个 UI 上调用 getNextVisualPositionFrom 方法。

指定者:
TextUI 中的 getNextVisualPositionFrom
b - 要转换的位置,该位置 >= 0
d - 以当前位置开始的方向,可以将它们设想为通常出现在键盘上的箭头键。该参数可以是 SwingConstants.WEST、SwingConstants.EAST、SwingConstants.NORTH 或 SwingConstants.SOUTH。
返回:
从第一个 UI 获得的值,该 UI 是从默认 LookAndFeel 获得的 UI
抛出:
BadLocationException