gzz.client
Class Fallback

java.lang.Object
  |
  +--gzz.client.Fallback

public class Fallback
extends java.lang.Object

A fallback client, which does not depend on the structure in any way. Having the window cells, bindings etc in the structure is VERY nice and clean but also dangerous when doing bleeding-edge development. This fallback client is here to make sure that whatever happens, it will be possible to edit the structure.

The point is that we made a big mistake: we should NEVER have started using the structure for ANYTHING before we had a way to edit it without relying on things in it. For example, think about RASTER ERROR of 0.6.0 and before: it could occur when some cursor pointed to the wrong place. In 0.6.0 there might not be any way to fix this.

Because of this, we can only really use cursors, bindings etc. in the structure IF WE CAN INTERACTIVELY BUILD AND EDIT THEM BEFORE TURNING THEM "ON".

An analogy would be if we were at the same programming a text editor, a compiler and a kernel. All on the same system, so that the only way to edit anything would be either to use a hex editor on the raw disk files, or our experimental system. Not a very nice proposition; in such a situation, we would have to first develop the components on an existing system, separately, to avoid having too many moving parts at once.

The fallback client is fixed to the two windows.

It implements a subset of the 0.6.0 bindings.


Nested Class Summary
static interface Fallback.ColorScheme
           
static class Fallback.FallbackDim
          A name and a dimension object.
static class Fallback.LightColorScheme
           
 class Fallback.Win
           
 
Field Summary
 FallbackBinder binder
           
 CellView[] cellViewList
           
static boolean dbg
           
 Fallback.FallbackDim[] dimList
           
 Filer.Group filers
          The group of filers we use for saving.
static GraphicsAPI gfxapi
           
static int LEFT
           
 Space linkSpace
          The Space we use for xu links for now.
 int mode
          The current mode.
static int NORMAL
           
static java.lang.String rcsid
           
static int RIGHT
           
static int SEARCH
           
 Space space
           
static int TEXT_1
           
 View[] viewList
           
 java.util.List windowList
          The list of *all* windows, regardless of arrowset
 Fallback.Win[] windows
          Windows, by arrowset (LEFT or RIGHT)
 XuIndexer xuIndexer
          The XuIndexer-- in a different space for now.
 
Constructor Summary
Fallback(Cell start, Space linkSpace, FallbackBinder binder, Fallback.FallbackDim[] dimList, FallbackSceneDecorator[] decorators, View[] viewList, java.util.Map viewSpecificBinders, CellView[] cellViewList, Filer.Group filers)
           
 
Method Summary
 Fallback.Win newWindow(Cell cursor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rcsid

public static final java.lang.String rcsid
See Also:
Constant Field Values

dbg

public static boolean dbg

gfxapi

public static GraphicsAPI gfxapi

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

TEXT_1

public static final int TEXT_1
See Also:
Constant Field Values

SEARCH

public static final int SEARCH
See Also:
Constant Field Values

mode

public int mode
The current mode.


LEFT

public static final int LEFT
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

windows

public Fallback.Win[] windows
Windows, by arrowset (LEFT or RIGHT)


windowList

public java.util.List windowList
The list of *all* windows, regardless of arrowset


filers

public Filer.Group filers
The group of filers we use for saving.


xuIndexer

public XuIndexer xuIndexer
The XuIndexer-- in a different space for now.


linkSpace

public Space linkSpace
The Space we use for xu links for now.


space

public Space space

viewList

public View[] viewList

cellViewList

public CellView[] cellViewList

binder

public FallbackBinder binder

dimList

public Fallback.FallbackDim[] dimList
Constructor Detail

Fallback

public Fallback(Cell start,
                Space linkSpace,
                FallbackBinder binder,
                Fallback.FallbackDim[] dimList,
                FallbackSceneDecorator[] decorators,
                View[] viewList,
                java.util.Map viewSpecificBinders,
                CellView[] cellViewList,
                Filer.Group filers)
Method Detail

newWindow

public Fallback.Win newWindow(Cell cursor)