org.netbeans.modules.editor.lib/3 3.23.0 19

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:


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/3 3.23.0 19

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.