Java Doc for Buffer.java in  » Scripting » Kawa » gnu » jemacs » buffer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » Kawa » gnu.jemacs.buffer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gnu.lists.AbstractSequence
      gnu.jemacs.buffer.Buffer

All known Subclasses:   gnu.jemacs.swt.SwtBuffer,  gnu.jemacs.swing.SwingBuffer,
Buffer
abstract public class Buffer extends AbstractSequence implements CharSeq(Code)


Field Summary
public  EKeymap[]activeKeymaps
    
 intactiveLength
    
public static  java.util.Hashtablebuffers
     Map buffer names to buffers.
static  Buffercurrent
    
 inteliminated
    
 Stringencoding
    
public static  java.util.HashtablefileBuffers
    
 Object[]localBindings
     Buffer-local variable bindings. Represented as pairs of (Symbol, value)-pairs: For an even integer i, if localBindings[i] is a Symbol, there is a buffer-local binding whose value is localBindings{i+1].
 EKeymaplocalKeymap
    
public  MarkermarkMarker
    
 Modemodes
     List of modes active for this buffer, major mode first.
 Stringname
    
 Pathpath
    
public  MarkerpointMarker
    
 inttabWidth
    

Constructor Summary
public  Buffer(String name)
    

Method Summary
public  voidbackwardChar(int i)
    
public  charcharAt(int index)
    
public  intcharWidth(char ch, int column)
    
public  intcheckMark()
    
public static  BuffercoerceBuffer(Object buf)
    
public  voidconsume(int start, int count, gnu.lists.Consumer out)
    
public  intcountColumns(char[] chars, int start, int count, int initial)
    
public  intcurrentColumn()
    
public  intcurrentColumn(int offset)
     Return the column number at a specified offset.
public  EWindowdisplay(boolean notThisWindow, EFrame frame)
    
public  voidfill(char value)
    
public  voidfill(int fromIndex, int toIndex, char value)
    
public static  BufferfindFile(String fname)
    
public  voidforwardChar(int i)
    
final public  longforwardLine(int lines, int start)
     Find the position a give number of lines forward or backward.
public  intforwardLine(int lines)
    
public static  StringgenerateNewBufferName(String start)
    
public static  BuffergetBuffer(String name)
    
public  voidgetChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
    
public static  BuffergetCurrent()
    
public  intgetDot()
    
public  StringgetFileName()
    
abstract public  intgetLength()
    
public  EKeymapgetLocalKeymap()
    
public  MarkergetMarkMarker(boolean force)
    
public  StringgetName()
    
public  PathgetPath()
    
public  intgetPoint()
    
public  MarkergetPointMarker(boolean share)
    
abstract public  CharSeqgetStringContent()
    
abstract public  voidinsert(String string, Object style, int ipos)
     Insert string with given style at position pair.
public  voidinsert(char[] chars, int offset, int count, Object style, int ipos)
     Insert character with given style at position pair.
public  voidinsert(String string, Object style)
    
public  voidinsert(Object value, Object style)
    
public  voidinsert(char ch, int count)
     Insert count copies of ch at point.
public  voidinsert(char ch, int count, Object style)
     Insert count copies of ch at point.
public  voidinsertAll(Object[] values, Object style)
    
abstract public  voidinsertFile(Reader in)
    
public  voidinsertFile(String filename)
    
abstract public  voidinvoke(Runnable doRun)
     This is intended for Runnable's that may affect the state of the buffer.
final public  intlength()
    
abstract public  intlineStartOffset(int offset)
    
public  intlineStartOffset()
    
public static  voidmakeBufferLocal(Object symbol, boolean all)
    
abstract public  intmaxDot()
    
public  intminDot()
    
public  intmoveToColumn(int column, boolean force)
    
abstract public  InPortopenReader(int start, int count)
    
public  intpositionToOffset(Object position)
     Convert an Emacs position (Marker, or 1-origin integer) to a (0-origin) buffer offset.
abstract public  voidredrawModeline()
    
abstract public  voidremoveAll()
    
public  voidremoveChar(int count)
    
abstract public  voidrestorePointMark(long pointMark)
    
abstract public  voidsave(Writer out)
    
public  voidsave()
    
abstract public  longsavePointMark()
    
abstract public  longscan(char target, int start, int end, int count, boolean allowQuit)
     Search in BUF for COUNT instances of the character TARGET between START and END. If COUNT is positive, search forwards; END must be >= START. If COUNT is negative, search backwards for the -COUNTth instance; END must be <= START. If COUNT is zero, do anything you please; run rogue, for all I care. If END is zero, use beginning or end of (FIXME: accessible part of) the buffer, as appropriate for the direction indicated by COUNT. If we find COUNT instances, SHORTAGE is zero, and return the position after the COUNTth match.
