public class VisualizationTree extends HashMapHierarchy<Object>
Modifier and Type | Class and Description |
---|---|
static interface |
VisualizationTree.Handler1<A>
Handler for a single result.
|
static interface |
VisualizationTree.Handler2<A,B>
Handler for two result.
|
static interface |
VisualizationTree.Handler3<A,B,C>
Handler for three result.
|
HashMapHierarchy.Rec<O>
Hierarchy.Iter<O>
Modifier and Type | Field and Description |
---|---|
private 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 <O extends VisualizationItem> |
filter(VisualizerContext context,
Class<? super O> clazz)
Filtered iteration over a stacked hierarchy.
|
static <O extends VisualizationItem> |
filter(VisualizerContext context,
Object start,
Class<? super O> clazz)
Filtered iteration over a stacked hierarchy.
|
static <O extends Result> |
filterResults(VisualizerContext context,
Object start,
Class<? super O> clazz)
Filtered iteration over the primary result tree.
|
static <A> void |
findNew(VisualizerContext context,
Object start,
Class<? super A> type1,
VisualizationTree.Handler1<A> handler)
Process new results.
|
static <A extends Result,B extends VisualizationItem> |
findNewResultVis(VisualizerContext context,
Object start,
Class<? super A> type1,
Class<? super B> type2,
VisualizationTree.Handler2<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,
Object start,
Class<? super A> type1,
Class<? super B> type2,
VisualizationTree.Handler2<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.
|
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, emptyIterator, iterAll, iterAncestors, iterAncestorsSelf, iterChildren, iterChildrenReverse, iterDescendants, iterDescendantsSelf, iterParents, iterParentsReverse, numChildren, numParents, remove, remove, removeSubtree, size
private 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 <O extends VisualizationItem> Hierarchy.Iter<O> filter(VisualizerContext context, Class<? super O> clazz)
O
- Object typecontext
- Visualization contextclazz
- Type filterpublic static <O extends VisualizationItem> Hierarchy.Iter<O> filter(VisualizerContext context, Object start, Class<? super O> clazz)
O
- Object typecontext
- Visualization contextstart
- Starting object (in primary hierarchy!)clazz
- Type filterpublic static <O extends Result> Hierarchy.Iter<O> filterResults(VisualizerContext context, Object start, Class<? super O> clazz)
O
- Result type typecontext
- Visualization contextstart
- Starting object (in primary hierarchy!)clazz
- Type filterpublic static <A> void findNew(VisualizerContext context, Object start, Class<? super A> type1, VisualizationTree.Handler1<A> handler)
context
- Contextstart
- Starting pointtype1
- First typehandler
- Handlerpublic static <A extends Result,B extends VisualizationItem> void findNewSiblings(VisualizerContext context, Object start, Class<? super A> type1, Class<? super B> type2, VisualizationTree.Handler2<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, Object start, Class<? super A> type1, Class<? super B> type2, VisualizationTree.Handler2<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 © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.