Packagecom.yworks.canvas.input.snapLines
Classpublic class ResourceKey
InheritanceResourceKey Inheritance Object

ResourceKeys are used as unique identifier on how to visualize a SnapLine. In the SnapResult's getDisplayObjectCreator method this key is passed to SnapContext.createDisplayObjectCreator to retrieve an appropriate IDisplayObjectCreator that can be filled with the properties to visualize the snap result.

See also

SnapLine.resourceKey
SnapResult.getDisplayObjectCreator
SnapContext.createDisplayObjectCreator


Public Properties
 PropertyDefined By
  typeDescription : String
[read-only] A description of the type of this ResourceKey.
ResourceKey
Public Methods
 MethodDefined By
  
ResourceKey(typeDescription:String)
Constructs a new instance of ResourceKey with the specified typeDescription.
ResourceKey
Property Detail
typeDescriptionproperty
typeDescription:String  [read-only]

A description of the type of this ResourceKey.


Implementation
    public function get typeDescription():String
Constructor Detail
ResourceKey()Constructor
public function ResourceKey(typeDescription:String)

Constructs a new instance of ResourceKey with the specified typeDescription.

Parameters
typeDescription:String — A description of the type of this ResourceKey.