Uses of Class
javax.swing.text.JTextComponent
-
Packages that use JTextComponent 软件包 描述 javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.multi 提供组合两种或多种外观和感觉的用户界面对象。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。javax.swing.tree 提供处理javax.swing.JTree类和接口。 -
-
Uses of JTextComponent in javax.swing
Subclasses of JTextComponent in javax.swing Modifier and Type Class 描述 classJEditorPane用于编辑各种内容的文本组件。classJFormattedTextFieldJFormattedTextField扩展了JTextField增加了格式化任意值的支持,以及一旦用户编辑了文本就检索了一个特定的对象。classJPasswordFieldJPasswordField是一个轻量级组件,允许编辑单行文本,其中视图表示已打字,但不显示原始字符。classJTextAreaAJTextArea是显示纯文本的多行区域。classJTextFieldJTextField是一个轻量级组件,允许编辑单行文本。classJTextPane可以用图形化的属性标记的文本组件。 -
Uses of JTextComponent in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type JTextComponent Modifier and Type 方法 描述 abstract voidTextUI. damageRange(JTextComponent t, int p0, int p1)导致部分视图对模型的给定部分负责。abstract voidTextUI. damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)导致部分视图对模型的给定部分负责。abstract EditorKitTextUI. getEditorKit(JTextComponent t)获取为正在编辑的文档类型设置策略的服务的绑定。abstract intTextUI. getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet)提供一种方法来确定可能放置插入符号的下一个视觉表示的模型位置。abstract ViewTextUI. getRootView(JTextComponent t)通过分配可以遍历的关联文本组件(即层次结构的根)来获取视图,以确定模型在空间上的表示方式。StringTextUI. getToolTipText(JTextComponent t, Point pt)StringTextUI. getToolTipText2D(JTextComponent t, Point2D pt)返回要用作传入位置的工具提示的字符串。abstract RectangleTextUI. modelToView(JTextComponent t, int pos)abstract RectangleTextUI. modelToView(JTextComponent t, int pos, Position.Bias bias)Rectangle2DTextUI. modelToView2D(JTextComponent t, int pos, Position.Bias bias)将模型中的给定位置转换为视图坐标系中的一个位置。abstract intTextUI. viewToModel(JTextComponent t, Point pt)abstract intTextUI. viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)intTextUI. viewToModel2D(JTextComponent t, Point2D pt, Position.Bias[] biasReturn)提供从视图坐标空间到模型的逻辑坐标空间的映射。 -
Uses of JTextComponent in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic that return JTextComponent Modifier and Type 方法 描述 protected JTextComponentBasicTextUI. getComponent()获取与此UI实现相关联的文本组件。Methods in javax.swing.plaf.basic with parameters of type JTextComponent Modifier and Type 方法 描述 voidBasicTextUI. damageRange(JTextComponent tc, int p0, int p1)导致部分视图对模型的给定部分负责。voidBasicTextUI. damageRange(JTextComponent t, int p0, int p1, Position.Bias p0Bias, Position.Bias p1Bias)导致部分视图对模型的给定部分负责。EditorKitBasicEditorPaneUI. getEditorKit(JTextComponent tc)获取用户界面的EditorKit。EditorKitBasicTextUI. getEditorKit(JTextComponent tc)获取用户界面的EditorKit。intBasicTextUI. getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet)提供一种方法来确定可能放置插入符号的下一个视觉表示的模型位置。ViewBasicTextUI. getRootView(JTextComponent tc)通过分配可以遍历的关联文本组件(即层次结构的根)来获取视图,以确定模型在空间上的表示方式。StringBasicTextUI. getToolTipText(JTextComponent t, Point pt)返回要用作传入位置的工具提示的字符串。RectangleBasicTextUI. modelToView(JTextComponent tc, int pos)RectangleBasicTextUI. modelToView(JTextComponent tc, int pos, Position.Bias bias)Rectangle2DBasicTextUI. modelToView2D(JTextComponent tc, int pos, Position.Bias bias)intBasicTextUI. viewToModel(JTextComponent tc, Point pt)intBasicTextUI. viewToModel(JTextComponent tc, Point pt, Position.Bias[] biasReturn)intBasicTextUI. viewToModel2D(JTextComponent tc, Point2D pt, Position.Bias[] biasReturn) -
Uses of JTextComponent in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type JTextComponent Modifier and Type 方法 描述 voidMultiTextUI. damageRange(JTextComponent a, int b, int c)在此对象处理的每个UI上调用damageRange方法。voidMultiTextUI. damageRange(JTextComponent a, int b, int c, Position.Bias d, Position.Bias e)在此对象处理的每个UI上调用damageRange方法。EditorKitMultiTextUI. getEditorKit(JTextComponent a)在此对象处理的每个UI上调用getEditorKit方法。intMultiTextUI. getNextVisualPositionFrom(JTextComponent a, int b, Position.Bias c, int d, Position.Bias[] e)在此对象处理的每个UI上调用getNextVisualPositionFrom方法。ViewMultiTextUI. getRootView(JTextComponent a)在此对象处理的每个UI上调用getRootView方法。StringMultiTextUI. getToolTipText(JTextComponent a, Point b)在此对象处理的每个UI上调用getToolTipText方法。RectangleMultiTextUI. modelToView(JTextComponent a, int b)RectangleMultiTextUI. modelToView(JTextComponent a, int b, Position.Bias c)Rectangle2DMultiTextUI. modelToView2D(JTextComponent a, int b, Position.Bias c)intMultiTextUI. viewToModel(JTextComponent a, Point b)已过时。intMultiTextUI. viewToModel(JTextComponent a, Point b, Position.Bias[] c)已过时。intMultiTextUI. viewToModel2D(JTextComponent a, Point2D b, Position.Bias[] c) -
Uses of JTextComponent in javax.swing.text
Methods in javax.swing.text that return JTextComponent Modifier and Type 方法 描述 protected JTextComponentDefaultCaret. getComponent()获取此插入符所绑定的文本编辑器组件。protected JTextComponentTextAction. getFocusedComponent()获取当前具有焦点的文本组件。protected JTextComponentTextAction. getTextComponent(ActionEvent e)确定要用于操作的组件。Methods in javax.swing.text with parameters of type JTextComponent Modifier and Type 方法 描述 voidCaret. deinstall(JTextComponent c)当UI从JTextComponent的界面中删除时调用。voidDefaultCaret. deinstall(JTextComponent c)当UI从JTextComponent的界面中删除时调用。voidDefaultHighlighter. deinstall(JTextComponent c)当UI从JTextComponent的界面中删除时调用。voidHighlighter. deinstall(JTextComponent c)当UI从JTextComponent的界面中删除时调用。intNavigationFilter. getNextVisualPositionFrom(JTextComponent text, int pos, Position.Bias bias, int direction, Position.Bias[] biasRet)返回下一个视觉位置,从现有位置放置插入符号。static intUtilities. getNextWord(JTextComponent c, int offs)确定给定位置的下一个字的开始。static ElementUtilities. getParagraphElement(JTextComponent c, int offs)确定要用于段落/行的元素。static intUtilities. getPositionAbove(JTextComponent c, int offs, float x)确定模型中最接近上面行中给定视图位置的位置。static intUtilities. getPositionAbove(JTextComponent c, int offs, int x)static intUtilities. getPositionBelow(JTextComponent c, int offs, float x)确定模型中最接近下面行中给定视图位置的位置。static intUtilities. getPositionBelow(JTextComponent c, int offs, int x)static intUtilities. getPreviousWord(JTextComponent c, int offs)确定给定位置的上一个字的开始。static intUtilities. getRowEnd(JTextComponent c, int offs)确定包含指定模型位置的行的结束行模型位置。static intUtilities. getRowStart(JTextComponent c, int offs)确定包含指定模型位置的行的起始行模型位置。static intUtilities. getWordEnd(JTextComponent c, int offs)确定给定位置的单词的结尾。static intUtilities. getWordStart(JTextComponent c, int offs)确定给定模型位置的单词开始。voidCaret. install(JTextComponent c)当UI被安装到JTextComponent的接口时调用。voidDefaultCaret. install(JTextComponent c)当UI被安装到JTextComponent的接口时调用。voidDefaultHighlighter. install(JTextComponent c)当UI被安装到JTextComponent的接口时调用。voidHighlighter. install(JTextComponent c)当UI被安装到JTextComponent的接口时调用。voidDefaultHighlighter.DefaultHighlightPainter. paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)画亮点voidHighlighter.HighlightPainter. paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)渲染亮点。ShapeDefaultHighlighter.DefaultHighlightPainter. paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)画出一部分亮点。abstract ShapeLayeredHighlighter.LayerPainter. paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)voidDefaultHighlighter. paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)当叶视图(如LabelView)呈现时,它们应该调用此方法。abstract voidLayeredHighlighter. paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)当叶视图(如LabelView)呈现时,它们应该调用此方法。 -
Uses of JTextComponent in javax.swing.tree
Subclasses of JTextComponent in javax.swing.tree Modifier and Type Class 描述 classDefaultTreeCellEditor.DefaultTextField当没有提供编辑器时使用TextField。
-