package uk.ac.leeds.ccg.geotools; import java.awt.*; import java.util.*; /** * Handles feature selection. * redesigned 8/Jul/99 for much more flexibility. * note: invert selection and select all are not possible as the full range of * ids is not always known * @version 0.6.1 * @author James Macgill * This code is (c)James Macgill and is covered by the GPL. */ public class SelectionManager extends java.awt.Component { static public final int CONTAINS=0,CROSSES=1; //protected int[] selection = new int[0]; protected Vector selected = new Vector(); Vector listeners = new Vector(); public SelectionManager() { } public void setSelection(int[] selection) { selected = new Vector(); for(int i=0;i