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

org.netbeans.editor.view.spi
Interface ViewFragment


public interface ViewFragment

Interface describing a view being fragment of some original view.
It provides information that the fragment usually has to know anyway but that it's not available through the View class that the fragment is instance of.

The instances of this interface are created once fragments of a view have to created e.g. for line-wrapping purposes.
If the returned fragment does not implement this interface a default wrapper gets created.


Method Summary
 View getOriginalView()
          Return original view for which this wrapper is being created.
 int getRelativeEndOffset()
          Return relative ending offset against the starting offset of the original view.
 int getRelativeStartOffset()
          Return relative starting offset against the starting offset of the original view.
 

Method Detail

getOriginalView

View getOriginalView()
Return original view for which this wrapper is being created.


getRelativeStartOffset

int getRelativeStartOffset()
Return relative starting offset against the starting offset of the original view.


getRelativeEndOffset

int getRelativeEndOffset()
Return relative ending offset against the starting offset of the original view.


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

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