gnu.jemacs.buffer

Class Marker

Implemented Interfaces:
java.util.Enumeration, java.util.ListIterator

public final class Marker
extends SeqPosition

Field Summary

Fields inherited from class gnu.lists.SeqPosition

ipos, sequence

Constructor Summary

Marker()
Marker(Buffer buffer, int offset, boolean isAfter)
Marker(Marker marker)

Method Summary

void
backwardChar(int i)
int
currentColumn()
boolean
equals(Object other)
void
forwardChar(int i)
int
forwardLine(int lines)
Buffer
getBuffer()
int
getOffset()
int
getPoint()
int
hashCode()
void
insert(String string, Object style)
void
insert(char ch, int count, Object style)
Insert count copies of ch at the current position.
void
insert(char[] data, int off, int len, Object style)
boolean
isBeginningOfLine()
Move to start of frame line COUNTs down.
boolean
isEndOfLine()
boolean
isPoint()
Is this the special point marker?
int
moveToColumn(int column, boolean force)
void
removeChar(int count)
void
set(Buffer newBuffer, int newPosition)
void
setDot(int newPosition)
String
toString()

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, toString

Constructor Details

Marker

public Marker()

Marker

public Marker(Buffer buffer,
              int offset,
              boolean isAfter)

Marker

public Marker(Marker marker)

Method Details

backwardChar

public void backwardChar(int i)

currentColumn

public int currentColumn()

equals

public boolean equals(Object other)

forwardChar

public void forwardChar(int i)

forwardLine

public int forwardLine(int lines)

getBuffer

public Buffer getBuffer()

getOffset

public int getOffset()

getPoint

public int getPoint()

hashCode

public int hashCode()

insert

public void insert(String string,
                   Object style)

insert

public void insert(char ch,
                   int count,
                   Object style)
Insert count copies of ch at the current position.

insert

public void insert(char[] data,
                   int off,
                   int len,
                   Object style)

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()

isPoint

public final boolean isPoint()
Is this the special point marker?

moveToColumn

public int moveToColumn(int column,
                        boolean force)

removeChar

public void removeChar(int count)

set

public void set(Buffer newBuffer,
                int newPosition)

setDot

public void setDot(int newPosition)

toString

public String toString()
Overrides:
toString in interface SeqPosition