Package | Description |
---|---|
com.yworks.yfiles.graph.labelmodels |
Contains interfaces and default implementations for label layout models.
|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
Modifier and Type | Class and Description |
---|---|
class |
LabelCandidateDescriptor
A simple mutable default implementation of the
ILabelCandidateDescriptor interface. |
Modifier and Type | Field and Description |
---|---|
static ILabelCandidateDescriptor |
LabelCandidateDescriptor.EXTERNAL_DESCRIPTOR
A sharable immutable implementation of the
ILabelCandidateDescriptor interface that has penalties of 1.0d
and a profit of 1.0d and yields true for the ExternalCandidate
property. |
static ILabelCandidateDescriptor |
LabelCandidateDescriptor.INTERNAL_DESCRIPTOR
A sharable immutable implementation of the
ILabelCandidateDescriptor interface that has penalties of 1.0d
and a profit of 1.0d and yields false for the ExternalCandidate
property. |
Modifier and Type | Method and Description |
---|---|
ILabelCandidateDescriptor |
DescriptorWrapperLabelModel.getDescriptor()
Gets the descriptor.
|
ILabelCandidateDescriptor |
ILabelCandidateDescriptorProvider.getDescriptor(ILabel label,
ILabelModelParameter layoutParameter)
Gets the descriptor for a given pair of a label and a
ILabelModelParameter . |
ILabelCandidateDescriptor |
GenericLabelModel.getDescriptor(ILabel label,
ILabelModelParameter layoutParameter)
Yields the
ILabelCandidateDescriptor that has been associated with the instance during
GenericLabelModel.addParameter(ILabelModelParameter, ILabelCandidateDescriptor) . |
ILabelCandidateDescriptor |
DescriptorWrapperLabelModel.getDescriptor(ILabel label,
ILabelModelParameter layoutParameter) |
ILabelCandidateDescriptor |
ConstantLabelCandidateDescriptorProvider.getDescriptor(ILabel label,
ILabelModelParameter layoutParameter)
Always yields the parameter that has been passed to the constructor.
|
Modifier and Type | Method and Description |
---|---|
ILabelModelParameter |
GenericLabelModel.addParameter(ILabelModelParameter layoutParameter,
ILabelCandidateDescriptor descriptor)
Adds another parameter to this models collection of parameters.
|
void |
DescriptorWrapperLabelModel.setDescriptor(ILabelCandidateDescriptor value)
Sets the descriptor.
|
Constructor and Description |
---|
ConstantLabelCandidateDescriptorProvider(ILabelCandidateDescriptor descriptor)
Initializes a new instance of the
ConstantLabelCandidateDescriptorProvider class that always yields descriptor
in ConstantLabelCandidateDescriptorProvider.getDescriptor(ILabel, ILabelModelParameter) . |
GenericLabelModel(ILabelModelParameter defaultLayoutParameter,
ILabelCandidateDescriptor descriptor)
Create a new generic label model using the provided parameter as the
default parameter. . |
Modifier and Type | Method and Description |
---|---|
ILabelCandidateDescriptor |
ExtendedNodeLabelCandidate.getDescriptor()
Gets the label candidate descriptor.
|
ILabelCandidateDescriptor |
ExtendedEdgeLabelCandidate.getDescriptor()
Gets the label candidate descriptor.
|
protected ILabelCandidateDescriptor |
LayoutGraphAdapter.getLabelCandidateDescriptor(ILabel originalLabel,
ILabel dummyLabel,
ILabelModelParameter layoutParameter)
Callback that retrieves the label candidate descriptor for the given label and parameter.
|
Constructor and Description |
---|
ExtendedEdgeLabelCandidate(YOrientedRectangle orientedBox,
Object param,
IEdgeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
|
ExtendedEdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
|
ExtendedEdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
|
ExtendedNodeLabelCandidate(YOrientedRectangle orientedBox,
Object param,
INodeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of NodeLabelCandidate.
|
ExtendedNodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of NodeLabelCandidate.
|
ExtendedNodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedNodeLabelCandidate.
|