Save This Page
Home » openjdk-7 » javax » swing » plaf » [javadoc | source]
javax.swing.plaf
abstract public class: TextUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.TextUI

Direct Known Subclasses:
    SynthTextAreaUI, MetalTextFieldUI, BasicTextUI, BasicTextAreaUI, BasicEditorPaneUI, BasicFormattedTextFieldUI, BasicTextFieldUI, SynthFormattedTextFieldUI, SynthPasswordFieldUI, SynthTextFieldUI, BasicPasswordFieldUI, MultiTextUI, BasicTextPaneUI, DefaultTextUI, SynthTextPaneUI, SynthEditorPaneUI

Text editor user interface
Method from javax.swing.plaf.TextUI Summary:
damageRange,   damageRange,   getEditorKit,   getNextVisualPositionFrom,   getRootView,   getToolTipText,   modelToView,   modelToView,   viewToModel,   viewToModel
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.TextUI Detail:
 abstract public  void 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 public  void 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 public EditorKit getEditorKit(JTextComponent t)
    Fetches the binding of services that set a policy for the type of document being edited. This contains things like the commands available, stream readers and writers, etc.
 abstract public int getNextVisualPositionFrom(JTextComponent t,
    int pos,
    Position.Bias b,
    int direction,
    Position.Bias[] biasRet) throws BadLocationException
    Provides a way to determine the next visually represented model location that one might place a caret. Some views may not be visible, they might not be in the same order found in the model, or they just might not allow access to some of the locations in the model.
 abstract public View getRootView(JTextComponent t)
    Fetches a View with the allocation of the associated text component (i.e. the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.
 public String getToolTipText(JTextComponent t,
    Point pt) 
    Returns the string to be used as the tooltip at the passed in location.
 abstract public Rectangle modelToView(JTextComponent t,
    int pos) throws BadLocationException
    Converts the given location in the model to a place in the view coordinate system.
 abstract public Rectangle modelToView(JTextComponent t,
    int pos,
    Position.Bias bias) throws BadLocationException
    Converts the given location in the model to a place in the view coordinate system.
 abstract public int viewToModel(JTextComponent t,
    Point pt)
    Converts the given place in the view coordinate system to the nearest representative location in the model.
 abstract public int viewToModel(JTextComponent t,
    Point pt,
    Position.Bias[] biasReturn)
    Provides a mapping from the view coordinate space to the logical coordinate space of the model.