1 package prefuse.data.tuple; 2 3 import java.beans.PropertyChangeListener ; 4 import java.util.Iterator ; 5 6 import prefuse.data.Schema; 7 import prefuse.data.Tuple; 8 import prefuse.data.event.TupleSetListener; 9 import prefuse.data.expression.Expression; 10 import prefuse.data.expression.Predicate; 11 import prefuse.data.util.Sort; 12 13 20 public interface TupleSet { 21 22 25 public static final Tuple[] EMPTY_ARRAY = new Tuple[0]; 26 27 35 public Tuple addTuple(Tuple t); 36 37 46 public Tuple setTuple(Tuple t); 47 48 53 public boolean removeTuple(Tuple t); 54 55 58 public void clear(); 59 60 65 public boolean containsTuple(Tuple t); 66 67 71 public int getTupleCount(); 72 73 78 public boolean isAddColumnSupported(); 79 80 86 public void addColumns(Schema s); 87 88 93 public void addColumn(String name, Class type); 94 95 101 public void addColumn(String name, Class type, Object defaultValue); 102 103 113 public void addColumn(String name, String expr); 114 115 123 public void addColumn(String name, Expression expr); 124 125 129 public Iterator tuples(); 130 131 138 public Iterator tuples(Predicate filter); 139 140 149 public Iterator tuples(Predicate filter, Sort sort); 150 151 152 154 159 public void addTupleSetListener(TupleSetListener tsl); 160 161 165 public void removeTupleSetListener(TupleSetListener tsl); 166 167 168 170 175 public void addPropertyChangeListener(PropertyChangeListener lstnr); 176 177 183 public void addPropertyChangeListener(String key, 184 PropertyChangeListener lstnr); 185 186 190 public void removePropertyChangeListener(PropertyChangeListener lstnr); 191 192 198 public void removePropertyChangeListener(String key, 199 PropertyChangeListener lstnr); 200 201 206 public void putClientProperty(String key, Object value); 207 208 214 public Object getClientProperty(String key); 215 216 } | Popular Tags |