/** * 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(); }