@Override public void processNewResult(VisualizerContext context, Object result) { Hierarchy.Iter<OPTICSProjector> it = VisualizationTree.filter(context, result, OPTICSProjector.class); for (; it.valid(); it.advance()) { OPTICSProjector p = it.get(); final VisualizationTask task = new VisualizationTask(NAME, context, p.getResult(), null, this); task.level = VisualizationTask.LEVEL_INTERACTIVE; context.addVis(p, task); } }
/** * Constructor. * * @param task Task to visualize * @param plot Plot to draw to * @param width Embedding width * @param height Embedding height * @param proj Projection */ public Instance( VisualizationTask task, VisualizationPlot plot, double width, double height, Projection proj) { super(task, plot, width, height, proj); this.rep = task.getResult(); // Note: relation was used for projection addListeners(); }