public  voidsetCharAt(int index, char ch)
    
public static  voidsetCurrent(Buffer buffer)
    
public  voidsetDot(int i)
    
public  voidsetFileName(String fname)
    
public  voidsetLocalKeymap(EKeymap map)
    
public  voidsetPath(Path path)
    
final public  voidsetPoint(int i)
    
public  CharSequencesubSequence(int start, int end)
    
public  StringtoString()
    
public  voidwriteTo(int start, int count, java.io.Writer dest)
    
public  voidwriteTo(java.io.Writer str)
    

Field Detail
activeKeymaps
public EKeymap[] activeKeymaps(Code)



activeLength
int activeLength(Code)



buffers
public static java.util.Hashtable buffers(Code)
Map buffer names to buffers.



current
static Buffer current(Code)



eliminated
int eliminated(Code)



encoding
String encoding(Code)



fileBuffers
public static java.util.Hashtable fileBuffers(Code)
Map file names to buffer.s



localBindings
Object[] localBindings(Code)
Buffer-local variable bindings. Represented as pairs of (Symbol, value)-pairs: For an even integer i, if localBindings[i] is a Symbol, there is a buffer-local binding whose value is localBindings{i+1].



localKeymap
EKeymap localKeymap(Code)



markMarker
public Marker markMarker(Code)



modes
Mode modes(Code)
List of modes active for this buffer, major mode first.



name
String name(Code)



path
Path path(Code)



pointMarker
public Marker pointMarker(Code)



tabWidth
int tabWidth(Code)




Constructor Detail
Buffer
public Buffer(String name)(Code)




Method Detail
backwardChar
public void backwardChar(int i)(Code)



charAt
public char charAt(int index)(Code)

See Also:   gnu.lists.CharSeq.charAt(int)



charWidth
public int charWidth(char ch, int column)(Code)



checkMark
public int checkMark()(Code)



coerceBuffer
public static Buffer coerceBuffer(Object buf)(Code)



consume
public void consume(int start, int count, gnu.lists.Consumer out)(Code)

See Also:   gnu.lists.CharSeq.consume(intintgnu.lists.Consumer)



countColumns
public int countColumns(char[] chars, int start, int count, int initial)(Code)



currentColumn
public int currentColumn()(Code)



currentColumn
public int currentColumn(int offset)(Code)
Return the column number at a specified offset.



display
public EWindow display(boolean notThisWindow, EFrame frame)(Code)



fill
public void fill(char value)(Code)

See Also:   gnu.lists.CharSeq.fill(char)



fill
public void fill(int fromIndex, int toIndex, char value)(Code)

See Also:   gnu.lists.CharSeq.fill(intintchar)



findFile
public static Buffer findFile(String fname)(Code)



forwardChar
public void forwardChar(int i)(Code)



forwardLine
final public long forwardLine(int lines, int start)(Code)
Find the position a give number of lines forward or backward. A side-effect-free version of Emacs's forward-line function.
Parameters:
  lines - number of lines forward (or backward if negative)
Parameters:
  start - initial position (buffer offset) (SHORTAGE<<32|POS)



forwardLine
public int forwardLine(int lines)(Code)



generateNewBufferName
public static String generateNewBufferName(String start)(Code)



getBuffer
public static Buffer getBuffer(String name)(Code)



getChars
public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)(Code)

See Also:   gnu.lists.CharSeq.getChars(intintchar[]int)



getCurrent
public static Buffer getCurrent()(Code)



getDot
public int getDot()(Code)



getFileName
public String getFileName()(Code)



getLength
abstract public int getLength()(Code)



getLocalKeymap
public EKeymap getLocalKeymap()(Code)



getMarkMarker
public Marker getMarkMarker(boolean force)(Code)



getName
public String getName()(Code)



getPath
public Path getPath()(Code)



getPoint
public int getPoint()(Code)



getPointMarker
public Marker getPointMarker(boolean share)(Code)



getStringContent
abstract public CharSeq getStringContent()(Code)



insert
abstract public void insert(String string, Object style, int ipos)(Code)
Insert string with given style at position pair.



insert
public void insert(char[] chars, int offset, int count, Object style, int ipos)(Code)
Insert character with given style at position pair.



insert
public void insert(String string, Object style)(Code)



insert
public void insert(Object value, Object style)(Code)



insert
public void insert(char ch, int count)(Code)
Insert count copies of ch at point.



