站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

ViewUtilities (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor.view.spi
Class ViewUtilities

java.lang.Object
  extended by org.netbeans.editor.view.spi.ViewUtilities

public class ViewUtilities
extends Object

Various utility methods related to views.


Method Summary
static void checkViewHierarchy(View v)
          Check correctness of the hierarchy under the given view.
static View createDocumentView(Element elem)
          Create view that will cover the whole document.
static boolean isAxisValid(int axis)
          Test whether the axis is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDocumentView

public static View createDocumentView(Element elem)
Create view that will cover the whole document.


checkViewHierarchy

public static void checkViewHierarchy(View v)
Check correctness of the hierarchy under the given view.
Current checks:
  • Children are Parents are checked to have correct parent info.


isAxisValid

public static boolean isAxisValid(int axis)
Test whether the axis is valid.

Parameters:
axis - integer axis
Returns:
true if the axis is either View.X_AXIS or View.Y_AXIS. False is returned otherwise.

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.