1 7 8 package javax.swing.plaf; 9 10 import java.awt.Rectangle ; 11 import javax.swing.JTree ; 12 import javax.swing.tree.TreePath ; 13 14 21 public abstract class TreeUI extends ComponentUI 22 { 23 28 public abstract Rectangle getPathBounds(JTree tree, TreePath path); 29 30 34 public abstract TreePath getPathForRow(JTree tree, int row); 35 36 41 public abstract int getRowForPath(JTree tree, TreePath path); 42 43 46 public abstract int getRowCount(JTree tree); 47 48 55 public abstract TreePath getClosestPathForLocation(JTree tree, int x, 56 int y); 57 58 62 public abstract boolean isEditing(JTree tree); 63 64 69 public abstract boolean stopEditing(JTree tree); 70 71 76 public abstract void cancelEditing(JTree tree); 77 78 82 public abstract void startEditingAtPath(JTree tree, TreePath path); 83 84 87 public abstract TreePath getEditingPath(JTree tree); 88 } 89 | Popular Tags |