1 7 package javax.swing.text; 8 9 import java.awt.Shape ; 10 11 34 public class NavigationFilter { 35 46 public void setDot(FilterBypass fb, int dot, Position.Bias bias) { 47 fb.setDot(dot, bias); 48 } 49 50 61 public void moveDot(FilterBypass fb, int dot, Position.Bias bias) { 62 fb.moveDot(dot, bias); 63 } 64 65 90 public int getNextVisualPositionFrom(JTextComponent text, int pos, 91 Position.Bias bias, int direction, 92 Position.Bias [] biasRet) 93 throws BadLocationException { 94 return text.getUI().getNextVisualPositionFrom(text, pos, bias, 95 direction, biasRet); 96 } 97 98 99 105 public static abstract class FilterBypass { 106 111 public abstract Caret getCaret(); 112 113 119 public abstract void setDot(int dot, Position.Bias bias); 120 121 127 public abstract void moveDot(int dot, Position.Bias bias); 128 } 129 } 130 | Popular Tags |