|
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.Mark
public class Mark
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.
Constructor Summary | |
---|---|
Mark()
Construct new mark with forward bias. |
|
Mark(boolean backwardBias)
Construct new mark. |
|
Mark(Position.Bias bias)
|
Method Summary | |
---|---|
int |
compare(int pos)
Compare this mark to some position. |
void |
dispose()
Mark will no longer represent a valid place in the document. |
boolean |
getBackwardBias()
|
Position.Bias |
getBias()
|
boolean |
getInsertAfter()
Deprecated. |
int |
getLine()
Get the line number of this mark |
int |
getOffset()
Get the position of this mark |
boolean |
isValid()
|
void |
remove()
Remove mark from the structure holding the marks. |
protected void |
removeUpdateAction(int pos,
int len)
Deprecated. It will not be supported in the future. |
String |
toString()
Get info about Mark . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mark()
public Mark(Position.Bias bias)
public Mark(boolean backwardBias)
backwardBias
- whether the inserts performed right at the position
of this mark will go after this mark i.e. this mark will not move
forward when inserting right at its position. This flag corresponds
to Position.Bias.Backward.Method Detail |
---|
public final int getOffset() throws InvalidMarkException
InvalidMarkException
public final int getLine() throws InvalidMarkException
InvalidMarkException
public final boolean getInsertAfter()
getBackwardBias()
public final boolean getBackwardBias()
public final Position.Bias getBias()
Position.Bias.Forward
or Position.Bias.Backward
.public final void dispose()
public final void remove() throws InvalidMarkException
InvalidMarkException
public final int compare(int pos) throws InvalidMarkException
pos
- tested position
InvalidMarkException
protected void removeUpdateAction(int pos, int len)
public final boolean isValid()
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 |