An implementation of the ILabelCandidateDescriptorProvider interface that always yields a constant ILabelCandidateDescriptor.
Inheritance Hierarchy
ConstantLabelCandidateDescriptorProvider
Implemented Interfaces
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.ConstantLabelCandidateDescriptorProvider
Constructors
Initializes a new instance of the ConstantLabelCandidateDescriptorProvider class that always yields descriptor
in getDescriptor.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- descriptor - ILabelCandidateDescriptor
- The descriptor to yield in getDescriptor.
Methods
Always yields the parameter that has been passed to the constructor.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- label - ILabel
- The label to possibly assign the
layoutParameter
. - layoutParameter - ILabelModelParameter
- The parameter to provide a descriptor for if applied to the given
label
.
Returns
- ↪ILabelCandidateDescriptor
- A descriptor or
null
.
Implements
Constants
A sharable implementation of the ILabelCandidateDescriptorProvider interface that always yields EXTERNAL_DESCRIPTOR.
A sharable implementation of the ILabelCandidateDescriptorProvider interface that always yields INTERNAL_DESCRIPTOR.