Packagecom.yworks.graph.drawing
Interfacepublic interface ILabelInsetsProvider

Interface for implementations that yield insets for a given ILabel.

Implementations of this interface will be queried from an ILabel's lookup method.

See also

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


Public Methods
 MethodDefined By
  
Returns the insets for the given label.
ILabelInsetsProvider
Method Detail
getInsets()method
public function getInsets(label:ILabel):IRectangle

Returns the insets for the given label.

Parameters

label:ILabel — The label to yield insets for.

Returns
IRectangle — A 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.