| |
|
| java.lang.Object org.netbeans.editor.MarkChain
MarkChain | public class MarkChain (Code) | | Support class for chain of MarkBlocks
author: Miloslav Metelka version: 1.00 |
layerName | protected String layerName(Code) | | If this chain uses draw marks, then this is the name for the draw layer
that will be used for the marks
|
addMark | public boolean addMark(int pos) throws BadLocationException(Code) | | Add mark to the chain
true if the mark was added false if there's already mark at thatpos |
compareMark | public int compareMark(int pos)(Code) | | Tests whether the position range is partly or fully inside some mark
block from the chain.
Parameters: pos - compared position relation of curMark to the given position |
getAddedMark | public MarkFactory.ChainDrawMark getAddedMark()(Code) | | The mark created by addMark() method is returned by this method. In case
the mark was not created, because there already was some on requested
position, the already existing mark is returned.
|
isMark | public boolean isMark(int pos)(Code) | | Is there mark at given position?
|
removeMark | public boolean removeMark(int pos)(Code) | | Remove non-empty block from area covered by blocks from chain
|
toggleMark | public boolean toggleMark(int pos) throws BadLocationException(Code) | | Toggle the mark so that if it didn't exist it is created and if it
existed it's removed
true if the new mark was added false if the existing mark wasremoved |
|
|
|