| java.lang.Object org.netbeans.editor.MarkBlockChain
MarkBlockChain | public class MarkBlockChain (Code) | | Support class for chain of MarkBlocks
author: Miloslav Metelka version: 1.00 |
currentBlock | protected MarkBlock currentBlock(Code) | | Current block to make checks faster
|
MarkBlockChain | public MarkBlockChain(BaseDocument doc)(Code) | | Construct chain using regular base marks
|
addBlock | public void addBlock(int startPos, int endPos, boolean concat)(Code) | | Add non-empty block to the chain of blocks
Parameters: concat - whether concatenate adjacent blocks |
adjustToBlockEnd | public int adjustToBlockEnd(int pos)(Code) | | |
adjustToNextBlockStart | public int adjustToNextBlockStart(int pos)(Code) | | Return the position adjusted to the start of the next mark-block.
|
checkedRemove | protected MarkBlock checkedRemove(MarkBlock blk)(Code) | | Removes mark block and possibly updates the chain.
next block after removed one |
compareBlock | public int compareBlock(int startPos, int endPos)(Code) | | Tests whether the position range is partly or fully inside some mark
block from the chain.
Parameters: startPos - starting position of tested area Parameters: endPos - ending position of tested area for removal or same as startPoswhen insert is made relation of currentBlock to the given block |
createBlockEndMark | protected Mark createBlockEndMark()(Code) | | |
createBlockStartMark | protected Mark createBlockStartMark()(Code) | | |
removeBlock | public void removeBlock(int startPos, int endPos)(Code) | | Remove non-empty block from area covered by blocks from chain
|
removeEmptyBlocks | public void removeEmptyBlocks()(Code) | | |
|
|