public class LabeledEdgeImpl extends LabeledGraphComponentImpl implements LabeledEdge
To do:
Notification mechanism so that an Edge is informed about a Vertex's label state change,
so that we do not have to recreate the label all the time.
| Constructor and Description |
|---|
LabeledEdgeImpl(Edge edge) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel()
If getFollowVertexLabel() returns true,
each call to this method derives the label for the Edge for whic
the label is for.
|
boolean |
isFollowVertexLabel() |
void |
setFollowVertexLabel(boolean isFollow)
Specifies if the edge should follow the labels of its vertices.
|
void |
setLabel(String label)
Set the label on this component.
|
compareTo, hasLabel, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasLabelpublic LabeledEdgeImpl(Edge edge)
public boolean isFollowVertexLabel()
isFollowVertexLabel in interface LabeledEdgepublic void setFollowVertexLabel(boolean isFollow)
LabeledEdgesetFollowVertexLabel in interface LabeledEdgepublic String getLabel()
For the moment, deriving it for each call will suffice.
getLabel in interface LabeledGraphComponentgetLabel in class LabeledGraphComponentImplpublic void setLabel(String label)
LabeledGraphComponentsetLabel in interface LabeledGraphComponentsetLabel in class LabeledGraphComponentImpllabel - the new label to assign to the componentCopyright © 2019 JULIE Lab, Germany. All rights reserved.