/// <summary> /// Converts the given place in the view coordinate system /// to the nearest representative location in the model. /// </summary> abstract public int viewToModel(JTextComponent @t, Point @pt);
public static void removeTextComponent(JTextComponent t) { if (JTextObserver.singleton == null) JTextObserver.singleton = new JTextObserver(); ((Component) t).removeFocusListener((FocusListener) JTextObserver.singleton); }
/// <summary> /// Converts the given location in the model to a place in /// the view coordinate system. /// </summary> abstract public Rectangle modelToView(JTextComponent @t, int @pos);
/// <summary> /// Returns the string to be used as the tooltip at the passed in location. /// </summary> public string getToolTipText(JTextComponent @t, Point @pt) { return default(string); }
/// <summary> /// Fetches a View with the allocation of the associated /// text component (i.e. /// </summary> abstract public View getRootView(JTextComponent @t);
/// <summary> /// Fetches the binding of services that set a policy /// for the type of document being edited. /// </summary> abstract public EditorKit getEditorKit(JTextComponent @t);
/// <summary> /// Causes the portion of the view responsible for the /// given part of the model to be repainted. /// </summary> abstract public void damageRange(JTextComponent @t, int @p0, int @p1);