I

ILabelModelParameterFinder

Implementations of this interface can be used to find the best ILabelModelParameter to approximate a given layout for a given ILabelModel.
Inheritance Hierarchy

Remarks

Implementations of this interface may be retrieved from getContext implementations using their lookup method. Note that ILabelModel implementations are not required to return an instance if queried for this interface.

See Also

Developer's Guide

Members

No filters for this type

Methods

Tries to find a parameter that best matches the given layout for the label instance whose lookup returned this finder.

This method does not necessarily have to find a parameter that exactly matches the specified layout.

Implementations may choose to simply return the current parameter of the label, but must never return null.

abstract

Parameters

layout: IOrientedRectangle
The anticipated layout for the label.

Return Value

ILabelModelParameter
A non-null parameter that can be used for the label to approximate the provided layout.

Static Methods

static

Parameters

findBestParameter: function(IOrientedRectangle): ILabelModelParameter

Return Value

ILabelModelParameterFinder