insert
public void insert(char ch, int count, Object style)(Code)
Insert count copies of ch at point.



insertAll
public void insertAll(Object[] values, Object style)(Code)



insertFile
abstract public void insertFile(Reader in) throws Exception(Code)



insertFile
public void insertFile(String filename)(Code)



invoke
abstract public void invoke(Runnable doRun)(Code)
This is intended for Runnable's that may affect the state of the buffer. The implementation should make shure that the GUI is properly updated before control returns
Parameters:
  doRun -



length
final public int length()(Code)



lineStartOffset
abstract public int lineStartOffset(int offset)(Code)



lineStartOffset
public int lineStartOffset()(Code)



makeBufferLocal
public static void makeBufferLocal(Object symbol, boolean all)(Code)

Parameters:
  all - true if make-variable-buffer-local,false if make-local-variable FIXME



maxDot
abstract public int maxDot()(Code)



minDot
public int minDot()(Code)



moveToColumn
public int moveToColumn(int column, boolean force)(Code)



openReader
abstract public InPort openReader(int start, int count)(Code)



positionToOffset
public int positionToOffset(Object position)(Code)
Convert an Emacs position (Marker, or 1-origin integer) to a (0-origin) buffer offset.



redrawModeline
abstract public void redrawModeline()(Code)



removeAll
abstract public void removeAll()(Code)



removeChar
public void removeChar(int count)(Code)



restorePointMark
abstract public void restorePointMark(long pointMark)(Code)



save
abstract public void save(Writer out) throws Exception(Code)



save
public void save()(Code)



savePointMark
abstract public long savePointMark()(Code)



scan
abstract public long scan(char target, int start, int end, int count, boolean allowQuit)(Code)
Search in BUF for COUNT instances of the character TARGET between START and END. If COUNT is positive, search forwards; END must be >= START. If COUNT is negative, search backwards for the -COUNTth instance; END must be <= START. If COUNT is zero, do anything you please; run rogue, for all I care. If END is zero, use beginning or end of (FIXME: accessible part of) the buffer, as appropriate for the direction indicated by COUNT. If we find COUNT instances, SHORTAGE is zero, and return the position after the COUNTth match. Note that for reverse motion this is not the same as the usual convention for Emacs motion commands. If we don't find COUNT instances before reaching END, set SHORTAGE to the number of TARGETs left unfound, and return (shortage<<32|END). (SHORTAGE<<32|POS)



setCharAt
public void setCharAt(int index, char ch)(Code)

See Also:   gnu.lists.CharSeq.setCharAt(intchar)



setCurrent
public static void setCurrent(Buffer buffer)(Code)



setDot
public void setDot(int i)(Code)



setFileName
public void setFileName(String fname)(Code)



setLocalKeymap
public void setLocalKeymap(EKeymap map)(Code)



setPath
public void setPath(Path path)(Code)



setPoint
final public void setPoint(int i)(Code)



subSequence
public CharSequence subSequence(int start, int end)(Code)



toString
public String toString()(Code)



writeTo
public void writeTo(int start, int count, java.io.Writer dest) throws java.io.IOException(Code)

See Also:   gnu.lists.CharSeq.writeTo(intintjava.io.Writer)



writeTo
public void writeTo(java.io.Writer str) throws java.io.IOException(Code)



