|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--upidiff.merge.LineElement
This class represents a listelement that provides information about a line in a text
Field Summary | |
private int |
charInDocument
Number of chars in the document before this line |
private int |
charInLinenumberDocument
Number of chars in the linennumbers document befor this line |
private int |
charsInLine
Number of chars in this line |
private int |
charsInLineofLinenumberDocument
Number of chars in this line of the linenumbers document |
private Change |
localChange
The Changeobjekt that has to be merged in this line |
Constructor Summary | |
LineElement()
This method constructs an emty object of this class |
|
LineElement(int charsInLine,
int charsInDocument,
int charsInLineOfLD,
int charInDocumentOfLD)
This methode constructs a new object of this class filled with the parameter |
|
LineElement(int charsInLine,
int charsInDocument,
int charsInLineOfLD,
int charInDocumentOfLD,
Change localChange)
This methode constructs a new object of this clas |
Method Summary | |
void |
addCharsToLine(int numberOfChars)
Adds a number of chars to a line |
void |
deleteCharsFromLine(int numberOfChars)
Deletes a number of chars from a line |
int |
getCharInDocument()
Queries the number of chars included in the document before this line |
int |
getCharInDocumentOfLD()
Queries the position of the char in the linenumbers document |
int |
getCharsInLine()
Queries the chars included in this line |
int |
getCharsInLineOfLD()
Queries the chars included in this line |
Change |
getLocalChange()
Queries the change in this line |
void |
setCharInDocument(int charInDocument)
Sets the number of chars includet in the document before this line |
void |
setCharInDocumentOfLD(int charInDocument)
Sets the number of chars includet in the document before this line |
void |
setCharsInLine(int charsInLine)
Sets the number of chars in this line |
void |
setCharsInLineOfLD(int charsInLine)
Sets the number of chars in this line of the linedocument |
void |
setLocalChange(Change localChange)
Sets the change in this line |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int charsInLine
getCharsInLine()
,
setCharsInLine(int)
private int charInDocument
getCharInDocument()
,
setCharInDocument(int)
private int charsInLineofLinenumberDocument
getCharsInLineOfLD()
,
setCharsInLineOfLD(int)
private int charInLinenumberDocument
getCharInDocumentOfLD()
,
setCharInDocumentOfLD(int)
private Change localChange
getLocalChange()
,
setLocalChange(Change)
Constructor Detail |
public LineElement()
public LineElement(int charsInLine, int charsInDocument, int charsInLineOfLD, int charInDocumentOfLD)
charsInLine
- Chars in this linecharsInDocument
- Chars in document before this linecharsInLineOfLD
- Chars in this line of linedocumentcharInDocumentOfLD
- Chars in linedocument berfore this linepublic LineElement(int charsInLine, int charsInDocument, int charsInLineOfLD, int charInDocumentOfLD, Change localChange)
charsInLine
- Chars in this linecharsInDocument
- Chars in document before this linelocalChange
- Information about the change in this linecharsInLineOfLD
- Chars in this line of linedocumentcharInDocumentOfLD
- Chars in linedocument berfore this lineMethod Detail |
public int getCharsInLine()
public int getCharsInLineOfLD()
public int getCharInDocument()
public int getCharInDocumentOfLD()
public void setCharsInLine(int charsInLine)
charsInLine
- The number of charspublic void addCharsToLine(int numberOfChars)
numberOfChars
- The number of charspublic void deleteCharsFromLine(int numberOfChars)
numberOfChars
- The number of charspublic void setCharsInLineOfLD(int charsInLine)
charsInLine
- The number of charspublic void setCharInDocument(int charInDocument)
charInDocument
- The number of charspublic void setCharInDocumentOfLD(int charInDocument)
charInDocument
- The number of charspublic Change getLocalChange()
public void setLocalChange(Change localChange)
localChange
- The Change in this line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |