|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.raelity.jvi.Buffer
public abstract class Buffer
Buffer: structure that holds information about one file, primarily per file options. Several windows can share a single Buffer.
Nested Class Summary | |
---|---|
class |
Buffer.VisualBounds
Calculate the 4 boundary points for a visual selection. |
Field Summary | |
---|---|
ViMark |
b_op_end
|
ViMark |
b_op_start
|
boolean |
b_p_et
|
String |
b_p_mps
|
int |
b_p_sw
|
int |
b_p_ts
|
int |
b_p_tw
|
ViMark |
b_visual_end
|
char |
b_visual_mode
|
ViMark |
b_visual_start
|
Constructor Summary | |
---|---|
Buffer(ViTextView tv)
Creates a new instance of Buffer, initialize values from Options. |
Method Summary | |
---|---|
void |
activateOptions(ViTextView tv)
from switchto |
protected int[] |
addBlock(MutableInt idx,
int[] blocks,
int start,
int end)
|
void |
addShare()
|
int[] |
calculateVisualBlocks(Buffer.VisualBounds vb,
int startOffset,
int endOffset)
|
void |
checkModeline()
from switchto, everything else has been setup |
void |
displayFileInfo(ViTextView tv)
|
protected void |
docInsert(int offset,
String s)
|
protected void |
docRemove(int offset,
int length,
String s)
|
static void |
dumpBlocks(String tag,
int[] b)
|
String |
getDisplayFileName()
|
String |
getDisplayFileNameAndSize()
|
int[] |
getHighlightSearchBlocks(int startOffset,
int endOffset)
|
File |
getJavaFile()
|
ViMark |
getMark(int i)
Fetch the lower case mark. |
protected String |
getRemovedText(DocumentEvent e)
|
int |
getShare()
|
int[] |
getVisualSelectBlocks(ViTextView tv,
int startOffset,
int endOffset)
|
protected void |
initOptions()
|
protected boolean |
isInsertMode()
|
String |
modifyFilename(char option)
In the future, to support multiple file modifiers, could take a File as an argument, and return a File. |
void |
removeShare()
|
void |
viOptionSet(ViTextView tv,
String name)
The set command used to change an option |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.raelity.jvi.ViBuffer |
---|
beginInsertUndo, beginUndo, createMark, deleteChar, endInsertUndo, endUndo, getColumnNumber, getDocument, getLength, getLineCount, getLineEndOffset, getLineEndOffsetFromOffset, getLineNumber, getLineSegment, getLineStartOffset, getLineStartOffsetFromOffset, getSegment, getText, insertText, isGuarded, isInInsertUndo, isInUndo, redo, reindent, replaceChar, replaceString, setMarkOffset, undo |
Field Detail |
---|
public int b_p_ts
public int b_p_sw
public boolean b_p_et
public int b_p_tw
public final ViMark b_visual_start
public final ViMark b_visual_end
public char b_visual_mode
public String b_p_mps
public final ViMark b_op_start
public final ViMark b_op_end
Constructor Detail |
---|
public Buffer(ViTextView tv)
Method Detail |
---|
public int getShare()
public void addShare()
public void removeShare()
protected void initOptions()
public void viOptionSet(ViTextView tv, String name)
ViOptionBag
viOptionSet
in interface ViOptionBag
public void activateOptions(ViTextView tv)
activateOptions
in interface ViOptionBag
public void checkModeline()
public ViMark getMark(int i)
ViBuffer
getMark
in interface ViBuffer
public void displayFileInfo(ViTextView tv)
displayFileInfo
in interface ViBuffer
public String getDisplayFileNameAndSize()
getDisplayFileNameAndSize
in interface ViBuffer
public String getDisplayFileName()
getDisplayFileName
in interface ViBuffer
public File getJavaFile()
getJavaFile
in interface ViBuffer
public String modifyFilename(char option)
modifyFilename
in interface ViBuffer
protected String getRemovedText(DocumentEvent e)
protected boolean isInsertMode()
protected void docInsert(int offset, String s)
protected void docRemove(int offset, int length, String s)
public int[] getVisualSelectBlocks(ViTextView tv, int startOffset, int endOffset)
getVisualSelectBlocks
in interface ViBuffer
public int[] calculateVisualBlocks(Buffer.VisualBounds vb, int startOffset, int endOffset)
public int[] getHighlightSearchBlocks(int startOffset, int endOffset)
protected final int[] addBlock(MutableInt idx, int[] blocks, int start, int end)
public static void dumpBlocks(String tag, int[] b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |