Packagecom.yworks.canvas
Classpublic class MagnifierComponent
InheritanceMagnifierComponent Inheritance mx.core.UIComponent

A component which displays an exact copy of the given object tree.

This component is used by the MagnifierInputMode.



Public Properties
 PropertyDefined By
  size : Number
The diameter of this component.
MagnifierComponent
  zoom : Number
The zoom factor for this component.
MagnifierComponent
Public Methods
 MethodDefined By
  
Installs the component on the given canvas.
MagnifierComponent
  
setCenter(x:Number, y:Number):void
Sets the center point of this component.
MagnifierComponent
  
uninstall():void
Uninstalls this component.
MagnifierComponent
Protected Methods
 MethodDefined By
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[override]
MagnifierComponent
Property Detail
sizeproperty
size:Number

The diameter of this component.

To get a proper clip, the size should always be set by this property instead of using the width and height properties.

This component has the shape of a square, i.e. width and height are always identical when set by this property.

The default value is 200.


Implementation
    public function get size():Number
    public function set size(value:Number):void
zoomproperty 
zoom:Number

The zoom factor for this component.

A zoom level of 1.0 will make each unit in world-coordinate space appear exactly one unit in screen coordinates wide.

The default value is 1.


Implementation
    public function get zoom():Number
    public function set zoom(value:Number):void
Method Detail
install()method
public function install(canvas:CanvasComponent):void

Installs the component on the given canvas.

Creates a clone of the object tree and installs listeners which listen to changes of that tree.

Parameters

canvas:CanvasComponent — The canvas install this component on.

setCenter()method 
public function setCenter(x:Number, y:Number):void

Sets the center point of this component.

Parameters

x:Number — The x coordinate of the center in world coordinates.
 
y:Number — The y coordinate of the center in world coordinates.

uninstall()method 
public function uninstall():void

Uninstalls this component. Removes the event listeners.

updateDisplayList()method 
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Parameters

unscaledWidth:Number
 
unscaledHeight:Number