Vector data = new Vector();
colorQueryPanel.setQueries(data);
}
public void colorsMapped(MapColorsEvent evt) {
DataVisualization imagePanel = dataVis;
// ImagePanel imagePanel = view.getLookup().lookup(ImagePanel.class);
// If there is no image then there's nothing to paint on so return
if (imagePanel == null) {
// JOptionPane.showMessageDialog(null,
// "You must first create a new image in \n"
// + "the main application. You can do that now \n"
// + "and come back to this window, you're queries \n"
// + "will still be here.");
return;
}
// if we get here we have an image to work with
// set the cursor on the on image
// panel in the view to the wait cursor
imagePanel.getImagePane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
// construct some pixel representations to work on
int[] pix = new int[engine.getPixels().length];
// make sure the pix default to being white
engine.resetPixels(pix);