|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.state.StateFilter
com.speckled.specksim.imp.filter.SpeckIDFilter
@ConfigurableType(value="Speck ID filter") public class SpeckIDFilter
Filters the state to only include one speck
| Field Summary | |
|---|---|
static java.lang.String |
NAME
The name of this filter |
| Fields inherited from class com.speckled.specksim.state.StateFilter |
|---|
stateSink |
| Constructor Summary | |
|---|---|
SpeckIDFilter()
|
|
| Method Summary | |
|---|---|
int |
getSelectedID()
Gets the currently selected IDs |
boolean |
included(int index)
Checks whether or not the entry in the state object with the given index should be included. |
void |
setSelectedID(int id)
Sets the selected IDs |
| Methods inherited from class com.speckled.specksim.state.StateFilter |
|---|
getName, isEnabled, refreshStateListeners, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public SpeckIDFilter()
| Method Detail |
|---|
@ConfigurableVariable(value="Speck ID") @Description(value="The id of the speck to pass through the filter") @NumberRange(value=-1.0f) public int getSelectedID()
@ConfigurableVariable(value="Speck ID") public void setSelectedID(int id)
id - The ID to filter on, or -1 to include all speckspublic boolean included(int index)
StateFilter
included in class StateFilterindex - The index of the element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||