Name

LzViewLinkage

Synopsis

JavaScript: LzViewLinkage
Type: Class
Access: private
Topic: LFC.Views
Declared in: WEB-INF/lps/lfc/views/LzViewLinkage.lzs

Description

This is an object which is capable of transformations between two views. It is somewhat slow to create, but once created should perform the transformations quickly. Use of this object has been deprecated. In general, it is bad practice to use scaling views as non-leaf nodes in the view hierarchy. Constraints are generally sufficient for non-scaling relation An LzViewLinkage has two useful properties: a scale and an offset. In addition to any fields documented in the section below, these fields are also available: scale: An LzPoint representing the scale transformation of this linkage. 1 is no transformation. offset: An LzPoint representing the offset to be added by this linkage. Each of these objects have two slots (x and y) which contain the relevant scales and offsets between the two views in the linkage.

Superclass Chain

LzViewLinkage

Known Subclasses

Details

Methods (3)

_dbg_name()
private function _dbg_name();
Debug name gives the linkage as a 2d transform, just for yuks
initialize()
public function initialize(fromView, toView);
update()
public function update(xory);
Updates the offset and scale of the view linkage.

JavaScript Synopsis

private LzViewLinkage {
  prototype private function _dbg_name ();
  prototype public function initialize (fromView, toView);
  prototype public function update (xory);
}