1 7 package javax.swing.plaf; 8 9 import javax.swing.Action ; 10 import javax.swing.BoundedRangeModel ; 11 import java.awt.Point ; 12 import java.awt.Rectangle ; 13 import java.awt.Insets ; 14 import javax.swing.text.*; 15 16 22 public abstract class TextUI extends ComponentUI 23 { 24 33 public abstract Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException; 34 35 44 public abstract Rectangle modelToView(JTextComponent t, int pos, Position.Bias bias) throws BadLocationException; 45 46 55 public abstract int viewToModel(JTextComponent t, Point pt); 56 57 72 public abstract int viewToModel(JTextComponent t, Point pt, 73 Position.Bias[] biasReturn); 74 75 92 public abstract int getNextVisualPositionFrom(JTextComponent t, 93 int pos, Position.Bias b, 94 int direction, Position.Bias[] biasRet) 95 throws BadLocationException; 96 97 104 public abstract void damageRange(JTextComponent t, int p0, int p1); 105 106 113 public abstract void damageRange(JTextComponent t, int p0, int p1, 114 Position.Bias firstBias, 115 Position.Bias secondBias); 116 117 125 public abstract EditorKit getEditorKit(JTextComponent t); 126 127 135 public abstract View getRootView(JTextComponent t); 136 137 143 public String getToolTipText(JTextComponent t, Point pt) { 144 return null; 145 } 146 } 147 | Popular Tags |