Packagecom.kapit.diagram.library
Classpublic class SVGAsset
InheritanceSVGAsset Inheritance com.kapit.svg.container.SVGSVGElement



Public Methods
 MethodDefined by
  
SVGAsset(p:Sprite)
Creates a new SVGAsset instance.
SVGAsset
  
acceptAction(id:String):Boolean
Determines if the SVGAsset can accept a determined action.
SVGAsset
  
acceptActionBounds(id:String, target:DisplayObject):Array
Get the rectangles where the action can occur.
SVGAsset
  
appendToSVGDocument(doc:SVGSVGElement):void
Adds this SVGAsset object in SVG format to an SVGSVGElement object.
SVGAsset
  
hasActionTrigger(id:String):Boolean
Indicates whether the SVGAsset object has a trigger for an indicated action.
SVGAsset
Constructor detail
SVGAsset()constructor
public function SVGAsset(p:Sprite)

Creates a new SVGAsset instance.

Parameters
p:Sprite
Method detail
acceptAction()method
public function acceptAction(id:String):Boolean

Determines if the SVGAsset can accept a determined action.

Parameters
id:String — Id of the action to be tested.

Returns
Boolean — A boolean value equal to true if the SVGAsset object can accept the indicated action and false otherwise.
acceptActionBounds()method 
public function acceptActionBounds(id:String, target:DisplayObject):Array

Get the rectangles where the action can occur.

Parameters
id:String — Id of the action to be tested.
 
target:DisplayObject

Returns
Array — A rectangle where the action can occure or null.
appendToSVGDocument()method 
public function appendToSVGDocument(doc:SVGSVGElement):void

Adds this SVGAsset object in SVG format to an SVGSVGElement object.

Parameters
doc:SVGSVGElement — SVGSVGElement to be updated by adding this SVGAsset object.
hasActionTrigger()method 
public function hasActionTrigger(id:String):Boolean

Indicates whether the SVGAsset object has a trigger for an indicated action.

Parameters
id:String — Id of the action.

Returns
Boolean — A boolean value equal to true if the SVGAsset object has a trigger for the indicated action and false otherwise.