| Package | com.yworks.canvas |
| Class | public class MagnifierComponent |
| Inheritance | MagnifierComponent mx.core.UIComponent |
This component is used by the MagnifierInputMode.
| Property | Defined By | ||
|---|---|---|---|
| size : Number
The diameter of this component. | MagnifierComponent | ||
| zoom : Number
The zoom factor for this component. | MagnifierComponent | ||
| Method | Defined By | ||
|---|---|---|---|
install(canvas:CanvasComponent):void
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 | ||
| Method | Defined By | ||
|---|---|---|---|
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void [override]
| MagnifierComponent | ||
| size | property |
size:NumberThe 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.
public function get size():Number public function set size(value:Number):void| zoom | property |
zoom:NumberThe 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.
public function get zoom():Number public function set zoom(value:Number):void| install | () | method |
public function install(canvas:CanvasComponent):voidInstalls 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):voidSets 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():voidUninstalls this component. Removes the event listeners.
| updateDisplayList | () | method |
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Parameters
unscaledWidth:Number | |
unscaledHeight:Number |