| |
|
| java.lang.Object org.netbeans.editor.Mark
Mark | public class Mark (Code) | | Class defining basic type of mark. This is a mark used most frequently. It's
instances are inserted into the leaf plane of the tree.
|
Field Summary | |
boolean | backwardBias Bias of the mark. | int | line Line at which the mark is located in the document. | int | offset Offset at which the mark is located in the document. | boolean | valid |
Constructor Summary | |
public | Mark() Construct new mark with forward bias. | public | Mark(Position.Bias bias) | public | Mark(boolean backwardBias) Construct new mark.
Parameters: backwardBias - whether the inserts performed right at the position of thismark will go after this mark i.e. | | Mark(int offset, int line, boolean backwardBias) |
backwardBias | boolean backwardBias(Code) | | Bias of the mark. It is either false for
javax.swing.text.Position.Bias.Forward or true for
javax.swing.text.Position.Bias.Backward |
line | int line(Code) | | Line at which the mark is located in the document.
|
offset | int offset(Code) | | Offset at which the mark is located in the document.
|
valid | boolean valid(Code) | | The mark is valid if it's inserted in the marks structure
|
Mark | public Mark()(Code) | | Construct new mark with forward bias.
|
Mark | public Mark(boolean backwardBias)(Code) | | Construct new mark.
Parameters: backwardBias - whether the inserts performed right at the position of thismark will go after this mark i.e. this mark will not moveforward when inserting right at its position. This flagcorresponds to Position.Bias.Backward. |
Mark | Mark(int offset, int line, boolean backwardBias)(Code) | | Package private constructor for cover marks
|
compare | final public int compare(int pos) throws InvalidMarkException(Code) | | Compare this mark to some position.
Parameters: pos - tested position zero - if the marks have the same position less than zero - ifthis mark is before the position greater than zero - if this markis after the position |
dispose | final public void dispose()(Code) | | Mark will no longer represent a valid place in the document. Although it
will not be removed from the structure that holds the marks it will be
done later automatically.
|
getBackwardBias | final public boolean getBackwardBias()(Code) | | true if the mark has backward bias or false if it has forwardbias. |
getBias | final public Position.Bias getBias()(Code) | | the bias of this mark. It will be eitherjavax.swing.text.Position.Bias.Forward orjavax.swing.text.Position.Bias.Backward. |
isValid | final public boolean isValid()(Code) | | true if this mark is currently inserted in the document or falseotherwise. |
remove | final public void remove() throws InvalidMarkException(Code) | | Remove mark from the structure holding the marks. The mark can be
inserted again into some document.
|
removeDisposed | final void removeDisposed()(Code) | | |
removeUpdateAction | protected void removeUpdateAction(int pos, int len)(Code) | | This function is called from removeUpdater when mark occupies the removal
area. The mark can decide what to do next. If it doesn't redefine this
method it will be simply moved to the begining of removal area. It is
valid to add or remove other mark from this method. It is even possible
(but not very useful) to add the mark to the removal area. However that
mark will not be notified about current removal.
|
|
|
|