public class VisualizerUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
smartObjectToString(Object object)
This toString method checks whether the input is an array and returns the according string
representation.
|
static <X,Y> String |
visualize(Visualizer<X,Y> visualizer,
Alignment<X,Y> alignment)
Visualize the given Alignment and write the resulting data to a String.
|
static <X,Y> void |
visualize(Visualizer<X,Y> visualizer,
Alignment<X,Y> alignment,
File out)
Visualize the given Alignment and write the resulting data to the given File.
|
static <X,Y> void |
visualize(Visualizer<X,Y> visualizer,
Alignment<X,Y> alignment,
String out)
Visualize the given Alignment and write the resulting data to the given File.
|
static <X,Y> void |
visualize(Visualizer<X,Y> visualizer,
Alignment<X,Y> alignment,
Writer out)
Visualize the given Alignment and write the resulting data to the given Writer.
|
public static <X,Y> void visualize(@NonNull Visualizer<X,Y> visualizer, @NonNull Alignment<X,Y> alignment, @NonNull Writer out) throws IOException
X
- the class of the elements in the left input sequence.Y
- the class of the elements in the right input sequence.visualizer
- the Visualizer to be used for the visualization.alignment
- an Alignment to be visualized.out
- the Writer the visualization data shall be written to.IOException
- may be thrown during IO operations.public static <X,Y> void visualize(@NonNull Visualizer<X,Y> visualizer, @NonNull Alignment<X,Y> alignment, @NonNull File out) throws IOException
X
- the class of the elements in the left input sequence.Y
- the class of the elements in the right input sequence.visualizer
- the Visualizer to be used for the visualization.alignment
- an Alignment to be visualized.out
- the File the visualization data shall be written to.IOException
- may be thrown during IO operations.public static <X,Y> void visualize(@NonNull Visualizer<X,Y> visualizer, @NonNull Alignment<X,Y> alignment, @NonNull String out) throws IOException
X
- the class of the elements in the left input sequence.Y
- the class of the elements in the right input sequence.visualizer
- the Visualizer to be used for the visualization.alignment
- an Alignment to be visualized.out
- the path to the File the visualization data shall be written to.IOException
- may be thrown during IO operations.public static <X,Y> String visualize(@NonNull Visualizer<X,Y> visualizer, @NonNull Alignment<X,Y> alignment) throws IOException
X
- the class of the elements in the left input sequence.Y
- the class of the elements in the right input sequence.visualizer
- the Visualizer to be used for the visualization.alignment
- an Alignment to be visualized.IOException
- may be thrown during IO operations.Copyright (C) 2016 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/