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