public final class FoldingEdgeState extends FoldingLabelOwnerState
When the properties of the state are changed, these changes are reflected immediately in the
Views.
| Modifier and Type | Method and Description |
|---|---|
FoldingBendState |
addBend(PointD location)
|
FoldingBendState |
addBend(PointD location,
int index)
|
FoldingLabelState |
addLabel(String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag)
Adds a
FoldingLabelState to this state. |
IEdge |
asEdge()
Returns an
IEdge instance which represents this edge state. |
void |
clearBends()
Removes all
Bends. |
FoldingEdgeState |
clone() |
IListEnumerable<FoldingBendState> |
getBends()
The
FoldingBendStates of this state. |
FoldingPortState |
getSourcePort()
The
FoldingPortState which represents the source port of this edge state. |
IEdgeStyle |
getStyle()
The style of this edge.
|
Object |
getTag()
The tag of the edge.
|
FoldingPortState |
getTargetPort()
The
FoldingPortState which represents the target port of this edge state. |
void |
remove(FoldingBendState bend)
Removes the
bend from this edge state. |
void |
remove(FoldingLabelState label)
Removes the
label from its owning FoldingLabelOwnerState. |
void |
setStyle(IEdgeStyle value)
The style of this edge.
|
void |
setTag(Object value)
The tag of the edge.
|
clearLabels, getLabelspublic final FoldingBendState addBend(PointD location)
location - The location of the new bend state.public final FoldingBendState addBend(PointD location, int index)
location - The location of the new bend state.index - The index the bend state shall be inserted in the
Bends; a negative value (which is the default) indicates that the bend should be appended to the
end of the list of bends.public FoldingLabelState addLabel(String text, ILabelModelParameter layoutParameter, ILabelStyle style, SizeD preferredSize, Object tag)
FoldingLabelOwnerStateFoldingLabelState to this state.addLabel in class FoldingLabelOwnerStatetext - 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 IEdge asEdge()
IEdge instance which represents this edge state.
The returned edge is not present in any graph but may be passed to IFoldingView.getViewItem(com.yworks.yfiles.graph.IModelItem)
to get the edge state's view edge in the folding view graph.
IEdge instance which represents this edge state.public final void clearBends()
Bends.public final FoldingEdgeState clone()
public final IListEnumerable<FoldingBendState> getBends()
FoldingBendStates of this state.public final FoldingPortState getSourcePort()
FoldingPortState which represents the source port of this edge state.public final IEdgeStyle getStyle()
setStyle(IEdgeStyle)public final Object getTag()
setTag(Object)public final FoldingPortState getTargetPort()
FoldingPortState which represents the target port of this edge state.public final void remove(FoldingBendState bend)
bend from this edge state.IllegalArgumentException - Thrown if the bend doesn't belong to this edge state.bend - The bend to remove.public void remove(FoldingLabelState label)
FoldingLabelOwnerStatelabel from its owning FoldingLabelOwnerState.remove in class FoldingLabelOwnerStatelabel - The label to remove.public final void setStyle(IEdgeStyle value)
value - The Style to set.getStyle()