Eclipse Platform
2.1

org.eclipse.jface.text
Class ParentChildMapping

java.lang.Object
  |
  +--org.eclipse.jface.text.ParentChildMapping
All Implemented Interfaces:
IDocumentInformationMapping

public class ParentChildMapping
extends Object
implements IDocumentInformationMapping

ParentChildMapping.java


Constructor Summary
ParentChildMapping(ChildDocument childDocument)
           
 
Method Summary
 IRegion getCoverage()
           
 int toClosestImageLine(int originLine)
           
 int toImageLine(int originLine)
           
 int toImageOffset(int originOffset)
           
 IRegion toImageRegion(IRegion originRegion)
           
 int toOriginLine(int imageLine)
           
 IRegion toOriginLines(int imageLine)
           
 int toOriginOffset(int imageOffset)
           
 IRegion toOriginRegion(IRegion imageRegion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentChildMapping

public ParentChildMapping(ChildDocument childDocument)
Method Detail

getCoverage

public IRegion getCoverage()
Specified by:
getCoverage in interface IDocumentInformationMapping

toOriginOffset

public int toOriginOffset(int imageOffset)
                   throws BadLocationException
Specified by:
toOriginOffset in interface IDocumentInformationMapping
BadLocationException

toOriginRegion

public IRegion toOriginRegion(IRegion imageRegion)
                       throws BadLocationException
Specified by:
toOriginRegion in interface IDocumentInformationMapping
BadLocationException

toOriginLines

public IRegion toOriginLines(int imageLine)
                      throws BadLocationException
Specified by:
toOriginLines in interface IDocumentInformationMapping
BadLocationException

toOriginLine

public int toOriginLine(int imageLine)
                 throws BadLocationException
Specified by:
toOriginLine in interface IDocumentInformationMapping
BadLocationException

toImageOffset

public int toImageOffset(int originOffset)
                  throws BadLocationException
Specified by:
toImageOffset in interface IDocumentInformationMapping
BadLocationException

toImageRegion

public IRegion toImageRegion(IRegion originRegion)
                      throws BadLocationException
Specified by:
toImageRegion in interface IDocumentInformationMapping
BadLocationException

toImageLine

public int toImageLine(int originLine)
                throws BadLocationException
Specified by:
toImageLine in interface IDocumentInformationMapping
BadLocationException

toClosestImageLine

public int toClosestImageLine(int originLine)
                       throws BadLocationException
Specified by:
toClosestImageLine in interface IDocumentInformationMapping
BadLocationException

Eclipse Platform
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.