gnu.jemacs.buffer

Class EWindow

public abstract class EWindow extends Object

Field Summary
Bufferbuffer
protected intcharHeight
Nominal height in pixels of a character, if non-zero.
protected intcharWidth
Nominal width in pixels of a character, if non-zero.
EFrameframe
protected EWindownextWindow
Next window in cyclic window ordering.
protected int[]pendingKeys
protected intpendingLength
protected EWindowprevWindow
Previous window in cyclic window ordering.
Constructor Summary
EWindow(Buffer buffer)
Method Summary
voiddelete()
protected voiddeleteNoValidate()
voiddeleteOtherWindows()
BuffergetBuffer()
protected abstract voidgetCharSize()
EFramegetFrame()
abstract intgetHeight()
Get the current height (in pixels) of this window.
intgetHeightInLines()
EWindowgetNextWindow(boolean forwards)
Return the next/previous window in the cyclic order of windows.
EWindowgetNextWindowInFrame(int count)
EWindowgetOtherWindow(boolean forwards)
Return the next/previous EWindow in the cyclic order of windows.
abstract intgetPoint()
Returns the "Emacs value" (1-origin) of point.
static EWindowgetSelected()
abstract intgetWidth()
Get the current width (in pixels) of this window.
intgetWidthInColumns()
voidhandleCommand(Object command)
voidhandleKey(int code)
protected voidlinkSibling(EWindow window, boolean horizontal)
Link a new window after this.
ObjectlookupKey(int key)
voidpushPrefix(int prefix)
voidrequestFocus()
voidsetBuffer(Buffer buffer)
abstract voidsetDot(int offset)
voidsetFrame(EFrame frame)
voidsetPoint(int point)
voidsetSelected()
static voidsetSelected(EWindow window)
EWindowsplit(int lines, boolean horizontal)
Split this window into two, showing this buffer in both windows.
abstract EWindowsplit(Buffer buffer, int lines, boolean horizontal)
Split this window into two.
abstract ObjecttooLong(int pendingLength)
StringtoString()
protected voidunlink()
abstract voidunselect()

Field Detail

buffer

public Buffer buffer

charHeight

protected int charHeight
Nominal height in pixels of a character, if non-zero.

charWidth

protected int charWidth
Nominal width in pixels of a character, if non-zero.

frame

public EFrame frame

nextWindow

protected EWindow nextWindow
Next window in cyclic window ordering.

pendingKeys

protected int[] pendingKeys

pendingLength

protected int pendingLength

prevWindow

protected EWindow prevWindow
Previous window in cyclic window ordering.

Constructor Detail

EWindow

public EWindow(Buffer buffer)

Method Detail

delete

public void delete()

deleteNoValidate

protected void deleteNoValidate()

deleteOtherWindows

public void deleteOtherWindows()

getBuffer

public Buffer getBuffer()

getCharSize

protected abstract void getCharSize()

getFrame

public EFrame getFrame()

getHeight

public abstract int getHeight()
Get the current height (in pixels) of this window.

getHeightInLines

public int getHeightInLines()

getNextWindow

public EWindow getNextWindow(boolean forwards)
Return the next/previous window in the cyclic order of windows. Returns null if this is the last/first window in this EFrame.

getNextWindowInFrame

public final EWindow getNextWindowInFrame(int count)

getOtherWindow

public final EWindow getOtherWindow(boolean forwards)
Return the next/previous EWindow in the cyclic order of windows. Returns first/last if this is the last/first window in this EFrame.

getPoint

public abstract int getPoint()
Returns the "Emacs value" (1-origin) of point.

getSelected

public static EWindow getSelected()

getWidth

public abstract int getWidth()
Get the current width (in pixels) of this window.

getWidthInColumns

public int getWidthInColumns()

handleCommand

public void handleCommand(Object command)

handleKey

public void handleKey(int code)

linkSibling

protected final void linkSibling(EWindow window, boolean horizontal)
Link a new window after this.

lookupKey

public Object lookupKey(int key)

pushPrefix

public void pushPrefix(int prefix)

requestFocus

public void requestFocus()

setBuffer

public void setBuffer(Buffer buffer)

setDot

public abstract void setDot(int offset)

setFrame

public final void setFrame(EFrame frame)

setPoint

public final void setPoint(int point)

setSelected

public void setSelected()

setSelected

public static void setSelected(EWindow window)

split

public final EWindow split(int lines, boolean horizontal)
Split this window into two, showing this buffer in both windows.

Returns: the new wndow.

split

public abstract EWindow split(Buffer buffer, int lines, boolean horizontal)
Split this window into two. Display Var>buffer in the new window.

Returns: the new window.

tooLong

public abstract Object tooLong(int pendingLength)

toString

public String toString()

unlink

protected final void unlink()

unselect

public abstract void unselect()