Position
instead.@Deprecated public class Mark extends Object
Constructor and Description |
---|
Mark()
Deprecated.
Construct new mark with forward bias.
|
Mark(boolean backwardBias)
Deprecated.
Construct new mark.
|
Mark(Position.Bias bias)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(int pos)
Deprecated.
Compare this mark to some position.
|
void |
dispose()
Deprecated.
Mark will no longer represent a valid place in the document.
|
boolean |
getBackwardBias()
Deprecated.
|
Position.Bias |
getBias()
Deprecated.
|
boolean |
getInsertAfter()
Deprecated.
|
int |
getLine()
Deprecated.
Get the line number of this mark
|
int |
getOffset()
Deprecated.
Get the position of this mark
|
boolean |
isValid()
Deprecated.
|
void |
remove()
Deprecated.
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()
Deprecated.
Get info about
Mark . |
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.public final int getOffset() throws InvalidMarkException
InvalidMarkException
public final int getLine() throws InvalidMarkException
InvalidMarkException
public final boolean getInsertAfter()
Mark.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 positionInvalidMarkException
protected void removeUpdateAction(int pos, int len)
public final boolean isValid()