Packagecom.yworks.yfiles.util
Classpublic class NodeMapAdapter
InheritanceNodeMapAdapter Inheritance YObject Inheritance Object
Implements NodeMap

This class is an abstract empty implementation of the NodeMap interface. Subclasses



Public Methods
 MethodDefined By
  
NodeMapAdapter(init:Boolean = true)
NodeMapAdapter
 Inherited
equals(o:Object):Boolean
YObject
  
getBool(key:Object):Boolean
Returns the boolean value bound to the given node.
NodeMapAdapter
  
getClass():Class
[override]
NodeMapAdapter
  
getDouble(key:Object):Number
Returns the double value bound to the given node.
NodeMapAdapter
  
getInt(key:Object):int
Returns the integer value bound to the given node.
NodeMapAdapter
  
getObject(key:Object):Object
Returns the value bound to the given node.
NodeMapAdapter
 Inherited
hashCode():int
YObject
  
setBool(key:Object, value:Boolean):void
Associates the given boolean value to with the given node.
NodeMapAdapter
  
setDouble(key:Object, value:Number):void
Associates the given double value to with the given node.
NodeMapAdapter
  
setInt(key:Object, value:int):void
Associates the given integer value to with the given node.
NodeMapAdapter
  
setObject(key:Object, value:Object):void
Associates the given value to with the given node.
NodeMapAdapter
Protected Methods
 MethodDefined By
  
NodeMapAdapter
Constructor Detail
NodeMapAdapter()Constructor
public function NodeMapAdapter(init:Boolean = true)



Parameters
init:Boolean (default = true)
Method Detail
getBool()method
public function getBool(key:Object):Boolean

Returns the boolean value bound to the given node.

Precondition The value must have been associated to the given node by a call to setBool.

Parameters

key:Object

Returns
Booleanfalse
getClass()method 
override public function getClass():Class

Returns
Class
getDouble()method 
public function getDouble(key:Object):Number

Returns the double value bound to the given node.

Precondition The value must have been associated to the given node by a call to setDouble.

Parameters

key:Object

Returns
Number0.0d
getInt()method 
public function getInt(key:Object):int

Returns the integer value bound to the given node.

Precondition The value must have been associated to the given node by a call to setInt.

Parameters

key:Object

Returns
int0
getObject()method 
public function getObject(key:Object):Object

Returns the value bound to the given node.

Parameters

key:Object

Returns
Objectnull
initNodeMapAdapter()method 
protected final function initNodeMapAdapter():void

setBool()method 
public function setBool(key:Object, value:Boolean):void

Associates the given boolean value to with the given node.

Parameters

key:Object
 
value:Boolean

setDouble()method 
public function setDouble(key:Object, value:Number):void

Associates the given double value to with the given node.

Parameters

key:Object
 
value:Number

setInt()method 
public function setInt(key:Object, value:int):void

Associates the given integer value to with the given node.

Parameters

key:Object
 
value:int

setObject()method 
public function setObject(key:Object, value:Object):void

Associates the given value to with the given node.

Parameters

key:Object
 
value:Object