public class KeyVisualization extends java.lang.Object implements VisFactory
| Modifier and Type | Class and Description |
|---|---|
class |
KeyVisualization.Instance
Instance
|
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.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(VisualizerContext context,
VisualizationTask task,
VisualizationPlot plot,
double width,
double height,
Projection proj)
Produce a visualization instance for the given task
|
void |
processNewResult(VisualizerContext context,
java.lang.Object start)
Add visualizers for the given result (tree) to the context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeVisualizationOrThumbnailprivate static final java.lang.String NAME
public void processNewResult(VisualizerContext context, java.lang.Object start)
VisFactoryprocessNewResult in interface VisualizationProcessorprocessNewResult in interface VisFactorycontext - 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(VisualizerContext context, VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj)
VisFactorymakeVisualization in interface VisFactorycontext - Visualization contexttask - Visualization taskplot - Plotwidth - Widthheight - Heightproj - Projectionpublic boolean allowThumbnails(VisualizationTask task)
VisFactoryallowThumbnails in interface VisFactorytask - Task requestedCopyright © 2019 ELKI Development Team. License information.