Class VariationDiffApp<L extends Label>
java.lang.Object
org.variantsync.diffdetective.show.engine.App
org.variantsync.diffdetective.show.variation.VariationDiffApp<L>
- All Implemented Interfaces:
Updateable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<DiffNodeLabelFormat<L>> static final doubleprivate DiffNodeLabelFormat<L> static final intstatic final doubleprivate Vec2private final Danceprivate booleanstatic final intstatic final doubleprivate final VariationDiff<L> -
Constructor Summary
ConstructorsConstructorDescriptionVariationDiffApp(String name, VariationDiff<L> variationDiff, Vec2 resolution, List<DiffNodeLabelFormat<L>> availableFormats) -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> voidalignInBox(Vec2 resolution, Map<V, Vec2> locations) calculateLayout(VariationDiff<L> d, GraphvizExporter.LayoutAlgorithm layout, Format<L> format) static final <L extends Label>
List<DiffNodeLabelFormat<L>> getEntityOf(DiffNode<?> diffNode) (package private) DiffNodeLabelFormat<? super L> voidinitialize(World world) private voidlayoutNodes(GraphvizExporter.LayoutAlgorithm layoutAlgorithm) voidlocateVariationDiffNodesAt(Map<DiffNode<?>, Vec2> locations) private voidprivate voidsaveTikz()private voidsetLabelFormat(DiffNodeLabelFormat<L> labelFormat) private voidprivate voidprivate voidspawnVariationDiff(World world) private voidMethods inherited from class org.variantsync.diffdetective.show.engine.App
addUpdateable, getWindow, getWorld, removeUpdateable, render, setWorld, start, update
-
Field Details
-
TIKZ_NODE_RADIUS
public static final double TIKZ_NODE_RADIUS- See Also:
-
TIKZ_FONT_SIZE
public static final int TIKZ_FONT_SIZE- See Also:
-
DEFAULT_NODE_RADIUS
public static final double DEFAULT_NODE_RADIUS- See Also:
-
DEFAULT_FONT_SIZE
public static final int DEFAULT_FONT_SIZE- See Also:
-
BOX_ALIGN_INDENT
public static final double BOX_ALIGN_INDENT- See Also:
-
defaultFormat
-
availableFormats
-
resolution
-
variationDiff
-
nodes
-
rootDancing
private boolean rootDancing -
rootDance
-
currentFormat
-
-
Constructor Details
-
VariationDiffApp
public VariationDiffApp(String name, VariationDiff<L> variationDiff, Vec2 resolution, List<DiffNodeLabelFormat<L>> availableFormats)
-
-
Method Details
-
DEFAULT_FORMATS
-
setupMenu
private void setupMenu() -
setupInput
private void setupInput() -
toggleRootDance
private void toggleRootDance() -
saveScreenshot
private void saveScreenshot() -
saveTikz
private void saveTikz() -
setLabelFormat
-
getLabelFormat
DiffNodeLabelFormat<? super L> getLabelFormat() -
layoutNodes
-
spawnVariationDiff
-
initialize
- Specified by:
initializein classApp
-
getEntityOf
-
getVariationDiff
-
calculateLayout
public static <L extends Label> Map<DiffNode<?>,Vec2> calculateLayout(VariationDiff<L> d, GraphvizExporter.LayoutAlgorithm layout, Format<L> format) throws IOException - Throws:
IOException
-
locateVariationDiffNodesAt
-
alignInBox
-