Esempio n. 1
0
		/// <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);
Esempio n. 2
0
 public static void removeTextComponent(JTextComponent t)
 {
   if (JTextObserver.singleton == null)
     JTextObserver.singleton = new JTextObserver();
   ((Component) t).removeFocusListener((FocusListener) JTextObserver.singleton);
 }
Esempio n. 3
0
		/// <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);
Esempio n. 4
0
		/// <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);
		}
Esempio n. 5
0
		/// <summary>
		/// Fetches a View with the allocation of the associated
		/// text component (i.e.
		/// </summary>
		abstract public View getRootView(JTextComponent @t);
Esempio n. 6
0
		/// <summary>
		/// Fetches the binding of services that set a policy
		/// for the type of document being edited.
		/// </summary>
		abstract public EditorKit getEditorKit(JTextComponent @t);
Esempio n. 7
0
		/// <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);