Layer management

Divide and create a several presentation layers, make sure they only do the different things, will make everything easier.

This is a sample of presentation in Excel:

The design of layer management looks like:
ViewportController is one layer of control, see Viewport controller.

Event dispatch

Like other UI frameworks, applications, when there are several layers, they do different things inside a same presentation region of control, they are all able to receive the events of mouse and keyboard. How to decide that which layer should to receive the mouse events, or keyboard events should be dispatched to which layer, a mechanism and a collection of the interfaces and classes, for the mechanism will be imported into ReoGrid, this main class is LayerManagement and layer implementation of interface called LayerController. Events will be dispatched to each layer, request the layers to handle the event.

Image of event dispatch:

Last edited Jan 13, 2014 at 1:03 PM by unvell, version 6