|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.gui.textviewer.PositionElementMapper
public class PositionElementMapper
Constructor Summary | |
---|---|
PositionElementMapper()
|
Method Summary | |
---|---|
void |
addElement(int position,
NTextElement newEl)
Add an element into the map at the specified index. |
void |
appendElement(NTextElement e)
Adds this element and the |
NTextElement |
getElementAtPosition(int position)
Return the text element which is placed at the specified character position in the document |
int |
getTextElementPosition(NTextElement e)
Return the character position of the specified text element |
void |
removeElement(NTextElement e)
The specified textelement has been removed from the document, so remove it from the index. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PositionElementMapper()
Method Detail |
---|
public void addElement(int position, NTextElement newEl)
index
- e
- public void appendElement(NTextElement e)
e
- public void removeElement(NTextElement e)
e
- public NTextElement getElementAtPosition(int position)
index
-
public int getTextElementPosition(NTextElement e)
e
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |