|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.MarkBlockChain
public class MarkBlockChain
Support class for chain of MarkBlocks
Nested Class Summary | |
---|---|
static class |
MarkBlockChain.LayerChain
|
Field Summary | |
---|---|
protected MarkBlock |
chain
Chain of all blocks |
protected MarkBlock |
currentBlock
Current block to make checks faster |
protected BaseDocument |
doc
Document for this block |
Constructor Summary | |
---|---|
MarkBlockChain(BaseDocument doc)
Construct chain using regular base marks |
Method Summary | |
---|---|
void |
addBlock(int startPos,
int endPos,
boolean concat)
Add non-empty block to the chain of blocks |
int |
adjustToBlockEnd(int pos)
|
int |
adjustToNextBlockStart(int pos)
Return the position adjusted to the start of the next mark-block. |
protected MarkBlock |
checkedRemove(MarkBlock blk)
Removes mark block and possibly updates the chain. |
int |
compareBlock(int startPos,
int endPos)
Tests whether the position range is partly or fully inside some mark block from the chain. |
protected MarkBlock |
createBlock(int startPos,
int endPos)
|
protected Mark |
createBlockEndMark()
|
protected Mark |
createBlockStartMark()
|
MarkBlock |
getChain()
|
void |
removeBlock(int startPos,
int endPos)
Remove non-empty block from area covered by blocks from chain |
void |
removeEmptyBlocks()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected MarkBlock chain
protected MarkBlock currentBlock
protected BaseDocument doc
Constructor Detail |
---|
public MarkBlockChain(BaseDocument doc)
Method Detail |
---|
public final MarkBlock getChain()
public int compareBlock(int startPos, int endPos)
startPos
- starting position of tested areaendPos
- ending position of tested area for removal or same
as startPos when insert is made
public void removeEmptyBlocks()
protected MarkBlock createBlock(int startPos, int endPos) throws BadLocationException
BadLocationException
protected Mark createBlockStartMark()
protected Mark createBlockEndMark()
public void addBlock(int startPos, int endPos, boolean concat)
concat
- whether concatenate adjacent blockspublic void removeBlock(int startPos, int endPos)
protected MarkBlock checkedRemove(MarkBlock blk)
public int adjustToBlockEnd(int pos)
public int adjustToNextBlockStart(int pos)
public String toString()
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |