Name

LzLazyReplicationManager — An optimization for displaying large sets of data.

Synopsis

JavaScript: LzLazyReplicationManager
Type: Class
Access: public
Topic: LFC.Data
Declared in: WEB-INF/lps/lfc/data/LzLazyReplicationManager.lzs

Description

If a datapath's replication attribute is set to lazy, then a match to multiple nodes will create an LzLazyReplicationManager instead of an LzReplicationManager. The lazy replication manager creates only enough replicated views in order to display the data, so there is not a view for each data node. This enables the display of very large datasets.

See Lazy Replication in the Guide for examples of how to use lazy replication, and restrictions on its use.

Also see the paging.lzx example for an example of lazy replication.

In addition to any fields documented in the section below, these fields are also available: axis: The axis for layout of replicated views. spacing: The spacing between replicated views

Development Note

A lazy replication manager is most like a regular replication manager except that it is design to limit the amount of replication by recognizing a mask above the replicated views. The lazy replication manager creates only as many views as are necessary to display underneath the mask. As the view containing the replicated views is moved, the data for each view is updated to give the appearance that there is a much larger set of views.Views replicated by a lazy replication manager ignore layouts -- the replication manager controls the layout completely.

Superclass Chain

node (LzNode) » datapointer (LzDatapointer) » datapath (LzDatapath) » LzReplicationManager » LzLazyReplicationManager

Known Subclasses

Known Direct Subclasses: LzResizeReplicationManager

Details

Constructor Arguments (3)

axis
pooling
spacing

Properties (5)

axis
public var axis = y;
The axis for layout of replicated views
mask
public var mask = null;
spacing
public var spacing = 0.0;
The spacing between replicated views
totalsize
public var totalsize = 0.0;
viewsize
public var viewsize = 0.0;

Methods (7)

construct()
private function construct(odp, args);
getCloneForNode()
private function getCloneForNode(p, dontmake);
getCloneNumber()
public function getCloneNumber(n : Number) : LzView;
Retuns a pointer to the nth clone controlled by the replication manager
__LZadjustVisibleClones()
private function __LZadjustVisibleClones(ln, nn);
__LZHandleNoNodes()
private function __LZHandleNoNodes();
__LZsetCloneAttrs()
private function __LZsetCloneAttrs();
toString()
private function toString();

Prototype Properties (1)

pooling
public var pooling = true;

JavaScript Synopsis

public LzLazyReplicationManager extends  LzReplicationManager  {
  public var axis  = y;
  public var mask  = null;
  public var spacing  = 0.0;
  public var totalsize  = 0.0;
  public var viewsize  = 0.0;
  prototype private function construct (odp, args);
  prototype private function getCloneForNode (p, dontmake);
  prototype public function getCloneNumber (n : Number) : LzView;
  prototype private function __LZadjustVisibleClones (ln, nn);
  prototype private function __LZHandleNoNodes ();
  prototype private function __LZsetCloneAttrs ();
  prototype public var pooling  = true;
  prototype private function toString ();
}