|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.lists.AbstractSequence gnu.jemacs.buffer.Buffer gnu.jemacs.swt.SwtBuffer
public class SwtBuffer
Field Summary |
---|
Fields inherited from class gnu.jemacs.buffer.Buffer |
---|
activeKeymaps, buffers, fileBuffers, markMarker, pointMarker |
Fields inherited from interface gnu.lists.Sequence |
---|
ATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, EOF_VALUE, eofValue, FLOAT_VALUE, GROUP_VALUE, INT_S16_VALUE, INT_S32_VALUE, INT_S64_VALUE, INT_S8_VALUE, INT_U16_VALUE, INT_U32_VALUE, INT_U64_VALUE, INT_U8_VALUE, OBJECT_VALUE, PRIM_VALUE, PROCESSING_INSTRUCTION_VALUE, TEXT_BYTE_VALUE |
Constructor Summary | |
---|---|
SwtBuffer(java.lang.String name)
|
|
SwtBuffer(java.lang.String name,
BufferContent content)
|
Method Summary | |
---|---|
int |
createPos(int index,
boolean isAfter)
Generate a position at a given index. |
int |
forwardLine(int lines)
|
java.lang.Object |
get(int index)
See java.util.List. |
org.eclipse.swt.custom.StyledTextContent |
getBufferContent()
|
int |
getDot()
|
int |
getLength()
|
FString |
getModelineFormat()
|
CharSeq |
getStringContent()
|
void |
insert(char ch,
int count)
Insert count copies of ch at point. |
void |
insert(char ch,
int count,
java.lang.Object style)
Insert count copies of ch at point. |
void |
insert(java.lang.String string,
java.lang.Object style,
int ipos)
Insert string with given style at position pair. |
void |
insertFile(java.io.Reader in)
|
void |
invoke(java.lang.Runnable doRun)
This is intended for Runnable's that may affect the state of the buffer. |
int |
lineStartOffset(int offset)
|
int |
maxDot()
|
InPort |
openReader(int start,
int count)
|
void |
redrawModeline()
|
void |
removeAll()
|
void |
removeChar(int count)
|
void |
restorePointMark(long pointMark)
|
void |
save(java.io.Writer out)
|
long |
savePointMark()
|
long |
scan(char target,
int start,
int end,
int count,
boolean allowQuit)
Search in BUF for COUNT instances of the character TARGET between START and END. |
void |
setDot(int dot)
|
int |
size()
See java.util.List. |
Methods inherited from class gnu.jemacs.buffer.Buffer |
---|
backwardChar, charAt, charWidth, checkMark, coerceBuffer, consume, countColumns, currentColumn, currentColumn, display, fill, fill, findFile, forwardChar, forwardLine, generateNewBufferName, getBuffer, getChars, getCurrent, getFileName, getLocalKeymap, getMarkMarker, getName, getPoint, getPointMarker, insert, insert, insert, insertAll, insertFile, length, lineStartOffset, makeBufferLocal, minDot, moveToColumn, positionToOffset, save, setCharAt, setCurrent, setFileName, setLocalKeymap, setPoint, subSequence, toString, writeTo, writeTo |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gnu.lists.Sequence |
---|
elements, fill, isEmpty |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
Methods inherited from interface gnu.lists.Consumable |
---|
consume |
Constructor Detail |
---|
public SwtBuffer(java.lang.String name)
public SwtBuffer(java.lang.String name, BufferContent content)
Method Detail |
---|
public void redrawModeline()
redrawModeline
in class Buffer
Buffer.redrawModeline()
public FString getModelineFormat()
public int getLength()
getLength
in class Buffer
Buffer.getLength()
public int getDot()
getDot
in class Buffer
Buffer.getDot()
public void setDot(int dot)
setDot
in class Buffer
Buffer.setDot(int)
public int maxDot()
maxDot
in class Buffer
Buffer.maxDot()
public void insert(java.lang.String string, java.lang.Object style, int ipos)
Buffer
insert
in class Buffer
Buffer.insert(java.lang.String, java.lang.Object, int)
public void insert(char ch, int count, java.lang.Object style)
Buffer
insert
in class Buffer
Buffer.insert(char, int, java.lang.Object)
public void insert(char ch, int count)
Buffer
insert
in class Buffer
Buffer.insert(char, int)
public void removeAll()
removeAll
in class Buffer
Buffer.removeAll()
public void insertFile(java.io.Reader in) throws java.lang.Exception
insertFile
in class Buffer
java.lang.Exception
Buffer.insertFile(java.io.Reader)
public void save(java.io.Writer out) throws java.lang.Exception
save
in class Buffer
java.lang.Exception
Buffer.save(java.io.Writer)
public void removeChar(int count)
removeChar
in class Buffer
Buffer.removeChar(int)
public int lineStartOffset(int offset)
lineStartOffset
in class Buffer
Buffer.lineStartOffset(int)
public long scan(char target, int start, int end, int count, boolean allowQuit)
Buffer
scan
in class Buffer
Buffer.scan(char, int, int, int, boolean)
public CharSeq getStringContent()
getStringContent
in class Buffer
public InPort openReader(int start, int count)
openReader
in class Buffer
Buffer.openReader(int, int)
public long savePointMark()
savePointMark
in class Buffer
Buffer.savePointMark()
public void restorePointMark(long pointMark)
restorePointMark
in class Buffer
Buffer.restorePointMark(long)
public void invoke(java.lang.Runnable doRun)
Buffer
invoke
in class Buffer
Buffer.invoke(java.lang.Runnable)
public int size()
AbstractSequence
size
in interface Sequence
size
in interface java.util.Collection
size
in interface java.util.List
size
in class AbstractSequence
AbstractSequence.size()
public java.lang.Object get(int index)
AbstractSequence
get
in interface Sequence
get
in interface java.util.List
get
in class AbstractSequence
AbstractSequence.get(int)
public int createPos(int index, boolean isAfter)
AbstractSequence
createPos
in class AbstractSequence
index
- offset from beginning of desired positionisAfter
- should the position have the isAfter propertyAbstractSequence.createPos(int, boolean)
public org.eclipse.swt.custom.StyledTextContent getBufferContent()
public int forwardLine(int lines)
forwardLine
in class Buffer
Buffer.forwardLine(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |