| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectgnu.lists.AbstractSequencegnu.jemacs.buffer.Buffergnu.jemacs.swing.SwingBufferpublic class SwingBufferextends BufferField Summary | |
BufferContent | |
Caret | |
static Style | |
DefaultStyledDocument | |
Style | |
StyledDocument | |
static Style | |
static javax.swing.text.StyleContext | |
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, 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, eofValue | |
Constructor Summary | |
| |
| |
Method Summary | |
int |
|
Object |
|
int |
|
int | |
CharSeq | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
int |
|
int |
|
int |
|
InPort |
|
void | |
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
long | |
long |
|
void |
|
int |
|
Methods inherited from class gnu.jemacs.buffer.Buffer | |
backwardChar, charAt, charWidth, checkMark, coerceBuffer, consume, countColumns, currentColumn, currentColumn, display, fill, fill, findFile, forwardChar, forwardLine, forwardLine, generateNewBufferName, getBuffer, getChars, getCurrent, getDot, getFileName, getLength, getLocalKeymap, getMarkMarker, getName, getPoint, getPointMarker, getStringContent, insert, insert, insert, insert, insert, insert, insertAll, insertFile, insertFile, invoke, length, lineStartOffset, lineStartOffset, makeBufferLocal, maxDot, minDot, moveToColumn, openReader, positionToOffset, redrawModeline, removeAll, removeChar, restorePointMark, save, save, savePointMark, scan, setCharAt, setCurrent, setDot, setFileName, setLocalKeymap, setPoint, subSequence, toString, writeTo, writeTo | |
public Caret curPosition
public static Style defaultStyle
public DefaultStyledDocument doc
public Style inputStyle
public StyledDocument modelineDocument
public static Style redStyle
public static javax.swing.text.StyleContext styles
public int createPos(int index,
boolean isAfter)Generate a position at a given index. The result is a position cookie that must be free'd with releasePos.
- Overrides:
- createPos in interface AbstractSequence
- Parameters:
index- offset from beginning of desired positionisAfter- should the position have the isAfter property
public void insert(int index,
String string,
Object style)public void insertFile(Reader in)
throws Exception
- Overrides:
- insertFile in interface Buffer
public void invoke(Runnable doRun)
- See Also:
gnu.jemacs.buffer.Buffer.invoke(java.lang.Runnable)
public int nextIndex(int ipos)
Get the offset from the beginning corresponding to a position cookie.
- Overrides:
- nextIndex in interface AbstractSequence
public void removePos(int ipos,
int count)Remove one or more elements.
- Overrides:
- removePos in interface AbstractSequence
- Parameters:
ipos- position where elements should be removedcount- if non-negative, remove that number of elements following (poses, posNumber); if negative the negative of the number of elements to remove before (poses, posNumber).
public void removeRegion(int start,
int end)
throws javax.swing.text.BadLocationExceptionpublic void restorePointMark(long pointMark)
- Overrides:
- restorePointMark in interface Buffer
public long scan(char target,
int start,
int end,
int count,
boolean allowQuit)