1 19 20 package org.netbeans.editor.view.spi; 21 22 import javax.swing.text.Element ; 23 import javax.swing.text.View ; 24 import org.netbeans.lib.editor.view.ViewUtilitiesImpl; 25 26 32 33 public class ViewUtilities { 34 35 private ViewUtilities() { 36 } 37 38 39 42 public static View createDocumentView(Element elem) { 43 return new org.netbeans.lib.editor.view.GapDocumentView(elem); 44 } 45 46 55 public static void checkViewHierarchy(View v) { 56 ViewUtilitiesImpl.checkViewHierarchy(v); 57 } 58 59 66 public static boolean isAxisValid(int axis) { 67 switch (axis) { 68 case View.X_AXIS: 69 case View.Y_AXIS: 70 return true; 71 } 72 73 return false; 74 } 75 76 } 77 | Popular Tags |