public class VisualizationTree extends HashMapHierarchy<java.lang.Object>
HashMapHierarchy.Rec<O>
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<VisualizationListener> |
vlistenerList
The event listeners for this context.
|
Constructor and Description |
---|
VisualizationTree()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addVisualizationListener(VisualizationListener listener)
Add a listener.
|
static It<Result> |
findNewResults(VisualizerContext context,
java.lang.Object start)
Iterate over the primary result tree.
|
static <A extends Result,B extends VisualizationItem> |
findNewResultVis(VisualizerContext context,
java.lang.Object start,
java.lang.Class<? super A> type1,
java.lang.Class<? super B> type2,
java.util.function.BiConsumer<A,B> handler)
Process new result combinations of an object type1 (in first hierarchy)
having a child of type2 (in second hierarchy).
|
static <A extends Result,B extends VisualizationItem> |
findNewSiblings(VisualizerContext context,
java.lang.Object start,
java.lang.Class<? super A> type1,
java.lang.Class<? super B> type2,
java.util.function.BiConsumer<A,B> handler)
Process new result combinations of an object type1 (in first hierarchy) and
any child of type2 (in second hierarchy)
This is a bit painful, because we have two hierarchies with different
types: results, and visualizations.
|
static It<java.lang.Object> |
findVis(VisualizerContext context)
Filtered iteration over a stacked hierarchy.
|
static It<java.lang.Object> |
findVis(VisualizerContext context,
java.lang.Object start)
Filtered iteration over a stacked hierarchy.
|
void |
removeVisualizationListener(VisualizationListener listener)
Add a listener.
|
static void |
setVisible(VisualizerContext context,
VisualizationTask task,
boolean visibility)
Utility function to change Visualizer visibility.
|
void |
visChanged(VisualizationItem item)
A visualization item has changed.
|
add, add, contains, iterAll, iterAncestors, iterAncestorsSelf, iterChildren, iterChildrenReverse, iterDescendants, iterDescendantsSelf, iterParents, iterParentsReverse, numChildren, numParents, remove, remove, removeSubtree, size
private java.util.ArrayList<VisualizationListener> vlistenerList
public void addVisualizationListener(VisualizationListener listener)
listener
- Listener to addpublic void removeVisualizationListener(VisualizationListener listener)
listener
- Listener to removepublic void visChanged(VisualizationItem item)
item
- Item that has changedpublic static It<java.lang.Object> findVis(VisualizerContext context)
context
- Visualization contextpublic static It<java.lang.Object> findVis(VisualizerContext context, java.lang.Object start)
context
- Visualization contextstart
- Starting object (in primary hierarchy!)public static It<Result> findNewResults(VisualizerContext context, java.lang.Object start)
context
- Visualization contextstart
- Starting object (in primary hierarchy!)public static <A extends Result,B extends VisualizationItem> void findNewSiblings(VisualizerContext context, java.lang.Object start, java.lang.Class<? super A> type1, java.lang.Class<? super B> type2, java.util.function.BiConsumer<A,B> handler)
context
- Contextstart
- Starting pointtype1
- First type, in first hierarchytype2
- Second type, in second hierarchyhandler
- Handlerpublic static <A extends Result,B extends VisualizationItem> void findNewResultVis(VisualizerContext context, java.lang.Object start, java.lang.Class<? super A> type1, java.lang.Class<? super B> type2, java.util.function.BiConsumer<A,B> handler)
context
- Contextstart
- Starting pointtype1
- First type, in first hierarchytype2
- Second type, in second hierarchyhandler
- Handlerpublic static void setVisible(VisualizerContext context, VisualizationTask task, boolean visibility)
context
- Visualization contexttask
- Visualization taskvisibility
- Visibility valueCopyright © 2019 ELKI Development Team. License information.