| 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.graphml |
Definitions, default implementations, and support classes for GraphML I/O support.
|
| com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
| com.yworks.yfiles.layout.labeling |
Provides algorithms for the automatic placement of node and edge labels, so called generic labeling algorithms.
|
| com.yworks.yfiles.layout.multipage |
Provides the
MultiPageLayout that subdivides the input graph into several smaller graphs whose layouts fit the specified maximum page size. |
| com.yworks.yfiles.layout.router.polyline |
Provides classes and interfaces for automatic polyline routing of the edges of a graph.
|
| 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 | Class and Description |
|---|---|
class |
SimpleLabel
A simple mutable implementation of the
ILabel interface that can be used stand-alone. |
| Modifier and Type | Method and Description |
|---|---|
protected ILabel |
GraphCopier.addLabel(IGraph sourceGraph,
IGraph targetGraph,
ILabelOwner targetOwner,
ILabel sourceLabel)
Callback method that adds a label to the target item in the targetGraph as a copy of the source label.
|
default ILabel |
IGraph.addLabel(ILabelOwner owner,
String text)
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)
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)
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)
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.
|
ILabel |
FoldingLabelState.asLabel()
Returns an
ILabel instance which represents this label state. |
| Modifier and Type | Method and Description |
|---|---|
default <V> IMapper<ILabel,V> |
IMapperRegistry.createConstantMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag,
V constant)
|
default <V> IMapper<ILabel,V> |
IMapperRegistry.createDelegateMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag,
Function<ILabel,V> getter)
|
default <V> Mapper<ILabel,V> |
IMapperRegistry.createMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag)
|
default <V> Mapper<ILabel,V> |
IMapperRegistry.createWeakMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag)
|
LookupDecorator<ILabel,IClipboardHelper> |
LabelDecorator.getClipboardHelperDecorator()
Gets a
LookupDecorator that decorates the IClipboardHelper type for the type of items this instance has
been created for. |
<TInterface> |
LabelDecorator.getDecoratorFor(Class<TInterface> interfaceType)
|
<TInterface> |
LabelDecorator.getDecoratorFor(Class<TInterface> interfaceType,
boolean decorateNulls)
|
<TInterface> |
LabelDecorator.getDecoratorFor(Class<TInterface> interfaceType,
boolean decorateNulls,
boolean nullIsFallback)
|
default IListEnumerable<ILabel> |
IGraph.getEdgeLabels()
Gets a live view of all edge labels contained in this
IGraph. |
LookupDecorator<ILabel,IEditLabelHelper> |
LabelDecorator.getEditLabelHelperDecorator()
Gets a
LookupDecorator that decorates the IEditLabelHelper type for the
ILabels this instance has been created for. |
LookupDecorator<ILabel,IFocusIndicatorInstaller> |
LabelDecorator.getFocusIndicatorDecorator()
Gets a
LookupDecorator that decorates the IFocusIndicatorInstaller type for the type of items this
instance has been created for. |
LookupDecorator<ILabel,IHandleProvider> |
LabelDecorator.getHandleProviderDecorator()
Gets a
LookupDecorator that decorates the IHandleProvider type for the type of items this instance has
been created for. |
LookupDecorator<ILabel,IHighlightIndicatorInstaller> |
LabelDecorator.getHighlightDecorator()
Gets a
LookupDecorator that decorates the IHighlightIndicatorInstaller type for the type of items this
instance has been created for. |
LookupDecorator<ILabel,ILabelModelParameterFinder> |
LabelDecorator.getLabelModelParameterFinderDecorator()
Gets a
LookupDecorator that decorates the ILabelModelParameterFinder type for the
ILabels of the graph this instance has been created for. |
LookupDecorator<ILabel,ILabelModelParameterProvider> |
LabelDecorator.getLabelModelParameterProviderDecorator()
Gets a
LookupDecorator that decorates the ILabelModelParameterProvider type for the
ILabels of the graph this instance has been created for. |
IListEnumerable<ILabel> |
SimpleNode.getLabels()
Gets the collection for the labels.
|
IListEnumerable<ILabel> |
SimpleEdge.getLabels()
Gets the collection for the labels.
|
IListEnumerable<ILabel> |
ILabelOwner.getLabels()
Provides access to a collection of
labels that are owned by this instance. |
IListEnumerable<ILabel> |
IGraph.getLabels()
A view of the node and edge labels contained in this graph.
|
IListEnumerable<ILabel> |
FilteredGraphWrapper.getLabels() |
IListEnumerable<ILabel> |
DefaultGraph.getLabels() |
IListEnumerable<ILabel> |
AbstractGraphWrapper.getLabels() |
LookupDecorator<ILabel,ILabelSnapContextHelper> |
LabelDecorator.getLabelSnapContextHelperDecorator()
Gets a
LookupDecorator that decorates the ILabelSnapContextHelper for the
ILabels this instance has been created for. |
default <V> IMapper<ILabel,V> |
IMapperRegistry.getMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag)
Returns a mapper that has previously been registered with this instance for the given tag.
|
LookupDecorator<ILabel,IMarqueeTestable> |
LabelDecorator.getMarqueeTestableDecorator()
Gets a
LookupDecorator that decorates the IMarqueeTestable type for the type of items this instance has
been created for. |
LookupDecorator<ILabel,IMementoSupport> |
LabelDecorator.getMementoSupportDecorator()
Gets a
LookupDecorator that decorates the IMementoSupport type for the type of items this instance has
been created for. |
default IListEnumerable<ILabel> |
IGraph.getNodeLabels()
Gets a live view of all node labels contained in this
IGraph. |
LookupDecorator<ILabel,IObstacleProvider> |
LabelDecorator.getObstacleProviderDecorator()
Gets a
LookupDecorator that decorates the IObstacleProvider type for the type of items this instance has
been created for. |
LookupDecorator<ILabel,IPositionHandler> |
LabelDecorator.getPositionHandlerDecorator()
Gets a
LookupDecorator that decorates the IPositionHandler type for the type of items this instance has
been created for. |
LookupDecorator<ILabel,ISelectionIndicatorInstaller> |
LabelDecorator.getSelectionDecorator()
Gets a
LookupDecorator that decorates the ISelectionIndicatorInstaller type for the type of items this
instance has been created for. |
| Modifier and Type | Method and Description |
|---|---|
protected ILabel |
GraphCopier.addLabel(IGraph sourceGraph,
IGraph targetGraph,
ILabelOwner targetOwner,
ILabel sourceLabel)
Callback method that adds a label to the target item in the targetGraph as a copy of the source label.
|
default void |
ITable.adjustLabelPreferredSize(ILabel label)
Adjusts the
PreferredSize property of a label to fit the suggested size of its
ILabelStyleRenderer. |
default void |
IGraph.adjustLabelPreferredSize(ILabel label)
Adjusts the
PreferredSize property of a label to fit the suggested size of its
ILabelStyleRenderer. |
ILabelModelParameter |
GraphCopier.copyLabelLayoutParameter(IGraph graph,
ILabel label)
Copies a
ILabelModelParameter for a given label. |
ILabelStyle |
GraphCopier.copyLabelStyle(IGraph graph,
ILabel label)
Copies an
ILabelStyle instance. |
protected Object |
GraphCopier.copyLabelTag(ILabel label,
Object tag)
|
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). |
protected ILabelStyle |
DefaultFolderNodeConverter.createLabelStyle(IFoldingView foldingView,
ILabel localLabel,
ILabel masterLabel)
Callback factory method that creates the
ILabelStyle for use in
DefaultFolderNodeConverter.initializeFolderNodeLabels(FolderNodeState, IFoldingView, INode, INode). |
protected ILabelStyle |
AbstractFoldingEdgeConverter.createLabelStyle(IFoldingView foldingView,
ILabel localLabel,
ILabel masterLabel)
Callback factory method that creates the
ILabelStyle for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgeLabels(FoldingEdgeState, IFoldingView, IEdge, List). |
protected IUndoUnit |
DefaultGraph.createUndoUnitForLabelAddition(ILabel label)
Creates the label addition
undo unit for the given label. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForLabelRemoval(ILabel label)
Creates the label removal
undo unit for the given label. |
protected ILabelModelParameter |
GraphClipboard.getLabelLayoutParameter(GraphCopier copier,
IGraph graph,
ILabel label,
ILabelOwner newOwner)
|
protected ILabelOwner |
GraphClipboard.getTarget(ILabel originalLabel)
Provides an
ILabelOwner where the given originalLabel can be added to. |
protected void |
DefaultGraph.onAddingEdgeLabel(IEdge edge,
ILabel label)
Callback method that will be called just before an edge label is added to an edge.
|
protected void |
DefaultGraph.onAddingNodeLabel(INode node,
ILabel label)
Callback method that will be called just before a node label is added to a node.
|
protected void |
DefaultGraph.onChangingLabelLayoutParameter(ILabel label,
ILabelModelParameter newLayoutParameter)
Callback that is invoked before the
LayoutParameter of a label is being changed. |
protected void |
DefaultGraph.onChangingLabelPreferredSize(ILabel label,
SizeD newSize)
Callback that is invoked before the preferred size of a label is being changed.
|
protected void |
DefaultGraph.onChangingLabelStyle(ILabel label,
ILabelStyle newStyle)
Callback that is invoked before a label style is being changed.
|
protected void |
DefaultGraph.onChangingLabelText(ILabel label,
String newText)
Callback that is invoked before the text of a label is being changed.
|
protected void |
DefaultGraph.onEdgeLabelAdded(ILabel label)
Called after a label has been added to an edge.
|
protected void |
DefaultGraph.onEdgeLabelRemoved(ILabelOwner owner,
ILabel label)
Called after a label has been removed from its edge.
|
protected void |
Table.onLabelAdded(ILabel label)
Called after a label has been added to a stripe.
|
protected void |
Table.onLabelChanged(ILabel label)
Callback that is invoked after a label has changed.
|
protected void |
GraphCopier.onLabelCopied(ILabel original,
ILabel copy)
Called after a label has been copied.
|
protected void |
DefaultGraph.onLabelLayoutParameterChanged(ILabel label,
ILabelModelParameter oldLayoutParamater)
Callback that is invoked after a label model parameter has changed.
|
protected void |
DefaultGraph.onLabelPreferredSizeChanged(ILabel label,
SizeD oldSize)
Callback that is invoked after the preferred size of a label has changed.
|
protected void |
Table.onLabelRemoved(ILabelOwner owner,
ILabel label)
Called after a label has been removed from its stripe.
|
protected void |
DefaultGraph.onLabelStyleChanged(ILabel label,
ILabelStyle oldStyle)
Callback that is invoked after a label style has changed.
|
protected void |
DefaultGraph.onLabelTagChanged(ILabel label,
Object oldTag)
Callback that is invoked after a label tag has changed.
|
protected void |
DefaultGraph.onLabelTextChanged(ILabel label,
String oldText)
Callback that is invoked after a label text has changed.
|
protected void |
DefaultGraph.onNodeLabelAdded(ILabel label)
Called after a label has been added to a node.
|
protected void |
DefaultGraph.onNodeLabelRemoved(ILabelOwner owner,
ILabel label)
Called after a label has been removed from its node.
|
protected void |
DefaultGraph.onRemovingEdgeLabel(ILabel label)
Callback method that will be called just before an edge label is removed from its edge.
|
protected void |
DefaultGraph.onRemovingNodeLabel(ILabel label)
Callback method that will be called just before a node label is removed from its node.
|
void |
Table.remove(ILabel label)
Removes the given label from its owner.
|
void |
ITable.remove(ILabel label)
Removes the given label from its owner.
|
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 |
Table.setLabelPreferredSize(ILabel label,
SizeD preferredSize)
Sets the preferred size of the label.
|
void |
ITable.setLabelPreferredSize(ILabel label,
SizeD preferredSize)
Sets the preferred size of the label.
|
void |
IGraph.setLabelPreferredSize(ILabel label,
SizeD preferredSize)
Sets the preferred size of the label.
|
void |
DefaultGraph.setLabelPreferredSize(ILabel label,
SizeD size) |
void |
AbstractGraphWrapper.setLabelPreferredSize(ILabel label,
SizeD preferredSize) |
void |
Table.setLabelText(ILabel label,
String text)
Sets the label text of the given label.
|
void |
ITable.setLabelText(ILabel label,
String text)
Sets the label text of the given label.
|
void |
IGraph.setLabelText(ILabel label,
String text)
Sets the label text of the given label.
|
void |
DefaultGraph.setLabelText(ILabel label,
String text)
Sets the label text of the given label.
|
void |
AbstractGraphWrapper.setLabelText(ILabel label,
String text) |
void |
Table.setStyle(ILabel label,
ILabelStyle style)
Assigns the given style instance by reference to the label.
|
void |
ITable.setStyle(ILabel label,
ILabelStyle style)
Assigns the given style instance by reference to the label.
|
void |
IGraph.setStyle(ILabel label,
ILabelStyle style)
Assigns the given style instance by reference to the label.
|
void |
DefaultGraph.setStyle(ILabel label,
ILabelStyle style)
Assigns the given style instance by reference to the label.
|
void |
AbstractGraphWrapper.setStyle(ILabel label,
ILabelStyle style) |
| Modifier and Type | Method and Description |
|---|---|
void |
Table.addLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent) |
void |
ITable.addLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent)
Adds the given listener for the
LabelAdded event that occurs when a label has been added to this graph
instance. |
void |
IGraph.addLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent)
Adds the given listener for the
LabelAdded event that occurs when a label has been added to this graph
instance. |
void |
DefaultGraph.addLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent) |
void |
AbstractGraphWrapper.addLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent) |
void |
Table.addLabelChangedListener(IEventHandler<ItemEventArgs<ILabel>> labelChangedEvent) |
void |
ITable.addLabelChangedListener(IEventHandler<ItemEventArgs<ILabel>> labelChangedEvent)
Adds the given listener for the
LabelChanged event that occurs when a label has been changed, for instance, if
its style has been replaced. |
void |
GraphCopier.addLabelCopiedListener(IEventHandler<ItemCopiedEventArgs<ILabel>> labelCopiedEvent)
Adds the given listener for the
LabelCopied event that occurs after a label has been copied. |
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) |
void |
IGraph.addLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent)
Adds the given listener for the
LabelPreferredSizeChanged event that occurs when the preferred size of a label
has been changed. |
void |
DefaultGraph.addLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent) |
void |
AbstractGraphWrapper.addLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent) |
void |
IGraph.addLabelStyleChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelStyle>> labelStyleChangedEvent)
Adds the given listener for the
LabelStyleChanged event that occurs when a label style has been replaced. |
void |
DefaultGraph.addLabelStyleChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelStyle>> labelStyleChangedEvent) |
void |
AbstractGraphWrapper.addLabelStyleChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelStyle>> labelStyleChangedEvent) |
void |
IGraph.addLabelTagChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,Object>> labelTagChangedEvent)
Adds the given listener for the
LabelTagChanged event that occurs when the tag of a
label has been replaced. |
void |
DefaultGraph.addLabelTagChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,Object>> labelTagChangedEvent) |
void |
AbstractGraphWrapper.addLabelTagChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,Object>> labelTagChangedEvent) |
void |
IGraph.addLabelTextChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,String>> labelTextChangedEvent)
Adds the given listener for the
LabelTextChanged event that occurs when the text of a label has been changed. |
void |
DefaultGraph.addLabelTextChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,String>> labelTextChangedEvent) |
void |
AbstractGraphWrapper.addLabelTextChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,String>> labelTextChangedEvent) |
default <V> void |
IMapperRegistry.addMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag,
IMapper<ILabel,V> mapper)
Adds a previously created mapper to this instance for the given tag.
|
default <V> IMapper<ILabel,V> |
IMapperRegistry.createDelegateMapper(Class<V> valueType,
ILabelLayoutDpKey<V> tag,
Function<ILabel,V> getter)
|
protected void |
AbstractGraphWrapper.onLabelAdded(ItemEventArgs<ILabel> args)
Raises the
LabelAdded event. |
protected void |
AbstractGraphWrapper.onLabelLayoutParameterChanged(ItemChangedEventArgs<ILabel,ILabelModelParameter> args)
Raises the
LabelLayoutParameterChanged event. |
protected void |
AbstractGraphWrapper.onLabelPreferredSizeChanged(ItemChangedEventArgs<ILabel,SizeD> args)
Raises the
LabelPreferredSizeChanged event. |
protected void |
AbstractGraphWrapper.onLabelStyleChanged(ItemChangedEventArgs<ILabel,ILabelStyle> args)
Raises the
LabelStyleChanged event. |
protected void |
AbstractGraphWrapper.onLabelTagChanged(ItemChangedEventArgs<ILabel,Object> args)
Raises the
LabelTagChanged event. |
protected void |
AbstractGraphWrapper.onLabelTextChanged(ItemChangedEventArgs<ILabel,String> args)
Raises the
LabelTextChanged event. |
void |
Table.removeLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent) |
void |
ITable.removeLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent)
Removes the given listener for the
LabelAdded event that occurs when a label has been added to this graph
instance. |
void |
IGraph.removeLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent)
Removes the given listener for the
LabelAdded event that occurs when a label has been added to this graph
instance. |
void |
DefaultGraph.removeLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent) |
void |
AbstractGraphWrapper.removeLabelAddedListener(IEventHandler<ItemEventArgs<ILabel>> labelAddedEvent) |
void |
Table.removeLabelChangedListener(IEventHandler<ItemEventArgs<ILabel>> labelChangedEvent) |
void |
ITable.removeLabelChangedListener(IEventHandler<ItemEventArgs<ILabel>> labelChangedEvent)
Removes the given listener for the
LabelChanged event that occurs when a label has been changed, for instance,
if its style has been replaced. |
void |
GraphCopier.removeLabelCopiedListener(IEventHandler<ItemCopiedEventArgs<ILabel>> labelCopiedEvent)
Removes the given listener for the
LabelCopied event that occurs after a label has been copied. |
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) |
void |
IGraph.removeLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent)
Removes the given listener for the
LabelPreferredSizeChanged event that occurs when the preferred size of a
label has been changed. |
void |
DefaultGraph.removeLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent) |
void |
AbstractGraphWrapper.removeLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent) |
void |
IGraph.removeLabelStyleChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelStyle>> labelStyleChangedEvent)
Removes the given listener for the
LabelStyleChanged event that occurs when a label style has been replaced. |
void |
DefaultGraph.removeLabelStyleChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelStyle>> labelStyleChangedEvent) |
void |
AbstractGraphWrapper.removeLabelStyleChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,ILabelStyle>> labelStyleChangedEvent) |
void |
IGraph.removeLabelTagChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,Object>> labelTagChangedEvent)
Removes the given listener for the
LabelTagChanged event that occurs when the tag of
a label has been replaced. |
void |
DefaultGraph.removeLabelTagChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,Object>> labelTagChangedEvent) |
void |
AbstractGraphWrapper.removeLabelTagChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,Object>> labelTagChangedEvent) |
void |
IGraph.removeLabelTextChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,String>> labelTextChangedEvent)
Removes the given listener for the
LabelTextChanged event that occurs when the text of a label has been
changed. |
void |
DefaultGraph.removeLabelTextChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,String>> labelTextChangedEvent) |
void |
AbstractGraphWrapper.removeLabelTextChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,String>> labelTextChangedEvent) |
void |
SimpleNode.setLabels(IListEnumerable<ILabel> value)
Sets the collection for the labels.
|
void |
SimpleEdge.setLabels(IListEnumerable<ILabel> value)
Sets the collection for the labels.
|
| Constructor and Description |
|---|
LabelEventArgs(ILabel label,
ILabelOwner owner)
Initializes a new instance of the
LabelEventArgs class. |
| Modifier and Type | Method and Description |
|---|---|
protected double |
DefaultLabelModelParameterFinder.calculateMetric(ILabel label,
ILabelModelParameter layoutParameter,
IOrientedRectangle layout)
Calculates a metric for the given label/parameter pair and the target label layout.
|
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.
|
protected Iterable<ILabelModelParameter> |
DefaultLabelModelParameterFinder.getCandidateParameters(ILabel label,
ILabelModel model)
Retrieves an enumerator over all candidates for a given label and model.
|
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.
|
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.
|
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. |
boolean |
ILabelModelParameter.supports(ILabel label)
Determines whether this parameter can be used for a given label instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected ILabel |
TemplateLabelStyleRenderer.getLabel()
Gets the currently configured label.
|
protected ILabel |
IconLabelStyleRenderer.getLabel()
Gets the currently configured label.
|
protected ILabel |
DefaultLabelStyleRenderer.getLabel()
Gets the currently configured label.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
TemplateLabelStyle.createControl(IRenderContext context,
ILabel label)
Factory method that is called by the
TemplateLabelStyleRenderer to create the control that will be used for the
display of the label. |
protected abstract Node |
AbstractLabelStyle.createVisual(IRenderContext context,
ILabel label)
Callback that creates the visual.
|
protected RectD |
AbstractLabelStyle.getBounds(ICanvasContext context,
ILabel label)
Gets the bounds of the visual for the label in the given context.
|
IBoundsProvider |
VoidLabelStyleRenderer.getBoundsProvider(ILabel label,
ILabelStyle style)
Yields the
IBoundsProvider.EMPTY that will return empty bounds. |
IBoundsProvider |
TemplateLabelStyleRenderer.getBoundsProvider(ILabel label,
ILabelStyle style)
Configures the
Style and Label properties, calls TemplateLabelStyleRenderer.configure() and
returns this. |
IBoundsProvider |
IconLabelStyleRenderer.getBoundsProvider(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, calls IconLabelStyleRenderer.configure() and returns this. |
IBoundsProvider |
ILabelStyleRenderer.getBoundsProvider(ILabel label,
ILabelStyle style)
Gets an implementation of the
IBoundsProvider interface that can handle the provided label and its associated
style. |
IBoundsProvider |
DefaultLabelStyleRenderer.getBoundsProvider(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, calls DefaultLabelStyleRenderer.configure() and returns this. |
ILookup |
VoidLabelStyleRenderer.getContext(ILabel label,
ILabelStyle style)
Yields the
ILookup.EMPTY that will not yield anything. |
ILookup |
TemplateLabelStyleRenderer.getContext(ILabel label,
ILabelStyle style)
Configures the
Style and Label properties, does not call TemplateLabelStyleRenderer.configure()
and returns this. |
ILookup |
IconLabelStyleRenderer.getContext(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, does not call IconLabelStyleRenderer.configure() and returns
this. |
ILookup |
ILabelStyleRenderer.getContext(ILabel label,
ILabelStyle style)
Gets a temporary context instance that can be used to query additional information for the label's style.
|
ILookup |
DefaultLabelStyleRenderer.getContext(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, does not call DefaultLabelStyleRenderer.configure() and returns
this. |
IHitTestable |
VoidLabelStyleRenderer.getHitTestable(ILabel label,
ILabelStyle style)
Yields the
IHitTestable.NEVER that will always report misses. |
IHitTestable |
TemplateLabelStyleRenderer.getHitTestable(ILabel label,
ILabelStyle style)
Configures the
Style and Label properties, calls TemplateLabelStyleRenderer.configure() and
returns this. |
IHitTestable |
IconLabelStyleRenderer.getHitTestable(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, calls IconLabelStyleRenderer.configure() and returns this. |
IHitTestable |
ILabelStyleRenderer.getHitTestable(ILabel label,
ILabelStyle style)
Gets an implementation of the
IHitTestable interface that can handle the provided label and its associated
style. |
IHitTestable |
DefaultLabelStyleRenderer.getHitTestable(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, calls DefaultLabelStyleRenderer.configure() and returns this. |
IMarqueeTestable |
VoidLabelStyleRenderer.getMarqueeTestable(ILabel label,
ILabelStyle style)
Yields the
IMarqueeTestable.NEVER that will always report misses. |
IMarqueeTestable |
TemplateLabelStyleRenderer.getMarqueeTestable(ILabel label,
ILabelStyle style)
Configures the
Style and Label properties, calls TemplateLabelStyleRenderer.configure() and
returns this. |
IMarqueeTestable |
IconLabelStyleRenderer.getMarqueeTestable(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, calls IconLabelStyleRenderer.configure() and returns this. |
IMarqueeTestable |
ILabelStyleRenderer.getMarqueeTestable(ILabel label,
ILabelStyle style)
Gets an implementation of the
IMarqueeTestable interface that can handle the provided label and its associated
style. |
IMarqueeTestable |
DefaultLabelStyleRenderer.getMarqueeTestable(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, calls DefaultLabelStyleRenderer.configure() and returns this. |
protected abstract SizeD |
AbstractLabelStyle.getPreferredSize(ILabel label)
Callback that returns the preferred
size of the label. |
SizeD |
VoidLabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style)
Yields
SizeD.EMPTY. |
SizeD |
TemplateLabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style)
Calculates the preferred size for the given label and style.
|
SizeD |
IconLabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style) |
SizeD |
ILabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style)
Calculates the
preferred size of a given label using the associated style. |
SizeD |
DefaultLabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style) |
SizeD |
TemplateLabelStyle.getPreferredSize(IRenderContext context,
ILabel label)
Convenience method that determines the preferred size of the label if this style was applied.
|
SizeD |
TemplateLabelStyleRenderer.getPreferredSize(IRenderContext context,
ILabel label,
ILabelStyle style)
Calculates the preferred size for the given label and style.
|
IVisibilityTestable |
VoidLabelStyleRenderer.getVisibilityTestable(ILabel label,
ILabelStyle style)
Yields the
IVisibilityTestable.NEVER that will always claim invisibility. |
IVisibilityTestable |
TemplateLabelStyleRenderer.getVisibilityTestable(ILabel label,
ILabelStyle style)
Configures the
Style and Label properties, does not call TemplateLabelStyleRenderer.configure()
and returns this. |
IVisibilityTestable |
IconLabelStyleRenderer.getVisibilityTestable(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, does not call IconLabelStyleRenderer.configure() and returns
this. |
IVisibilityTestable |
ILabelStyleRenderer.getVisibilityTestable(ILabel label,
ILabelStyle style)
Gets an implementation of the
IVisibilityTestable interface that can handle the provided label and its
associated style. |
IVisibilityTestable |
DefaultLabelStyleRenderer.getVisibilityTestable(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, does not call DefaultLabelStyleRenderer.configure() and returns
this. |
IVisualCreator |
VoidLabelStyleRenderer.getVisualCreator(ILabel label,
ILabelStyle style)
Yields the
VoidVisualCreator.INSTANCE that will do nothing. |
IVisualCreator |
TemplateLabelStyleRenderer.getVisualCreator(ILabel label,
ILabelStyle style)
Configures the
Style and Label properties, calls TemplateLabelStyleRenderer.configure() and
returns this. |
IVisualCreator |
IconLabelStyleRenderer.getVisualCreator(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, calls IconLabelStyleRenderer.configure() and returns this. |
IVisualCreator |
ILabelStyleRenderer.getVisualCreator(ILabel label,
ILabelStyle style)
Gets an implementation of the
IVisualCreator interface that can handle the provided label and its associated
style. |
IVisualCreator |
DefaultLabelStyleRenderer.getVisualCreator(ILabel label,
ILabelStyle style)
Configures the
style and label parameters, calls DefaultLabelStyleRenderer.configure() and returns this. |
protected void |
LabelTemplate.initializeFrom(IRenderContext ctx,
ILabel label,
TemplateLabelStyle style)
Initializes all properties with the given
ILabel and style information. |
void |
LabelTemplate.initializeFromInternal(IRenderContext ctx,
ILabel item,
ILabelStyle style)
Initializes this label template with the given
ILabel and style information. |
protected boolean |
AbstractLabelStyle.isHit(IInputModeContext context,
PointD location,
ILabel label)
Determines whether the visual representation of the label has been hit at the given location.
|
protected boolean |
AbstractLabelStyle.isInBox(IInputModeContext context,
RectD rectangle,
ILabel label)
Determines whether the visualization for the specified label is included in the marquee selection.
|
protected boolean |
AbstractLabelStyle.isVisible(ICanvasContext context,
RectD rectangle,
ILabel label)
Determines whether the visualization for the specified label is visible in the context.
|
protected Object |
AbstractLabelStyle.lookup(ILabel label,
Class type)
Performs the
ILookup.lookup(Class) operation for the ILabelStyleRenderer.getContext(ILabel, ILabelStyle)
that has been queried from the Renderer. |
protected Object |
TemplateLabelStyleRenderer.lookupContext(TemplateLabelStyle style,
ILabel label,
Class type)
Delegates to the
TemplateLabelStyle's
ContextLookup. |
protected void |
TemplateLabelStyleRenderer.setLabel(ILabel value)
Sets the currently configured label.
|
protected void |
IconLabelStyleRenderer.setLabel(ILabel value)
Sets the currently configured label.
|
protected void |
DefaultLabelStyleRenderer.setLabel(ILabel value)
Sets the currently configured label.
|
protected void |
LabelTemplate.updateContent(TemplateLabelStyle style,
ILabel label)
Updates the content object the user has specified.
|
protected void |
LabelTemplate.updateFor(IRenderContext ctx,
ILabel label,
TemplateLabelStyle style)
Updates all properties with the given
ILabel and style information. |
void |
LabelTemplate.updateForInternal(IRenderContext ctx,
ILabel item,
ILabelStyle style)
Updates this label template with the given
ILabel and style information. |
protected Node |
AbstractLabelStyle.updateVisual(IRenderContext context,
Node oldVisual,
ILabel label)
Callback that updates the visual previously created by
AbstractLabelStyle.createVisual(IRenderContext, ILabel). |
| Modifier and Type | Field and Description |
|---|---|
static TypedKey<Predicate<ILabel>> |
SerializationProperties.WRITE_LABEL_SIZE_PREDICATE
Provides a
Predicate that determines if the preferred size of a label should be written. |
| Modifier and Type | Field and Description |
|---|---|
static IEdgeLabelLayoutDpKey<ILabel> |
LayoutGraphAdapter.ORIGINAL_EDGE_LABEL_DPKEY
A data provider key that can be used to look up the original
ILabel of an IEdgeLabelLayout. |
static INodeLabelLayoutDpKey<ILabel> |
LayoutGraphAdapter.ORIGINAL_NODE_LABEL_DPKEY
A data provider key that can be used to look up the original
ILabel of an INodeLabelLayout. |
| 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 |
|---|---|
DpKeyItemCollection<ILabel> |
LabelingData.getAffectedLabels()
Gets the collection of labels that shall be placed by the algorithm.
|
ItemMapping<ILabel,IEdgeLabelLayoutModel> |
LabelingData.getEdgeLabelModels()
Gets the mapping from edge labels to an
IEdgeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
ItemMapping<ILabel,INodeLabelLayoutModel> |
LabelingData.getNodeLabelModels()
Gets the mapping from node labels to an
INodeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
| Modifier and Type | Method and Description |
|---|---|
void |
LabelingData.setAffectedLabels(DpKeyItemCollection<ILabel> value)
Sets the collection of labels that shall be placed by the algorithm.
|
void |
LabelingData.setEdgeLabelModels(ItemMapping<ILabel,IEdgeLabelLayoutModel> value)
Sets the mapping from edge labels to an
IEdgeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
void |
LabelingData.setNodeLabelModels(ItemMapping<ILabel,INodeLabelLayoutModel> value)
Sets the mapping from node labels to an
INodeLabelLayoutModel used by the labeling algorithm instead of the
original label model. |
| Modifier and Type | Method and Description |
|---|---|
ItemMapping<ILabel,Object> |
MultiPageLayoutData.getEdgeLabelIds()
Gets the mapping from edge labels to their unique IDs.
|
ItemMapping<ILabel,Object> |
MultiPageLayoutData.getNodeLabelIds()
Gets the mapping from node labels to their unique IDs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MultiPageLayoutData.setEdgeLabelIds(ItemMapping<ILabel,Object> value)
Sets the mapping from edge labels to their unique IDs.
|
void |
MultiPageLayoutData.setNodeLabelIds(ItemMapping<ILabel,Object> value)
Sets the mapping from node labels to their unique IDs.
|
| Modifier and Type | Method and Description |
|---|---|
ItemCollection<ILabel> |
PolylineEdgeRouterData.getIgnoredLabels()
Gets the collection of labels of nodes or fixed edges that are ignored by the router.
|
ItemMapping<ILabel,Double> |
PolylineEdgeRouterData.getLabelCrossingPenaltyFactors()
Gets a mapping from labels to a crossing penalty factor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PolylineEdgeRouterData.setIgnoredLabels(ItemCollection<ILabel> value)
Sets the collection of labels of nodes or fixed edges that are ignored by the router.
|
void |
PolylineEdgeRouterData.setLabelCrossingPenaltyFactors(ItemMapping<ILabel,Double> value)
Sets a mapping from labels to a crossing penalty factor.
|
| Modifier and Type | Method and Description |
|---|---|
protected DefaultSelectionModel<ILabel> |
GraphSelection.createLabelSelectionModel()
Factory method that creates the
DefaultSelectionModel to use for the labels. |
ISelectionModel<ILabel> |
IGraphSelection.getSelectedLabels()
An
ISelectionModel of the selected labels. |
ISelectionModel<ILabel> |
GraphSelection.getSelectedLabels() |
| 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. |
protected ICanvasObjectGroup |
GraphModelManager.getCanvasObjectGroup(ILabel label)
Retrieves the Canvas Object group to use for the given label.
|
| 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 ILabel |
MoveLabelInputMode.getHitLabel(IInputModeContext context,
PointD location)
Looks for a label that has been hit at the specified position.
|
ILabel |
LabelTextValidatingEventArgs.getLabel()
Gets the label that is being edited.
|
protected ILabel |
LabelPositionHandler.getLabel()
Gets the label instance.
|
ILabel |
LabelEditingEventArgs.getLabel()
Gets the label to edit.
|
ILabel |
MoveLabelInputMode.getMovedLabel()
Gets the label that is currently moved or
null if there is no such label. |
| Modifier and Type | Method and Description |
|---|---|
Future<ILabel> |
TableEditorInputMode.addLabel(ILabelOwner owner)
Adds a new label to the given stripe interactively.
|
Future<ILabel> |
GraphEditorInputMode.addLabel(ILabelOwner owner)
Adds a new label to the given item interactively.
|
Future<ILabel> |
GraphEditorInputMode.createLabel(ILabelOwner owner)
Interactively creates a new label for the provided label owner.
|
Future<ILabel> |
TableEditorInputMode.createLabel(IStripe stripe)
Interactively creates a new label for the provided stripe.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
LabelSnapContextHelper.addEdgePathSnapLines(LabelSnapContext snapContext,
IInputModeContext inputModeContext,
ILabel label)
Adds snap lines to the
snapContext that are parallel to the path segments of the owner edge at particular
distances. |
protected void |
LabelSnapContextHelper.addEdgePathSnapLines(LabelSnapContext snapContext,
IInputModeContext inputModeContext,
ILabel label,
double distance)
Adds snap lines to the
snapContext that are parallel to the path segments of the owner edge at the given
distance. |
protected void |
LabelSnapContextHelper.addInitialLocationSnapLines(LabelSnapContext snapContext,
IInputModeContext inputModeContext,
ILabel label)
Adds two snap line for the initial center location of the label, one in the direction of the up vector, the other
orthogonal to that direction.
|
protected void |
LabelSnapContextHelper.addNodeShapeSnapLines(LabelSnapContext snapContext,
IInputModeContext inputModeContext,
ILabel label)
Adds snap lines to the
snapContext that are parallel to the owner node's border at particular distances. |
void |
LabelSnapContextHelper.addSnapLines(LabelSnapContext snapContext,
IInputModeContext inputModeContext,
ILabel label)
Called during
initialization of a label
dragging to add snap lines to which the label can potentially snap to the snapContext. |
void |
ILabelSnapContextHelper.addSnapLines(LabelSnapContext snapContext,
IInputModeContext inputModeContext,
ILabel label)
Called during
initialization of a label
dragging to add snap lines to which the label can potentially snap to the
snapContext. |
void |
LabelSnapContextHelper.collectSnapResults(LabelSnapContext context,
CollectSnapResultsEventArgs args,
IOrientedRectangle suggestedLayout,
ILabel label) |
void |
ILabelSnapContextHelper.collectSnapResults(LabelSnapContext context,
CollectSnapResultsEventArgs args,
IOrientedRectangle suggestedLayout,
ILabel label)
Called while the given
label is dragged
to add snap results for the snap lines
provided by the context. |
void |
ITextEditorInputModeConfigurationHandler.configure(IInputModeContext context,
TextEditorInputMode mode,
ILabel label)
Callback for configuring a
TextEditorInputMode for editing a provided label instance. |
protected IPositionHandler |
MoveLabelInputMode.createLabelPositionHandler(ILabel label)
Creates the
position handler for the given label used in
MoveLabelInputMode.isValidLabelHit(IInputModeContext, PointD). |
void |
TableEditorInputMode.editLabel(ILabel label)
Starts editing of the given label.
|
void |
GraphEditorInputMode.editLabel(ILabel label)
Starts editing the given label.
|
protected Iterable<ILabelModelParameter> |
LabelPositionHandler.getParameterCandidates(ILabel label)
Callback method that gets the candidates for the given label.
|
protected SizeD |
EditLabelHelper.getPreferredSize(IInputModeContext context,
ILabel label)
Gets the preferred size for the label.
|
protected void |
TableEditorInputMode.onLabelTextEdited(ILabel label,
String text)
Called when the text of a label has been
edited. |
protected void |
GraphEditorInputMode.onLabelTextEdited(ILabel label,
String text)
Called when the text of a label has been
edited. |
void |
LabelEditingEventArgs.setLabel(ILabel value)
Sets the label to edit.
|
void |
GraphEditorInputMode.setLabelText(ILabel label,
String text)
Sets the label's text after it has been
edited. |
protected void |
LabelPositionHandler.setLayoutParameter(ILabel label,
ILabelModelParameter layoutParameter)
Actually applies the given parameter at the end of the gesture.
|
protected boolean |
MoveLabelInputMode.shouldMove(IInputModeContext context,
ILabel label)
Determines whether or not a label is allowed to be moved.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TableEditorInputMode.addLabelTextChangedListener(IEventHandler<ItemEventArgs<ILabel>> labelTextChangedEvent)
Adds the given listener for the
LabelTextChanged event that occurs when this mode has triggered the edit of an
ILabel, for instance, in response to TableEditorInputMode.editLabel(ILabel). |
void |
TableEditorInputMode.addLabelTextEditingCanceledListener(IEventHandler<ItemEventArgs<ILabel>> labelTextEditingCanceledEvent)
Adds the given listener for the
LabelTextEditingCanceled event that occurs when the actual label editing process
is canceled. |
void |
TableEditorInputMode.addLabelTextEditingStartedListener(IEventHandler<ItemEventArgs<ILabel>> labelTextEditingStartedEvent)
Adds the given listener for the
LabelTextEditingStarted event that occurs when the actual label editing process
is about to start. |
protected void |
TableEditorInputMode.onLabelTextChanged(ItemEventArgs<ILabel> args)
Raises the
LabelTextChanged event. |
void |
TableEditorInputMode.removeLabelTextChangedListener(IEventHandler<ItemEventArgs<ILabel>> labelTextChangedEvent)
Removes the given listener for the
LabelTextChanged event that occurs when this mode has triggered the edit of
an ILabel, for instance, in response to TableEditorInputMode.editLabel(ILabel). |
void |
TableEditorInputMode.removeLabelTextEditingCanceledListener(IEventHandler<ItemEventArgs<ILabel>> labelTextEditingCanceledEvent)
Removes the given listener for the
LabelTextEditingCanceled event that occurs when the actual label editing
process is canceled. |
void |
TableEditorInputMode.removeLabelTextEditingStartedListener(IEventHandler<ItemEventArgs<ILabel>> labelTextEditingStartedEvent)
Removes the given listener for the
LabelTextEditingStarted event that occurs when the actual label editing
process is about to start. |
| Constructor and Description |
|---|
LabelEditingEventArgs(IInputModeContext context,
ILabelOwner owner,
ILabel label)
Initializes a new instance of the
LabelEditingEventArgs class with the given context, owner, and label. |
LabelPositionHandler(ILabel label)
Initializes a new instance of the
LabelPositionHandler class. |
LabelTextValidatingEventArgs(IInputModeContext context,
ILabel label,
String newText)
Initializes a new instance of the
LabelTextValidatingEventArgs class. |