| java.lang.Object org.netbeans.editor.ext.FormatTokenPositionSupport
FormatTokenPositionSupport | class FormatTokenPositionSupport (Code) | | Support class for mapping the token-positions to the tokens and providing
additional operations.
author: Miloslav Metelka version: 1.00 |
Inner Class :static class SaveSet | |
Method Summary | |
synchronized void | addSaveSet(int baseOffset, int writtenLen, int[] offsets, Position.Bias[] biases) Add the save-set to the registry and perform the checking whether the
offsets are OK. | synchronized void | clearSaveSets() Clear all the save-sets. | synchronized void | createPositions(FormatTokenPosition formatStartPosition) | synchronized ExtTokenPosition | getTokenPosition(TokenItem token, int offset, Position.Bias bias) Get the token-position for the given token and offset. | synchronized void | splitEndTokenPositions(TokenItem token, int endLength) Notify that the previous token was created with the appropriate text
taken from the start of this token. | synchronized void | splitStartTokenPositions(TokenItem token, int startLength) Notify that the previous token was created with the appropriate text
taken from the start of this token. | synchronized void | tokenInsert(TokenItem token) | synchronized void | tokenRemove(TokenItem token) Whole token being removed. | synchronized void | tokenTextInsert(TokenItem token, int offset, int length) Text in the token will be inserted. | synchronized void | tokenTextRemove(TokenItem token, int offset, int length) Text in the token will be removed. | synchronized void | updateSaveSets(FormatTokenPosition formatStartPosition) |
addSaveSet | synchronized void addSaveSet(int baseOffset, int writtenLen, int[] offsets, Position.Bias[] biases)(Code) | | Add the save-set to the registry and perform the checking whether the
offsets are OK.
|
clearSaveSets | synchronized void clearSaveSets()(Code) | | Clear all the save-sets.
|
createPositions | synchronized void createPositions(FormatTokenPosition formatStartPosition)(Code) | | Create the token-positions for all the save sets
|
getTokenPosition | synchronized ExtTokenPosition getTokenPosition(TokenItem token, int offset, Position.Bias bias)(Code) | | Get the token-position for the given token and offset.
Parameters: token - token for which the token-position is being created. Parameters: offset - offset inside the token at which the position is beingcreated. |
splitEndTokenPositions | synchronized void splitEndTokenPositions(TokenItem token, int endLength)(Code) | | Notify that the previous token was created with the appropriate text
taken from the start of this token. It's now necessary to split the marks
according
Parameters: token - token that was split Parameters: endLength - initial length of the token-text that was cut and insertedinto the previous token in the chain. |
splitStartTokenPositions | synchronized void splitStartTokenPositions(TokenItem token, int startLength)(Code) | | Notify that the previous token was created with the appropriate text
taken from the start of this token. It's now necessary to split the marks
according
Parameters: token - token that was split Parameters: startLength - initial length of the token-text that was cut and insertedinto the previous token in the chain. |
tokenInsert | synchronized void tokenInsert(TokenItem token)(Code) | | Given token was inserted into the chain
|
tokenRemove | synchronized void tokenRemove(TokenItem token)(Code) | | Whole token being removed.
|
tokenTextInsert | synchronized void tokenTextInsert(TokenItem token, int offset, int length)(Code) | | Text in the token will be inserted.
|
tokenTextRemove | synchronized void tokenTextRemove(TokenItem token, int offset, int length)(Code) | | Text in the token will be removed.
|
|
|