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.styles |
Contains interfaces and default implementations for graph element styles.
|
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 |
---|---|
ILabelStyle |
GraphCopier.copyLabelStyle(IGraph graph,
ILabel label)
Copies an
ILabelStyle instance. |
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) . |
default ILabelStyle |
ITable.createLabelStyle(IStripe stripe)
Convenience method that delegates to the
ILabelDefaults.getStyleInstance(com.yworks.yfiles.graph.ILabelOwner)
method for the given stripe . |
ILabelStyle |
DefaultFolderNodeConverter.getLabelStyle()
Gets the
ILabelStyle to use for the first label of the collapsed group nodes. |
ILabelStyle |
AbstractFoldingEdgeConverter.getLabelStyle()
Gets the
ILabelStyle to use for the first label of the folding edge. |
ILabelStyle |
SimpleLabel.getStyle() |
ILabelStyle |
LabelDefaults.getStyle() |
ILabelStyle |
ILabelDefaults.getStyle()
Gets the style to use for labels.
|
ILabelStyle |
ILabel.getStyle()
Returns the style that is responsible for the visual representation of this node in a
CanvasControl . |
ILabelStyle |
FoldingLabelState.getStyle()
The style of this label.
|
ILabelStyle |
LabelDefaults.getStyleInstance(ILabelOwner owner) |
ILabelStyle |
ILabelDefaults.getStyleInstance(ILabelOwner owner)
Factory method that returns a style instance for use with newly created labels.
|
Modifier and Type | Method and Description |
---|---|
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,
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,
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.onChangingLabelStyle(ILabel label,
ILabelStyle newStyle)
Callback that is invoked before a label style is being changed.
|
protected void |
DefaultGraph.onLabelStyleChanged(ILabel label,
ILabelStyle oldStyle)
Callback that is invoked after a label style has changed.
|
void |
DefaultFolderNodeConverter.setLabelStyle(ILabelStyle value)
Sets the
ILabelStyle to use for the first label of the collapsed group nodes. |
void |
AbstractFoldingEdgeConverter.setLabelStyle(ILabelStyle value)
Sets the
ILabelStyle to use for the first label of the folding edge. |
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) |
void |
SimpleLabel.setStyle(ILabelStyle value)
Returns the style that is responsible for the visual representation of this node in a
CanvasControl . |
void |
LabelDefaults.setStyle(ILabelStyle value) |
void |
ILabelDefaults.setStyle(ILabelStyle value)
Sets the style to use for labels.
|
void |
FoldingLabelState.setStyle(ILabelStyle value)
The style of this label.
|
Modifier and Type | Method and Description |
---|---|
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) |
protected void |
AbstractGraphWrapper.onLabelStyleChanged(ItemChangedEventArgs<ILabel,ILabelStyle> args)
Raises the
LabelStyleChanged event. |
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) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractLabelStyle
An abstract base class that makes it possible to easily implement a custom
ILabelStyle . |
class |
DefaultLabelStyle
|
class |
IconLabelStyle
A label style that draws an icon in addition to the text.
|
class |
MemoryIconLabelStyle
A mutable implementation of the
ILabelStyle interface
that uses BitmapSources that are built from
memory as the icon . |
class |
NodeStyleLabelStyleAdapter
A label style decorator that uses a node style instance to render the background and a label style instance to render
the foreground of a label.
|
class |
TemplateLabelStyle
An
ILabelStyle implementation that can render complex Node s for the visualization of ILabel s
using TemplateLabelStyleRenderer . |
class |
VoidLabelStyle
A void implementation of a label style that does nothing and behaves like an invisible style.
|
Modifier and Type | Method and Description |
---|---|
ILabelStyle |
MemoryIconLabelStyle.getInnerStyle()
Gets the inner style to decorate.
|
ILabelStyle |
NodeStyleLabelStyleAdapter.getLabelStyle()
Gets the
ILabelStyle that is used for rendering the foreground of the label. |
ILabelStyle |
IconLabelStyle.getWrapped()
Gets the style that renders the text of the label.
|
protected ILabelStyle |
IconLabelStyleRenderer.getWrappedStyle()
|
Modifier and Type | Method and Description |
---|---|
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 . |
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 |
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 . |
void |
LabelTemplate.initializeFromInternal(IRenderContext ctx,
ILabel item,
ILabelStyle style)
Initializes this label template with the given
ILabel and style information. |
void |
MemoryIconLabelStyle.setInnerStyle(ILabelStyle value)
Sets the inner style to decorate.
|
void |
NodeStyleLabelStyleAdapter.setLabelStyle(ILabelStyle value)
Sets the
ILabelStyle that is used for rendering the foreground of the label. |
void |
IconLabelStyle.setWrapped(ILabelStyle value)
Sets the style that renders the text of the label.
|
void |
LabelTemplate.updateForInternal(IRenderContext ctx,
ILabel item,
ILabelStyle style)
Updates this label template with the given
ILabel and style information. |
Constructor and Description |
---|
NodeStyleLabelStyleAdapter(INodeStyle nodeStyle,
ILabelStyle labelStyle)
Creates a label style that uses the provided node style to render the background and the label style to render the
foreground of this style.
|
Modifier and Type | Method and Description |
---|---|
ILabelStyle |
LabelStyleDecorationInstaller.getLabelStyle()
The style to use for the rendering.
|
Modifier and Type | Method and Description |
---|---|
void |
LabelStyleDecorationInstaller.setLabelStyle(ILabelStyle value)
The style to use for the rendering.
|
Modifier and Type | Method and Description |
---|---|
protected ILabelStyle |
EditLabelHelper.getLabelStyle(IInputModeContext context,
ILabelOwner owner)
Determines the style to use for the label, depending on the
owner . |
ILabelStyle |
LabelEditingEventArgs.getStyle()
Gets the
Style of the label to add. |
Modifier and Type | Method and Description |
---|---|
void |
LabelEditingEventArgs.setStyle(ILabelStyle value)
Sets the
Style of the label to add. |