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
ConstructorsConstructorDescriptionCreates 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 aStyledEdgeinto a label suitable for exporting.Methods inherited from class org.variantsync.diffdetective.variation.diff.serialize.edgeformat.EdgeLabelFormat
connect, connectAccordingToLabel, getEdgeDirection, multilineLabelOf, setEdgeDirectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:EdgeLabelFormatConverts aStyledEdgeinto a label suitable for exporting. This may be human readable text or machine parseable metadata.- Specified by:
labelOfin classEdgeLabelFormat<L extends Label>- Parameters:
edge- TheStyledEdgeto be labeled- Returns:
- a label for
edge
-