public abstract class FoldingLabelOwnerState extends Object
Developers should not extend this class. Only instances of its subclasses FolderNodeState
and FoldingEdgeState
are supported.
When the properties of the state are changed, these changes are reflected immediately in the
Views
.
FolderNodeState
,
FoldingEdgeState
,
FoldingLabelState
Constructor and Description |
---|
FoldingLabelOwnerState() |
Modifier and Type | Method and Description |
---|---|
abstract FoldingLabelState |
addLabel(String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag)
Adds a
FoldingLabelState to this state. |
void |
clearLabels()
Removes all
Labels . |
IListEnumerable<FoldingLabelState> |
getLabels()
The
FoldingLabelState s owned by this state. |
abstract void |
remove(FoldingLabelState label)
Removes the
label from its owning FoldingLabelOwnerState . |
public abstract FoldingLabelState addLabel(String text, ILabelModelParameter layoutParameter, ILabelStyle style, SizeD preferredSize, Object tag)
FoldingLabelState
to this state.text
- The text of the new label.layoutParameter
- The layout parameter of the new label.style
- The style of the new label.preferredSize
- The preferred size of the label.tag
- The tag of the label.FoldingLabelState
.public final void clearLabels()
Labels
.public final IListEnumerable<FoldingLabelState> getLabels()
FoldingLabelState
s owned by this state.public abstract void remove(FoldingLabelState label)
label
from its owning FoldingLabelOwnerState
.label
- The label to remove.