public class KeyVisualization extends AbstractVisFactory
Modifier and Type | Class and Description |
---|---|
class |
KeyVisualization.Instance
Instance
|
Modifier and Type | Field and Description |
---|---|
private static String |
NAME
Name for this visualizer.
|
Constructor and Description |
---|
KeyVisualization() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowThumbnails(VisualizationTask task)
Test whether to do a thumbnail or a full rendering.
|
protected static <M extends Model> |
findDepth(Clustering<M> c)
Compute the size of the clustering.
|
private static <M extends Model> |
findDepth(Hierarchy<Cluster<M>> hier,
Cluster<M> cluster,
int[] size)
Recursive depth computation.
|
protected static int |
getPreferredColumns(double width,
double height,
int numc,
double maxwidth)
Compute the preferred number of columns.
|
Visualization |
makeVisualization(VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Produce a visualization instance for the given task
|
void |
processNewResult(VisualizerContext context,
Object start)
Add visualizers for the given result (tree) to the context.
|
makeVisualizationOrThumbnail
private static final String NAME
public void processNewResult(VisualizerContext context, Object start)
VisFactory
context
- Visualization contextstart
- Result to processprotected static <M extends Model> int[] findDepth(Clustering<M> c)
c
- Clusteringprivate static <M extends Model> void findDepth(Hierarchy<Cluster<M>> hier, Cluster<M> cluster, int[] size)
hier
- Hierarchycluster
- Current clustersize
- Counting array.protected static int getPreferredColumns(double width, double height, int numc, double maxwidth)
width
- Target widthheight
- Target heightnumc
- Number of clustersmaxwidth
- Max width of entriespublic Visualization makeVisualization(VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
VisFactory
makeVisualization
in interface VisFactory
makeVisualization
in class AbstractVisFactory
task
- Visualization taskplot
- Plotwidth
- Widthheight
- Heightproj
- Projectionpublic boolean allowThumbnails(VisualizationTask task)
AbstractVisFactory
allowThumbnails
in class AbstractVisFactory
task
- Task requestedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.