Methods inherited from gnu.lists.AbstractSequence
public boolean add(Object o)(Code)(Java Doc)
public void add(int index, Object o)(Code)(Java Doc)
public boolean addAll(Collection c)(Code)(Java Doc)
public boolean addAll(int index, Collection c)(Code)(Java Doc)
protected int addPos(int ipos, Object value)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
public int compare(int ipos1, int ipos2)(Code)(Java Doc)
final public int compare(SeqPosition i1, SeqPosition i2)(Code)(Java Doc)
public static int compare(AbstractSequence seq1, int pos1, AbstractSequence seq2, int pos2)(Code)(Java Doc)
public void consume(Consumer out)(Code)(Java Doc)
public boolean consumeNext(int ipos, Consumer out)(Code)(Java Doc)
public void consumePosRange(int iposStart, int iposEnd, Consumer out)(Code)(Java Doc)
public boolean contains(Object o)(Code)(Java Doc)
public boolean containsAll(Collection c)(Code)(Java Doc)
public int copyPos(int ipos)(Code)(Java Doc)
abstract public int createPos(int index, boolean isAfter)(Code)(Java Doc)
public int createRelativePos(int pos, int delta, boolean isAfter)(Code)(Java Doc)
final public Enumeration elements()(Code)(Java Doc)
public int endPos()(Code)(Java Doc)
public boolean equals(int ipos1, int ipos2)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public void fill(Object value)(Code)(Java Doc)
public void fill(int fromIndex, int toIndex, Object value)(Code)(Java Doc)
public void fillPosRange(int fromPos, int toPos, Object value)(Code)(Java Doc)
public int firstAttributePos(int ipos)(Code)(Java Doc)
public int firstChildPos(int ipos)(Code)(Java Doc)
public int firstChildPos(int ipos, ItemPredicate predicate)(Code)(Java Doc)
protected int fromEndIndex(int ipos)(Code)(Java Doc)
abstract public Object get(int index)(Code)(Java Doc)
public Object get(int[] indexes)(Code)(Java Doc)
public Object getAttribute(int index)(Code)(Java Doc)
public int getAttributeLength()(Code)(Java Doc)
protected int getContainingSequenceSize(int ipos)(Code)(Java Doc)
public int getEffectiveIndex(int[] indexes)(Code)(Java Doc)
protected int getIndexDifference(int ipos1, int ipos0)(Code)(Java Doc)
final public SeqPosition getIterator()(Code)(Java Doc)
public SeqPosition getIterator(int index)(Code)(Java Doc)
public SeqPosition getIteratorAtPos(int ipos)(Code)(Java Doc)
public int getLowBound(int dim)(Code)(Java Doc)
public int getNextKind(int ipos)(Code)(Java Doc)
public String getNextTypeName(int ipos)(Code)(Java Doc)
public Object getNextTypeObject(int ipos)(Code)(Java Doc)
public Object getPosNext(int ipos)(Code)(Java Doc)
public Object getPosPrevious(int ipos)(Code)(Java Doc)
public int getSize(int dim)(Code)(Java Doc)
protected boolean gotoAttributesStart(TreePosition pos)(Code)(Java Doc)
final public boolean gotoChildrenStart(TreePosition pos)(Code)(Java Doc)
protected boolean gotoParent(TreePosition pos)(Code)(Java Doc)
public boolean hasNext(int ipos)(Code)(Java Doc)
protected boolean hasPrevious(int ipos)(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public int indexOf(Object o)(Code)(Java Doc)
protected boolean isAfterPos(int ipos)(Code)(Java Doc)
public boolean isEmpty()(Code)(Java Doc)
final public Iterator iterator()(Code)(Java Doc)
public int lastIndexOf(Object o)(Code)(Java Doc)
final public ListIterator listIterator()(Code)(Java Doc)
final public ListIterator listIterator(int index)(Code)(Java Doc)
protected int nextIndex(int ipos)(Code)(Java Doc)
final public int nextIndex(SeqPosition pos)(Code)(Java Doc)
public int nextMatching(int startPos, ItemPredicate type, int endPos, boolean descend)(Code)(Java Doc)
public int nextPos(int ipos)(Code)(Java Doc)
public int parentPos(int ipos)(Code)(Java Doc)
public int previousPos(int ipos)(Code)(Java Doc)
public int rank()(Code)(Java Doc)
protected void releasePos(int ipos)(Code)(Java Doc)
public Object remove(int index)(Code)(Java Doc)
public boolean remove(Object o)(Code)(Java Doc)
public boolean removeAll(Collection c)(Code)(Java Doc)
public void removePos(int ipos, int count)(Code)(Java Doc)
protected void removePosRange(int ipos0, int ipos1)(Code)(Java Doc)
public boolean retainAll(Collection c)(Code)(Java Doc)
public Object set(int[] indexes, Object value)(Code)(Java Doc)
public Object set(int index, Object element)(Code)(Java Doc)
protected void setPosNext(int ipos, Object value)(Code)(Java Doc)
protected void setPosPrevious(int ipos, Object value)(Code)(Java Doc)
abstract public int size()(Code)(Java Doc)
public int stableCompare(AbstractSequence other)(Code)(Java Doc)
public int startPos()(Code)(Java Doc)
public List subList(int fromIx, int toIx)(Code)(Java Doc)
public Sequence subSequence(SeqPosition start, SeqPosition end)(Code)(Java Doc)
protected Sequence subSequencePos(int ipos0, int ipos1)(Code)(Java Doc)
public Object[] toArray()(Code)(Java Doc)
public Object[] toArray(Object[] arr)(Code)(Java Doc)
public void toString(String sep, StringBuffer sbuf)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
protected RuntimeException unsupported(String text)(Code)(Java Doc)
public static RuntimeException unsupportedException(String text)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.