public final class FoldingLabelState extends Object
FolderNodeState or FoldingEdgeState.
When the properties of the state are changed, these changes are reflected immediately in the
Views.
| Modifier and Type | Method and Description |
|---|---|
ILabel |
asLabel()
Returns an
ILabel instance which represents this label state. |
ILabelModelParameter |
getLayoutParameter()
The
ILabelModelParameter used to describe the label's layout. |
SizeD |
getPreferredSize()
The preferred size of the label.
|
ILabelStyle |
getStyle()
The style of this label.
|
Object |
getTag()
The tag of the label.
|
String |
getText()
The label's text.
|
void |
setLayoutParameter(ILabelModelParameter value)
The
ILabelModelParameter used to describe the label's layout. |
void |
setPreferredSize(SizeD value)
The preferred size of the label.
|
void |
setStyle(ILabelStyle value)
The style of this label.
|
void |
setTag(Object value)
The tag of the label.
|
void |
setText(String value)
The label's text.
|
public final ILabel asLabel()
ILabel instance which represents this label state.
The returned label is not present in any graph but may be passed to IFoldingView.getViewItem(com.yworks.yfiles.graph.IModelItem)
to get the label state's view label in the folding view graph.
ILabel instance which represents this label state.public final ILabelModelParameter getLayoutParameter()
ILabelModelParameter used to describe the label's layout.setLayoutParameter(ILabelModelParameter)public final SizeD getPreferredSize()
setPreferredSize(SizeD)public final ILabelStyle getStyle()
setStyle(ILabelStyle)public final Object getTag()
setTag(Object)public final String getText()
setText(String)public final void setLayoutParameter(ILabelModelParameter value)
ILabelModelParameter used to describe the label's layout.value - The LayoutParameter to set.getLayoutParameter()public final void setPreferredSize(SizeD value)
value - The PreferredSize to set.getPreferredSize()public final void setStyle(ILabelStyle value)
value - The Style to set.getStyle()public final void setTag(Object value)
value - The Tag to set.getTag()