package uk.ac.leeds.ccg.geotools; import java.util.*; public class SelectionChangedEvent extends java.util.EventObject { private int selected[]; private int count; public SelectionChangedEvent(java.awt.Component source, int s[]){ super(source); count = s.length; selected = new int[count]; System.arraycopy(s,0,selected,0,count);//copying is safer } public int[] getSelection(){ return selected; } public final boolean isSelected(int id){ for(int i=0;i