Java Platform 1.2

Uses of Class
javax.swing.text.JTextComponent

Packages that use JTextComponent
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. 
javax.swing.plaf.basic Provides user interface objects built according to the Basic look-and-feel. 
javax.swing.plaf.multi The multiplexing look and feel allows users to combine auxiliary look and feels with the default look and feel. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
javax.swing.tree Provides classes and interfaces for dealing with java.awt.swing.JTree. 
 

Uses of JTextComponent in javax.swing
 

Subclasses of JTextComponent in javax.swing
 class JEditorPane
          A text component to edit various kinds of content.
 class JPasswordField
          JPasswordField is a lightweight component that allows the editing of a single line of text where the view indicates something was typed, but does not show the original characters.
 class JTextArea
          A TextArea is a multi-line area that displays plain text.
 class JTextField
          JTextField is a lightweight component that allows the editing of a single line of text.
 class JTextPane
          A text component that can be marked up with attributes that are represented graphically.
 

Uses of JTextComponent in javax.swing.plaf
 

Methods in javax.swing.plaf with parameters of type JTextComponent
abstract  Rectangle TextUI.modelToView(JTextComponent t, int pos)
          Converts the given location in the model to a place in the view coordinate system.
abstract  Rectangle TextUI.modelToView(JTextComponent t, int pos, Position.Bias bias)
          Converts the given location in the model to a place in the view coordinate system.
abstract  int TextUI.viewToModel(JTextComponent t, Point pt)
          Converts the given place in the view coordinate system to the nearest representative location in the model.
abstract  int TextUI.viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)
          Provides a mapping from the view coordinate space to the logical coordinate space of the model.
abstract  int TextUI.getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet)
          Provides a way to determine the next visually represented model location that one might place a caret.
abstract  void TextUI.damageRange(JTextComponent t, int p0, int p1)
          Causes the portion of the view responsible for the given part of the model to be repainted.
abstract  void TextUI.damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)
          Causes the portion of the view responsible for the given part of the model to be repainted.
abstract  EditorKit TextUI.getEditorKit(JTextComponent t)
          Fetches the binding of services that set a policy for the type of document being edited.
abstract  View TextUI.getRootView(JTextComponent t)
          Fetches a View with the allocation of the associated text component (i.e.
 

Uses of JTextComponent in javax.swing.plaf.basic
 

Methods in javax.swing.plaf.basic that return JTextComponent
protected  JTextComponent BasicTextUI.getComponent()
          Fetches the text component associated with this UI implementation.
 

Methods in javax.swing.plaf.basic with parameters of type JTextComponent
 Rectangle BasicTextUI.modelToView(JTextComponent tc, int pos)
          Converts the given location in the model to a place in the view coordinate system.
 Rectangle BasicTextUI.modelToView(JTextComponent tc, int pos, Position.Bias bias)
          Converts the given location in the model to a place in the view coordinate system.
 int BasicTextUI.viewToModel(JTextComponent tc, Point pt)
          Converts the given place in the view coordinate system to the nearest representative location in the model.
 int BasicTextUI.viewToModel(JTextComponent tc, Point pt, Position.Bias[] biasReturn)
          Converts the given place in the view coordinate system to the nearest representative location in the model.
 int BasicTextUI.getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet)
          Provides a way to determine the next visually represented model location that one might place a caret.
 void BasicTextUI.damageRange(JTextComponent tc, int p0, int p1)
          Causes the portion of the view responsible for the given part of the model to be repainted.
 void BasicTextUI.damageRange(JTextComponent t, int p0, int p1, Position.Bias p0Bias, Position.Bias p1Bias)
          Causes the portion of the view responsible for the given part of the model to be repainted.
 EditorKit BasicTextUI.getEditorKit(JTextComponent tc)
          Fetches the EditorKit for the UI.
 View BasicTextUI.getRootView(JTextComponent tc)
          Fetches a View with the allocation of the associated text component (i.e.
 EditorKit BasicEditorPaneUI.getEditorKit(JTextComponent tc)
          Fetches the EditorKit for the UI.
 EditorKit BasicTextPaneUI.getEditorKit(JTextComponent tc)
          Fetches the EditorKit for the UI.
 

Uses of JTextComponent in javax.swing.plaf.multi
 

Methods in javax.swing.plaf.multi with parameters of type JTextComponent
 Rectangle MultiTextUI.modelToView(JTextComponent a, int b)
          Call modelToView on each UI handled by this MultiUI.
 Rectangle MultiTextUI.modelToView(JTextComponent t, int pos, Position.Bias bias)
          Converts the given location in the model to a place in the view coordinate system.
 int MultiTextUI.viewToModel(JTextComponent a, Point b)
          Call viewToModel on each UI handled by this MultiUI.
 int MultiTextUI.viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)
          Provides a mapping from the view coordinate space to the logical coordinate space of the model.
 int MultiTextUI.getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet)
          Provides a way to determine the next visually represented model location that one might place a caret.
 void MultiTextUI.damageRange(JTextComponent a, int b, int c)
          Call damageRange on each UI handled by this MultiUI.
 void MultiTextUI.damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)
          Causes the portion of the view responsible for the given part of the model to be repainted.
 EditorKit MultiTextUI.getEditorKit(JTextComponent a)
          Call getEditorKit on each UI handled by this MultiUI.
 View MultiTextUI.getRootView(JTextComponent a)
          Call getRootView on each UI handled by this MultiUI.
 

