Example #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);
 public static void removeTextComponent(JTextComponent t)
 {
   if (JTextObserver.singleton == null)
     JTextObserver.singleton = new JTextObserver();
   ((Component) t).removeFocusListener((FocusListener) JTextObserver.singleton);
 }
Example #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);
Example #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);
		}
Example #5
0
		/// <summary>
		/// Fetches a View with the allocation of the associated
		/// text component (i.e.
		/// </summary>
		abstract public View getRootView(JTextComponent @t);
Example #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);
Example #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);