Packagecom.yworks.graph.drawing
Interfacepublic interface INodeInsetsProvider

Interface for implementations that yield insets for a given INode.

Implementations of this interface will be queried from an INode's lookup method. GroupedGraph uses this instance by default to determine the insets of a group node.

See also

com.yworks.graph.model.INode
com.yworks.support.ILookup.lookup
GroupedGraph


Public Methods
 MethodDefined By
  
Returns the insets for the given node.
INodeInsetsProvider
Method Detail
getInsets()method
public function getInsets(node:INode):IRectangle

Returns the insets for the given node.

Parameters

node:INode — The node to yield insets for.

Returns
IRectangle — rectangle that describes the insets. x is the left inset, y is the top inset, width is the right inset, and height is the bottom inset.