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
Modifier and TypeFieldDescriptionprivate final List<DiffNodeLabelFormat<L>>
static final double
private DiffNodeLabelFormat<L>
static final int
static final double
private Vec2
private final Dance
private boolean
static final int
static final double
private final VariationDiff<L>
-
Constructor Summary
ConstructorDescriptionVariationDiffApp
(String name, VariationDiff<L> variationDiff, Vec2 resolution, List<DiffNodeLabelFormat<L>> availableFormats) -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> void
alignInBox
(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>
void
initialize
(World world) private void
layoutNodes
(GraphvizExporter.LayoutAlgorithm layoutAlgorithm) void
locateVariationDiffNodesAt
(Map<DiffNode<?>, Vec2> locations) private void
private void
saveTikz()
private void
setLabelFormat
(DiffNodeLabelFormat<L> labelFormat) private void
private void
private void
spawnVariationDiff
(World world) private void
Methods 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:
initialize
in 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
-