Uses of JTextComponent in javax.swing.text
 

Methods in javax.swing.text that return JTextComponent
protected  JTextComponent DefaultCaret.getComponent()
          Gets the text editor component that this caret is is bound to.
protected  JTextComponent TextAction.getTextComponent(ActionEvent e)
          Determines the component to use for the action.
protected  JTextComponent TextAction.getFocusedComponent()
          Fetches the text component that currently has focus.
 

Methods in javax.swing.text with parameters of type JTextComponent
 void Highlighter.install(JTextComponent c)
          Called when the UI is being installed into the interface of a JTextComponent.
 void Highlighter.deinstall(JTextComponent c)
          Called when the UI is being removed from the interface of a JTextComponent.
 void Highlighter.HighlightPainter.paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c)
          Renders the highlight.
 void Caret.install(JTextComponent c)
          Called when the UI is being installed into the interface of a JTextComponent.
 void Caret.deinstall(JTextComponent c)
          Called when the UI is being removed from the interface of a JTextComponent.
 void DefaultCaret.install(JTextComponent c)
          Called when the UI is being installed into the interface of a JTextComponent.
 void DefaultCaret.deinstall(JTextComponent c)
          Called when the UI is being removed from the interface of a JTextComponent.
abstract  void LayeredHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
          When leaf Views (such as LabelView) are rendering they should call into this method.
 void DefaultHighlighter.install(JTextComponent c)
          Called when the UI is being installed into the interface of a JTextComponent.
 void DefaultHighlighter.deinstall(JTextComponent c)
          Called when the UI is being removed from the interface of a JTextComponent.
 void DefaultHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
          When leaf Views (such as LabelView) are rendering they should call into this method.
abstract  Shape LayeredHighlighter.LayerPainter.paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view)
           
 void DefaultHighlighter.DefaultHighlightPainter.paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c)
          Paints a highlight.
 Shape DefaultHighlighter.DefaultHighlightPainter.paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view)
          Paints a portion of a highlight.
static int Utilities.getRowStart(JTextComponent c, int offs)
          Determines the starting row model position of the row that contains the specified model position.
static int Utilities.getRowEnd(JTextComponent c, int offs)
          Determines the ending row model position of the row that contains the specified model position.
static int Utilities.getPositionAbove(JTextComponent c, int offs, int x)
          Determines the position in the model that is closest to the given view location in the row above.
static int Utilities.getPositionBelow(JTextComponent c, int offs, int x)
          Determines the position in the model that is closest to the given view location in the row below.
static int Utilities.getWordStart(JTextComponent c, int offs)
          Determines the start of a word for the given model location.
static int Utilities.getWordEnd(JTextComponent c, int offs)
          Determines the end of a word for the given location.
static int Utilities.getNextWord(JTextComponent c, int offs)
          Determines the start of the next word for the given location.
static int Utilities.getPreviousWord(JTextComponent c, int offs)
          Determine the start of the prev word for the given location.
static Element Utilities.getParagraphElement(JTextComponent c, int offs)
          Determines the element to use for a paragraph/line.
 

Constructors in javax.swing.text with parameters of type JTextComponent
JTextComponent.AccessibleJTextComponent.JTextComponent.AccessibleJTextComponent()
          Constructs an AccessibleJTextComponent.
 

Uses of JTextComponent in javax.swing.tree
 

Subclasses of JTextComponent in javax.swing.tree
 class DefaultTreeCellEditor.DefaultTextField
          TextField used when no editor is supplied.
 


Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.