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.
|
thumbmask
Constructor and Description |
---|
KeyVisualization() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowThumbnails(VisualizationTask task)
Test whether to do a thumbnail or a full rendering.
|
private static <M extends Model> |
findDepth(Clustering<M> c) |
private static <M extends Model> |
findDepth(Hierarchy<Cluster<M>> hier,
Cluster<M> cluster,
int[] size) |
static int |
getPreferredColumns(double width,
double height,
int numc,
double maxwidth)
Compute the preferred number of columns.
|
Visualization |
makeVisualization(VisualizationTask task)
Produce a visualization instance for the given task
|
void |
processNewResult(HierarchicalResult baseResult,
Result newResult)
Add visualizers for the given result (tree) to the context.
|
makeVisualizationOrThumbnail
private static final String NAME
public void processNewResult(HierarchicalResult baseResult, Result newResult)
VisFactory
baseResult
- Context to work withnewResult
- Result to processprivate static <M extends Model> int[] findDepth(Clustering<M> c)
private static <M extends Model> void findDepth(Hierarchy<Cluster<M>> hier, Cluster<M> cluster, int[] size)
public 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)
VisFactory
makeVisualization
in interface VisFactory
makeVisualization
in class AbstractVisFactory
task
- Visualization taskpublic boolean allowThumbnails(VisualizationTask task)
AbstractVisFactory
allowThumbnails
in class AbstractVisFactory
task
- Task requested