Package | Description |
---|---|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
com.yworks.yfiles.graph.labelmodels |
Contains interfaces and default implementations for label layout models.
|
com.yworks.yfiles.graph.styles |
Contains interfaces and default implementations for graph element styles.
|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
com.yworks.yfiles.view.input |
Contains definitions, default implementations, and support classes that deal with the user interaction in a
CanvasControl in general, as well as specialized utility classes and IInputMode implementations that can be used to work with and edit IGraph instances in a GraphControl . |
Modifier and Type | Method and Description |
---|---|
ILabelModelParameter |
GraphCopier.copyLabelLayoutParameter(IGraph graph,
ILabel label)
Copies a
ILabelModelParameter for a given label. |
default ILabelModelParameter |
IGraph.createDefaultLabelLayoutParameter(ILabelOwner owner)
Creates the label layout parameter for a given
ILabelOwner . |
protected ILabelModelParameter |
DefaultFolderNodeConverter.createLabelLayoutParameter(IFoldingView foldingView,
ILabel localLabel,
ILabel masterLabel)
Callback factory method that creates the
ILabelModelParameter for use in
DefaultFolderNodeConverter.initializeFolderNodeLabels(FolderNodeState, IFoldingView, INode, INode) . |
protected ILabelModelParameter |
AbstractFoldingEdgeConverter.createLabelLayoutParameter(IFoldingView foldingView,
ILabel localLabel,
ILabel masterLabel)
Callback factory method that creates the
ILabelModelParameter for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgeLabels(FoldingEdgeState, IFoldingView, IEdge, List) . |
default ILabelModelParameter |
ITable.createLabelLayoutParameter(IStripe stripe)
Creates the label model parameter for a given
ILabelOwner . |
ILabelModelParameter |
DefaultFolderNodeConverter.getLabelLayoutParameter()
Gets the
ILabelModelParameter to use for the first label of the collapsed group node. |
ILabelModelParameter |
AbstractFoldingEdgeConverter.getLabelLayoutParameter()
Gets the
ILabelModelParameter to use for the first label of the folding edge. |
protected ILabelModelParameter |
GraphClipboard.getLabelLayoutParameter(GraphCopier copier,
IGraph graph,
ILabel label,
ILabelOwner newOwner)
|
ILabelModelParameter |
SimpleLabel.getLayoutParameter() |
ILabelModelParameter |
LabelDefaults.getLayoutParameter() |
ILabelModelParameter |
ILabelDefaults.getLayoutParameter()
Gets the label model parameter to use for labels.
|
ILabelModelParameter |
ILabel.getLayoutParameter()
Gets the label model's parameter that determines the positioning of this label.
|
ILabelModelParameter |
FoldingLabelState.getLayoutParameter()
The
ILabelModelParameter used to describe the label's layout. |
ILabelModelParameter |
LabelDefaults.getLayoutParameterInstance(ILabelOwner owner) |
ILabelModelParameter |
ILabelDefaults.getLayoutParameterInstance(ILabelOwner owner)
Factory method that returns a label model parameter instance for use with newly created labels.
|
Modifier and Type | Method and Description |
---|---|
default ILabel |
IGraph.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter)
Add a label to the given item using the text as the initial label text and label model parameter, style and tag.
|
default ILabel |
IGraph.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style)
Add a label to the given item using the text as the initial label text and label model parameter, style and tag.
|
default ILabel |
IGraph.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize)
Add a label to the given item using the text as the initial label text and label model parameter, style and tag.
|
ILabel |
IGraph.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag)
Add a label to the given item using the text as the initial label text and label model parameter, style and tag.
|
ILabel |
DefaultGraph.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
ILabel |
AbstractGraphWrapper.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
default ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
default ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
default ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
ILabel |
Table.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
abstract FoldingLabelState |
FoldingLabelOwnerState.addLabel(String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag)
Adds a
FoldingLabelState to this state. |
FoldingLabelState |
FoldingEdgeState.addLabel(String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
FoldingLabelState |
FolderNodeState.addLabel(String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
default SizeD |
IGraph.calculateLabelPreferredSize(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter)
Calculates the preferred size of a label with the given properties.
|
default SizeD |
IGraph.calculateLabelPreferredSize(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style)
Calculates the preferred size of a label with the given properties.
|
default SizeD |
IGraph.calculateLabelPreferredSize(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
Object tag)
Calculates the preferred size of a label with the given properties.
|
default SizeD |
ITable.calculateLabelPreferredSize(IStripe stripe,
ILabelStyle style,
ILabelModelParameter layoutParameter,
String text,
Object tag)
Calculates the preferred size of a label with the given properties.
|
protected void |
DefaultGraph.onChangingLabelLayoutParameter(ILabel label,
ILabelModelParameter newLayoutParameter)
Callback that is invoked before the
LayoutParameter of a label is being changed. |
protected void |
DefaultGraph.onLabelLayoutParameterChanged(ILabel label,
ILabelModelParameter oldLayoutParamater)
Callback that is invoked after a label model parameter has changed.
|
void |
Table.setLabelLayoutParameter(ILabel label,
ILabelModelParameter layoutParameter)
Sets the label model parameter for the given label.
|
void |
ITable.setLabelLayoutParameter(ILabel label,
ILabelModelParameter layoutParameter)
Sets the label model parameter for the given label.
|
void |
IGraph.setLabelLayoutParameter(ILabel label,
ILabelModelParameter layoutParameter)
Sets the label model parameter for the given label.
|
void |
DefaultGraph.setLabelLayoutParameter(ILabel label,
ILabelModelParameter layoutParameter) |
void |
AbstractGraphWrapper.setLabelLayoutParameter(ILabel label,
ILabelModelParameter layoutParameter) |
void |
DefaultFolderNodeConverter.setLabelLayoutParameter(ILabelModelParameter value)
Sets the
ILabelModelParameter to use for the first label of the collapsed group node. |
void |
AbstractFoldingEdgeConverter.setLabelLayoutParameter(ILabelModelParameter value)
Sets the
ILabelModelParameter to use for the first label of the folding edge. |
void |
SimpleLabel.setLayoutParameter(ILabelModelParameter value)
Sets the label model's parameter that determines the positioning of this label.
|
void |
LabelDefaults.setLayoutParameter(ILabelModelParameter value) |
void |
ILabelDefaults.setLayoutParameter(ILabelModelParameter value)
Sets the label model parameter to use for labels.
|
void |
FoldingLabelState.setLayoutParameter(ILabelModelParameter value)
The
ILabelModelParameter used to describe the label's layout. |
Modifier and Type | Method and Description |
---|---|
void |
IGraph.addLabelLayoutParameterChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelModelParameter>> labelLayoutParameterChangedEvent)
Adds the given listener for the
LabelLayoutParameterChanged event that occurs when the model parameter of a
label has been changed. |
void |
DefaultGraph.addLabelLayoutParameterChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelModelParameter>> labelLayoutParameterChangedEvent) |
void |
AbstractGraphWrapper.addLabelLayoutParameterChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelModelParameter>> labelLayoutParameterChangedEvent) |
protected void |
AbstractGraphWrapper.onLabelLayoutParameterChanged(ItemChangedEventArgs<ILabel,ILabelModelParameter> args)
Raises the
LabelLayoutParameterChanged event. |
void |
IGraph.removeLabelLayoutParameterChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelModelParameter>> labelLayoutParameterChangedEvent)
Removes the given listener for the
LabelLayoutParameterChanged event that occurs when the model parameter of a
label has been changed. |
void |
DefaultGraph.removeLabelLayoutParameterChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelModelParameter>> labelLayoutParameterChangedEvent) |
void |
AbstractGraphWrapper.removeLabelLayoutParameterChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelModelParameter>> labelLayoutParameterChangedEvent) |
Constructor and Description |
---|
SimpleLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter)
Creates an instance of the
SimpleLabel class with default lookup ,
an instance of VoidLabelStyle and the given parameter , text, and owner. |
Modifier and Type | Field and Description |
---|---|
static ILabelModelParameter |
InteriorStretchLabelModel.CENTER
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorLabelModel.CENTER
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
NinePositionsEdgeLabelModel.CENTER_ABOVE
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
NinePositionsEdgeLabelModel.CENTER_BELOW
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
NinePositionsEdgeLabelModel.CENTER_CENTERED
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
StripeLabelModel.EAST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
StretchStripeLabelModel.EAST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorStretchLabelModel.EAST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorLabelModel.EAST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
ExteriorLabelModel.EAST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
StripeLabelModel.NORTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
StretchStripeLabelModel.NORTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
SandwichLabelModel.NORTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorStretchLabelModel.NORTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorLabelModel.NORTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
ExteriorLabelModel.NORTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorLabelModel.NORTH_EAST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
ExteriorLabelModel.NORTH_EAST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorLabelModel.NORTH_WEST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
ExteriorLabelModel.NORTH_WEST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
NinePositionsEdgeLabelModel.SOURCE_ABOVE
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
NinePositionsEdgeLabelModel.SOURCE_BELOW
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
NinePositionsEdgeLabelModel.SOURCE_CENTERED
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
StripeLabelModel.SOUTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
StretchStripeLabelModel.SOUTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
SandwichLabelModel.SOUTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorStretchLabelModel.SOUTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorLabelModel.SOUTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
ExteriorLabelModel.SOUTH
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorLabelModel.SOUTH_EAST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
ExteriorLabelModel.SOUTH_EAST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorLabelModel.SOUTH_WEST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
ExteriorLabelModel.SOUTH_WEST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
NinePositionsEdgeLabelModel.TARGET_ABOVE
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
NinePositionsEdgeLabelModel.TARGET_BELOW
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
NinePositionsEdgeLabelModel.TARGET_CENTERED
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
StripeLabelModel.WEST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
StretchStripeLabelModel.WEST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorStretchLabelModel.WEST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
InteriorLabelModel.WEST
A convenience parameter instance that can be shared between label instances.
|
static ILabelModelParameter |
ExteriorLabelModel.WEST
A convenience parameter instance that can be shared between label instances.
|
Modifier and Type | Method and Description |
---|---|
ILabelModelParameter |
GenericLabelModel.addParameter(ILabelModelParameter layoutParameter)
Adds another parameter to this models collection of parameters.
|
ILabelModelParameter |
GenericLabelModel.addParameter(ILabelModelParameter layoutParameter,
ILabelCandidateDescriptor descriptor)
Adds another parameter to this models collection of parameters.
|
ILabelModelParameter |
FreeLabelModel.createAbsolute(PointD anchorLocation,
double angle)
Creates a new label model parameter that places the label at the given absolute position using the provided angle.
|
ILabelModelParameter |
FreeLabelModel.createAnchored(IPoint location,
double angle)
Creates a new label at the given dynamic location using the provided angle.
|
ILabelModelParameter |
FreeNodeLabelModel.createCanonicalParameter(RectD nodeLayout,
IOrientedRectangle labelLayout)
Creates a parameter instance that anchors the label to the node at the canonical position with respect to the given
reference point.
|
ILabelModelParameter |
FreeNodeLabelModel.createCanonicalParameter(RectD nodeLayout,
IOrientedRectangle labelLayout,
PointD referenceLocation)
Creates a parameter instance that anchors the label to the node at the canonical position with respect to the given
reference point.
|
ILabelModelParameter |
StripeLabelModel.createDefaultParameter() |
ILabelModelParameter |
StretchStripeLabelModel.createDefaultParameter() |
ILabelModelParameter |
SmartEdgeLabelModel.createDefaultParameter() |
ILabelModelParameter |
SandwichLabelModel.createDefaultParameter() |
ILabelModelParameter |
NinePositionsEdgeLabelModel.createDefaultParameter() |
ILabelModelParameter |
InteriorStretchLabelModel.createDefaultParameter() |
ILabelModelParameter |
InteriorLabelModel.createDefaultParameter() |
ILabelModelParameter |
ILabelModel.createDefaultParameter()
Creates a default parameter that can be used for this model.
|
ILabelModelParameter |
GenericLabelModel.createDefaultParameter() |
ILabelModelParameter |
FreeNodeLabelModel.createDefaultParameter()
Creates a parameter that is anchored at the node center and has no rotation.
|
ILabelModelParameter |
FreeLabelModel.createDefaultParameter() |
ILabelModelParameter |
FreeEdgeLabelModel.createDefaultParameter() |
ILabelModelParameter |
ExteriorLabelModel.createDefaultParameter() |
ILabelModelParameter |
EdgeSegmentLabelModel.createDefaultParameter()
A model parameter that encodes the default position of this model's allowed edge label positions.
|
ILabelModelParameter |
EdgePathLabelModel.createDefaultParameter()
A model parameter that encodes the default position of this model's allowed edge label positions.
|
ILabelModelParameter |
DescriptorWrapperLabelModel.createDefaultParameter()
Creates a default parameter that can be used for this model.
|
ILabelModelParameter |
CompositeLabelModel.createDefaultParameter()
Creates a default parameter that can be used for this model.
|
ILabelModelParameter |
FreeLabelModel.createDynamic(IOrientedRectangle layout)
Creates a new label model parameter that dynamically reads the label layout from the provided instance.
|
ILabelModelParameter |
FreeEdgeLabelModel.createEdgeAnchored(double ratio,
double distance,
double angle)
Creates a parameter for the given location.
|
ILabelModelParameter |
SandwichLabelModel.createNorthParameter()
Creates a parameter for the north side of the node.
|
ILabelModelParameter |
ExteriorLabelModel.createParameter(ExteriorLabelModel.Position position)
Creates a new parameter that is associated with this instance for the provided position.
|
ILabelModelParameter |
InteriorLabelModel.createParameter(InteriorLabelModel.Position position)
Creates the parameter for the given position.
|
ILabelModelParameter |
InteriorStretchLabelModel.createParameter(InteriorStretchLabelModel.Position position)
Creates the parameter for the given position.
|
ILabelModelParameter |
NinePositionsEdgeLabelModel.createParameter(NinePositionsEdgeLabelModel.Position position)
Create a model parameter for the specified .
|
ILabelModelParameter |
FreeNodeLabelModel.createParameter(PointD layoutRatio,
PointD layoutOffset,
PointD labelRatio,
PointD labelOffset,
double angle)
Creates a parameter instance that anchors the label to the node at a given position.
|
ILabelModelParameter |
StretchStripeLabelModel.createParameter(StretchStripeLabelModel.Position position)
Creates the parameter for the given position.
|
ILabelModelParameter |
StripeLabelModel.createParameter(StripeLabelModel.Position position)
Creates the parameter for the given position.
|
ILabelModelParameter |
EdgeSegmentLabelModel.createParameterFromCenter(double segmentRatio,
EdgeSides sideOfEdge)
Creates a parameter where the label is attached to the edge segment that contains the edge's midpoint.
|
ILabelModelParameter |
SmartEdgeLabelModel.createParameterFromSource(int segmentIndex,
double distance,
double segmentRatio)
Creates a parameter that measures the provided segment index from the source side of the edge path.
|
ILabelModelParameter |
EdgeSegmentLabelModel.createParameterFromSource(int segmentIndex,
double segmentRatio,
EdgeSides sideOfEdge)
Creates a parameter that measures the provided segment index from the source side of the edge path.
|
ILabelModelParameter |
SmartEdgeLabelModel.createParameterFromTarget(int segmentIndex,
double distance,
double segmentRatio)
Creates a parameter that measures the provided segment index from the target side of the edge path.
|
ILabelModelParameter |
EdgeSegmentLabelModel.createParameterFromTarget(int segmentIndex,
double segmentRatio,
EdgeSides sideOfEdge)
Creates a parameter that measures the provided segment index from the target side of the edge path.
|
ILabelModelParameter |
EdgePathLabelModel.createRatioParameter(double edgePathRatio,
EdgeSides sideOfEdge)
Creates a parameter at the provided edge path ratio.
|
ILabelModelParameter |
SandwichLabelModel.createSouthParameter()
Creates a parameter for the south side of the node.
|
ILabelModelParameter |
SmartEdgeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout) |
ILabelModelParameter |
ILabelModelParameterFinder.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
FreeNodeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
FreeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout) |
ILabelModelParameter |
FreeEdgeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
EdgeSegmentLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout) |
ILabelModelParameter |
EdgePathLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout) |
ILabelModelParameter |
DefaultLabelModelParameterFinder.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
CompositeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
DefaultLabelModelParameterFinder.findBestParameter(ILabel label,
IOrientedRectangle layout,
Iterable<ILabelModelParameter> layoutParameters)
Tries to find a parameter that best matches the given layout for the provided label instance among the set of given
parameters.
|
Modifier and Type | Method and Description |
---|---|
protected Iterable<ILabelModelParameter> |
DefaultLabelModelParameterFinder.getCandidateParameters(ILabel label,
ILabelModel model)
Retrieves an enumerator over all candidates for a given label and model.
|
IEnumerable<ILabelModelParameter> |
StripeLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
StretchStripeLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
SandwichLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
NinePositionsEdgeLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
InteriorStretchLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
InteriorLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
ILabelModelParameterProvider.getParameters(ILabel label,
ILabelModel model)
Returns an enumerator over a set of possible
ILabelModelParameter instances that can be used for the given label
and model. |
IEnumerable<ILabelModelParameter> |
GenericLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
ExteriorLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
EdgeSegmentLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
EdgePathLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
DescriptorWrapperLabelModel.getParameters(ILabel label,
ILabelModel model) |
IEnumerable<ILabelModelParameter> |
CompositeLabelModel.getParameters(ILabel label,
ILabelModel model)
Returns an enumerator over a set of possible
ILabelModelParameter instances that can be used for the given label
and model. |
Modifier and Type | Method and Description |
---|---|
ILabelModelParameter |
GenericLabelModel.addParameter(ILabelModelParameter layoutParameter)
Adds another parameter to this models collection of parameters.
|
ILabelModelParameter |
GenericLabelModel.addParameter(ILabelModelParameter layoutParameter,
ILabelCandidateDescriptor descriptor)
Adds another parameter to this models collection of parameters.
|
protected double |
DefaultLabelModelParameterFinder.calculateMetric(ILabel label,
ILabelModelParameter layoutParameter,
IOrientedRectangle layout)
Calculates a metric for the given label/parameter pair and the target label layout.
|
ILookup |
StripeLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
StretchStripeLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
SmartEdgeLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
SandwichLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
NinePositionsEdgeLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
InteriorStretchLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
InteriorLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
ILabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter)
Provides a
lookup context for the given combination of label and parameter. |
ILookup |
GenericLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
FreeNodeLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter)
Returns an empty context.
|
ILookup |
FreeLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
FreeEdgeLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
ExteriorLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
EdgeSegmentLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter)
Returns an empty context.
|
ILookup |
EdgePathLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter)
Returns an empty context.
|
ILookup |
DescriptorWrapperLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
ILookup |
CompositeLabelModel.getContext(ILabel label,
ILabelModelParameter layoutParameter) |
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.
|
double |
SmartEdgeLabelModel.getDistance(ILabelModelParameter layoutParameter)
Gets the distance from the edge path described by the specified parameter.
|
IOrientedRectangle |
StripeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter)
Calculates the geometry in form of an
IOrientedRectangle for a given label using the given model parameter. |
IOrientedRectangle |
StretchStripeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter)
Calculates the geometry in form of an
IOrientedRectangle for a given label using the given model parameter. |
IOrientedRectangle |
SmartEdgeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
SandwichLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
NinePositionsEdgeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
InteriorStretchLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
InteriorLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
ILabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter)
Calculates the
geometry of the given label using the given model parameter. |
IOrientedRectangle |
GenericLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
FreeNodeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
FreeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
FreeEdgeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
ExteriorLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
EdgeSegmentLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
EdgePathLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
DescriptorWrapperLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
CompositeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
SizeD |
InteriorStretchLabelModel.getMinimumNodeSize(ILabel label,
ILabelModelParameter layoutParameter)
Returns the minimum size this model would require for the node owner of the label if the the given label was used with
the provided parameter.
|
SizeD |
InteriorLabelModel.getMinimumNodeSize(ILabel label,
ILabelModelParameter layoutParameter)
Returns the minimum size this model would require for the node owner of the label if the the given label was used with
the provided parameter.
|
InsetsD |
InteriorStretchLabelModel.getNodeInsets(ILabel label,
ILabelModelParameter layoutParameter)
Returns the insets this model would require for the node owner of the label if the the given label was used with the
provided parameter.
|
InsetsD |
InteriorLabelModel.getNodeInsets(ILabel label,
ILabelModelParameter layoutParameter)
Returns the insets this model would require for the node owner of the label if the the given label was used with the
provided parameter.
|
Modifier and Type | Method and Description |
---|---|
ILabelModelParameter |
DefaultLabelModelParameterFinder.findBestParameter(ILabel label,
IOrientedRectangle layout,
Iterable<ILabelModelParameter> layoutParameters)
Tries to find a parameter that best matches the given layout for the provided label instance among the set of given
parameters.
|
Constructor and Description |
---|
GenericLabelModel(ILabelModelParameter defaultLayoutParameter)
Create a new generic label model using the provided parameter as the
default parameter. . |
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 |
---|---|
protected ILabelModelParameter |
CollapsibleNodeStyleDecoratorRenderer.getButtonPlacement()
Yields the
ButtonPlacement for the current
Style . |
ILabelModelParameter |
CollapsibleNodeStyleDecorator.getButtonPlacement()
Gets an
ILabelModelParameter that determines the placement of the button for toggling the expanded state. |
ILabelModelParameter |
MemoryIconLabelStyle.getIconPlacement()
Gets the icon placement model parameter.
|
protected ILabelModelParameter |
IconLabelStyleRenderer.getIconPlacement()
Retrieves the
IconPlacement from the Style . |
ILabelModelParameter |
IconLabelStyle.getIconPlacement()
Gets the parameter that specifies the icon placement.
|
Modifier and Type | Method and Description |
---|---|
void |
CollapsibleNodeStyleDecorator.setButtonPlacement(ILabelModelParameter value)
Sets an
ILabelModelParameter that determines the placement of the button for toggling the expanded state. |
void |
MemoryIconLabelStyle.setIconPlacement(ILabelModelParameter value)
Sets the icon placement model parameter.
|
void |
IconLabelStyle.setIconPlacement(ILabelModelParameter value)
Sets the parameter that specifies the icon placement.
|
Modifier and Type | Method and Description |
---|---|
protected EdgeLabelCandidate |
LayoutGraphAdapter.createEdgeLabelCandidate(ILabel originalLabel,
ILabel dummyLabel,
ILabelModelParameter layoutParameter,
IEdgeLabelLayout labelLayout)
Creates the
EdgeLabelCandidate for a given label and ILabelModelParameter combination. |
protected NodeLabelCandidate |
LayoutGraphAdapter.createNodeLabelCandidate(ILabel originalLabel,
ILabel dummyLabel,
ILabelModelParameter layoutParameter,
INodeLabelLayout ownerLayout)
Creates a
NodeLabelCandidate for a given label and ILabelModelParameter combination. |
protected ILabelCandidateDescriptor |
LayoutGraphAdapter.getLabelCandidateDescriptor(ILabel originalLabel,
ILabel dummyLabel,
ILabelModelParameter layoutParameter)
Callback that retrieves the label candidate descriptor for the given label and parameter.
|
Modifier and Type | Method and Description |
---|---|
static IAnimation |
IAnimation.createLabelAnimation(IGraph graph,
ILabel label,
ILabelModelParameter targetLayoutParameter,
Duration preferredDuration)
Creates a new
IAnimation that animates the given label from its current layout linearly to the layout
given by the targetLayoutParameter . |
Modifier and Type | Method and Description |
---|---|
static IAnimation |
IAnimation.createGraphAnimation(IGraph graph,
IMapper<INode,IRectangle> targetNodeLayouts,
IMapper<IEdge,IPoint[]> targetBendLocations,
IMapper<IPort,IPortLocationModelParameter> targetPortLocations,
IMapper<ILabel,ILabelModelParameter> targetLayoutParameters,
Duration preferredDuration)
Creates a new
IAnimation that animates the given layout of all types of graph items. |
Modifier and Type | Method and Description |
---|---|
protected ILabelModelParameter |
EditLabelHelper.getLabelParameter(IInputModeContext context,
ILabelOwner owner)
Determines the label model parameter to use for the label, depending on the
owner . |
ILabelModelParameter |
LabelEditingEventArgs.getLayoutParameter()
Gets the
LayoutParameter of the label to add. |
Modifier and Type | Method and Description |
---|---|
protected Iterable<ILabelModelParameter> |
LabelPositionHandler.getParameterCandidates(ILabel label)
Callback method that gets the candidates for the given label.
|
Modifier and Type | Method and Description |
---|---|
static SnapResult |
SnapResult.createLabelSnapResult(ILabelModelParameter layoutParameter,
double weight,
PointD delta,
Object tag,
SnapLine snapLine,
PointD snappedCoordinates,
Object movedObject)
|
protected void |
LabelPositionHandler.setLayoutParameter(ILabel label,
ILabelModelParameter layoutParameter)
Actually applies the given parameter at the end of the gesture.
|
void |
LabelEditingEventArgs.setLayoutParameter(ILabelModelParameter value)
Sets the
LayoutParameter of the label to add. |