sk.uniba.euromath.editor.textEditor
Interface ITextPieceInfo

All Known Implementing Classes:
TextPieceInfoImpl

public interface ITextPieceInfo

Interface to properties of text piece.

Author:
Tomáš Studva, Martin Kollár

Method Summary
 int contains(String nodeID, int offset, int length)
          Deprecated. ak sa ti to hodi pouzit informuj ma. Studva
 String getID()
          Unique identification of this text piece in whole document.
 int getLastIndex()
          Index of last character of this text piece in whole displayed text
 int getLength()
          Length of the text piece.
 String getNodeID()
          Identification of node holding the text (text node, cdata node, attribute).
 int getOffset()
          Index of the first character of this text piece in whole displayed text of textual node.
 int getOriginalOffset()
          Index of the first character of this text piece in whole original text of textual node.
 String getText()
          Returns text of this text piece.
 

Method Detail

contains

@Deprecated
int contains(String nodeID,
                        int offset,
                        int length)
Deprecated. ak sa ti to hodi pouzit informuj ma. Studva

Parameters:
nodeID -
offset -
length -
Returns:
bla bla

getID

String getID()
Unique identification of this text piece in whole document.

Returns:
id of this text piece

getNodeID

String getNodeID()
Identification of node holding the text (text node, cdata node, attribute).

Returns:
id of node containing this text

getOffset

int getOffset()
Index of the first character of this text piece in whole displayed text of textual node.

Returns:
globaloffset of first character

getOriginalOffset

int getOriginalOffset()
Index of the first character of this text piece in whole original text of textual node.

Returns:
globaloffset of first character

getLastIndex

int getLastIndex()
Index of last character of this text piece in whole displayed text

Returns:
global offset of last character

getLength

int getLength()
Length of the text piece.

Returns:
length

getText

String getText()
Returns text of this text piece.

Returns:
text value.


Copyright © 2003-2006 null. All Rights Reserved.