Class DefaultEdgeLabelFormat<L extends Label>
java.lang.Object
org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat<L>
org.variantsync.diffdetective.variation.diff.serialize.edgeformat.DefaultEdgeLabelFormat<L>
- All Implemented Interfaces:
LinegraphFormat
Default implementation of
EdgeLabelFormat
.
This format does not add any extra information to edge's labels.- Author:
- Paul Bittner
-
Nested Class Summary
Nested classes/interfaces inherited from class org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat
EdgeLabelFormat.Direction
-
Constructor Summary
ConstructorDescriptionCreates a new default edge label format.DefaultEdgeLabelFormat
(EdgeLabelFormat.Direction direction) Creates a new default edge label format that interprets edges as following the given direction. -
Method Summary
Modifier and TypeMethodDescriptionlabelOf
(StyledEdge<La> edge) Converts aStyledEdge
into a label suitable for exporting.Methods inherited from class org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat
connect, connectAccordingToLabel, getEdgeDirection, multilineLabelOf, setEdgeDirection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.variantsync.diffdetective.variation.diff.serialize.LinegraphFormat
getIdentifier, getShortName
-
Constructor Details
-
DefaultEdgeLabelFormat
public DefaultEdgeLabelFormat()Creates a new default edge label format. -
DefaultEdgeLabelFormat
Creates a new default edge label format that interprets edges as following the given direction.- Parameters:
direction
- Directions in which edge IO should be done.
-
-
Method Details
-
labelOf
Description copied from class:EdgeLabelFormat
Converts aStyledEdge
into a label suitable for exporting. This may be human readable text or machine parseable metadata.- Specified by:
labelOf
in classEdgeLabelFormat<L extends Label>
- Parameters:
edge
- TheStyledEdge
to be labeled- Returns:
- a label for
edge
-