gnu.jemacs.buffer
Class Marker
java.lang.Object
gnu.lists.SeqPosition
gnu.jemacs.buffer.Marker
- All Implemented Interfaces:
- java.util.Enumeration, java.util.Iterator, java.util.ListIterator
public final class Marker
- extends SeqPosition
Methods inherited from class gnu.lists.SeqPosition |
add, copy, finalize, fromEndIndex, getContainingSequenceSize, getNext, getNextKind, getNextTypeName, getNextTypeObject, getPos, getPrevious, gotoChildrenStart, gotoEnd, gotoNext, gotoPrevious, gotoStart, hasMoreElements, hasNext, hasPrevious, isAfter, make, next, nextElement, nextIndex, previous, previousIndex, release, remove, set, set, set, setNext, setPos, setPos, setPrevious, toInfo |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Marker
public Marker()
Marker
public Marker(Marker marker)
Marker
public Marker(Buffer buffer,
int offset,
boolean isAfter)
isPoint
public final boolean isPoint()
- Is this the special point marker?
getOffset
public int getOffset()
getPoint
public int getPoint()
getBuffer
public Buffer getBuffer()
setDot
public void setDot(int newPosition)
set
public void set(Buffer newBuffer,
int newPosition)
removeChar
public void removeChar(int count)
insert
public void insert(char[] data,
int off,
int len,
java.lang.Object style)
insert
public void insert(java.lang.String string,
java.lang.Object style)
insert
public void insert(char ch,
int count,
java.lang.Object style)
- Insert count copies of ch at the current position.
forwardChar
public void forwardChar(int i)
backwardChar
public void backwardChar(int i)
currentColumn
public int currentColumn()
moveToColumn
public int moveToColumn(int column,
boolean force)
forwardLine
public int forwardLine(int lines)
isBeginningOfLine
public boolean isBeginningOfLine()
- Move to start of frame line COUNTs down.
Assume window width is WIDTH.
If LINES is negative, this is moving up.
isEndOfLine
public boolean isEndOfLine()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class SeqPosition