Package | twaver.network.interaction |
Class | public class MapFilterInteractionHandler |
Inheritance | MapFilterInteractionHandler ![]() ![]() |
Here is an example how to create a fisheye interaction handlers on network canvas:
network.interactionHandlers = new Collection([ new MapFilterInteractionHandler(network, Consts.MAP_FILTER_FISHEYE, 55, 35) ]); //create a magnifier interaction: network.interactionHandlers = new Collection([ new SelectInteractionHandler(network), new EditInteractionHandler(network), new MoveInteractionHandler(network), new DefaultInteractionHandler(network), new MapFilterInteractionHandler(network, Consts.MAP_FILTER_MAGNIFY), ]);
See also
Property | Defined By | ||
---|---|---|---|
bitmapData : BitmapData
Get bitmap data of this distorted map filter. | MapFilterInteractionHandler | ||
mapFilter : String
Get the distorted image map filter name. | MapFilterInteractionHandler | ||
xRadius : Number
Get x radius of the distorted map filter. | MapFilterInteractionHandler | ||
yRadius : Number
Get y radius of the distorted map filter. | MapFilterInteractionHandler |
Method | Defined By | ||
---|---|---|---|
MapFilterInteractionHandler(network:Network, mapFilter:String, xRadius:int = 100, yRadius:int = 100)
Handler constructor. | MapFilterInteractionHandler | ||
installListeners():void [override]
Install listeners on this interaction. | MapFilterInteractionHandler | ||
uninstallListeners():void [override]
Uninstall listeners on this interaction. | MapFilterInteractionHandler |
bitmapData | property |
bitmapData:BitmapData
Get bitmap data of this distorted map filter. This bitmap data controls the image distortion.
public function get bitmapData():BitmapData
public function set bitmapData(value:BitmapData):void
mapFilter | property |
mapFilter:String
Get the distorted image map filter name. This can be:
public function get mapFilter():String
public function set mapFilter(value:String):void
xRadius | property |
xRadius:Number
Get x radius of the distorted map filter.
public function get xRadius():Number
public function set xRadius(value:Number):void
yRadius | property |
yRadius:Number
Get y radius of the distorted map filter.
public function get yRadius():Number
public function set yRadius(value:Number):void
MapFilterInteractionHandler | () | Constructor |
public function MapFilterInteractionHandler(network:Network, mapFilter:String, xRadius:int = 100, yRadius:int = 100)
Handler constructor.
Parametersnetwork:Network — network handler work with
| |
mapFilter:String (default = NaN ) — the image distorted map filter. This can be:
| |
xRadius:int (default = 100 ) — x radius of the distorted map filter.
| |
yRadius:int (default = 100 ) — y radius of the distorted map filter.
|
installListeners | () | method |
override public function installListeners():void
Install listeners on this interaction.
uninstallListeners | () | method |
override public function uninstallListeners():void
Uninstall listeners on this interaction.