gzz.client
Class Fallback.Win

java.lang.Object
  |
  +--gzz.client.AbstractShower
        |
        +--gzz.client.Fallback.Win
All Implemented Interfaces:
Binder, Obs, Shower, ViewContext
Enclosing class:
Fallback

public class Fallback.Win
extends AbstractShower
implements ViewContext, Binder


Field Summary
 int cellViewIndex
           
 Cell cursor
           
 Dim[] dims
           
 int[] dimsIndices
           
 int textCursor
           
 int viewIndex
           
 
Fields inherited from class gzz.client.AbstractShower
screen
 
Fields inherited from interface gzz.view.ViewContext
rcsid
 
Fields inherited from interface gzz.Obs
rcsid
 
Method Summary
 void backspaceTextCursor()
           
 boolean close()
           
 VobScene generate()
          Generate a new VobScene, corresponding to the current state of the matters.
 Cell getAccursed()
          Get the accursed cell.
 FallbackBinder getBinder()
           
 VobScene getCachedVobScene()
          Get the last generated vob scene.
 CellView getCellView()
           
 java.util.List getCursorColors(Cell c)
          Get the colors of all colored cursors on a cell.
 int getCursorOffset(Cell c)
          Get the offset of the line cursor on a given cell, if any.
 Dim[] getDims()
          Get the dimension list.
 Fallback getFallback()
           
 Fallback.Win getNext()
           
 Fallback.Win getOther()
           
 Fallback.Win getPrev()
           
 View getView()
           
 Cell getWindow()
          Get the maincell of the window, if available.
 void insertText(java.lang.String k)
           
 boolean isMarked(Cell c)
          Whether a given cell is marked by the current mark set.
 void keystroke(java.lang.String s)
          A keystroke.
 void mouse(java.awt.event.MouseEvent ev)
          A mouse event.
 void moveTextCursor(int dir)
           
 void prioritize()
           
 void setUseCachedVobScene(boolean b)
          Specify whether to re-use the last generated vob scene when re-drawing the next time.
 void timeout(java.lang.Object o)
          The timeout (set separately) with the given id expired.
 void updateDims()
           
 void windowClosed()
          A window has been closed by the user.
 
Methods inherited from class gzz.client.AbstractShower
chg, getScreen, setScreen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gzz.client.Binder
setScreen
 

Field Detail

cursor

public Cell cursor

textCursor

public int textCursor

dimsIndices

public int[] dimsIndices

dims

public Dim[] dims

viewIndex

public int viewIndex

cellViewIndex

public int cellViewIndex
Method Detail

updateDims

public void updateDims()

getNext

public Fallback.Win getNext()

getPrev

public Fallback.Win getPrev()

getOther

public Fallback.Win getOther()

close

public boolean close()

getAccursed

public Cell getAccursed()
Description copied from interface: ViewContext
Get the accursed cell.

Specified by:
getAccursed in interface ViewContext

getCursorColors

public java.util.List getCursorColors(Cell c)
Description copied from interface: ViewContext
Get the colors of all colored cursors on a cell. Return null if there are no colored cursors on this cell.

Specified by:
getCursorColors in interface ViewContext

getDims

public Dim[] getDims()
Description copied from interface: ViewContext
Get the dimension list.

Specified by:
getDims in interface ViewContext

getCursorOffset

public int getCursorOffset(Cell c)
Description copied from interface: ViewContext
Get the offset of the line cursor on a given cell, if any. If no line cursor should be rendered on the given cell, return -1.

Specified by:
getCursorOffset in interface ViewContext

isMarked

public boolean isMarked(Cell c)
Description copied from interface: ViewContext
Whether a given cell is marked by the current mark set.

Specified by:
isMarked in interface ViewContext

getCellView

public CellView getCellView()
Specified by:
getCellView in interface ViewContext

getWindow

public Cell getWindow()
Description copied from interface: ViewContext
Get the maincell of the window, if available. This cell can be used to acquire more metadata about how to render the view. If there is no maincell for the window (because we're running in fallback mode), an UnsupportedOperationException is thrown.

Specified by:
getWindow in interface ViewContext

insertText

public void insertText(java.lang.String k)

prioritize

public void prioritize()

moveTextCursor

public void moveTextCursor(int dir)

backspaceTextCursor

public void backspaceTextCursor()

getCachedVobScene

public VobScene getCachedVobScene()
Get the last generated vob scene.


setUseCachedVobScene

public void setUseCachedVobScene(boolean b)
Specify whether to re-use the last generated vob scene when re-drawing the next time. This allows making changes to that vob scene (through getCachedVobScene()) and redraw quickly.


generate

public VobScene generate()
Description copied from interface: Shower
Generate a new VobScene, corresponding to the current state of the matters.

Specified by:
generate in interface Shower

getView

public View getView()
Specified by:
getView in interface ViewContext

keystroke

public void keystroke(java.lang.String s)
Description copied from interface: Binder
A keystroke.

Specified by:
keystroke in interface Binder

mouse

public void mouse(java.awt.event.MouseEvent ev)
Description copied from interface: Binder
A mouse event.

Specified by:
mouse in interface Binder

timeout

public void timeout(java.lang.Object o)
Description copied from interface: Binder
The timeout (set separately) with the given id expired.

Specified by:
timeout in interface Binder

windowClosed

public void windowClosed()
Description copied from interface: Binder
A window has been closed by the user.

Specified by:
windowClosed in interface Binder

getBinder

public FallbackBinder getBinder()

getFallback

public Fallback getFallback()