|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsources.Selectioner
Class for selection and sorting
Constructor Summary | |
Selectioner(int length,
LDataSet data)
Creates new Selectioner |
Method Summary | |
void |
addSelectionListener(SelectionListener l)
adds a SelectionListener |
int[] |
fromorigintosorted(int[] indexes)
transform values from original to sorted values |
int[] |
fromsortedtoorigin(int[] indexes)
transform values from sorted to original values |
void |
ganf()
move to the last performed selection |
void |
gend()
reset selection |
int |
getLength()
returns the length of the Selectioner |
boolean[] |
getSelected()
returns all selected cases |
int |
getSelectedCounts()
returns the number of selected cases |
int[] |
getSelectedIndices()
returns all selected indices |
SortFeld |
getSortFeld()
returns the sort array |
SortFeld |
getSortfeldforVar(int i)
returns the sortfeld for a specific Variable |
boolean |
isselected(int index)
return whether the ith case is selected |
static void |
main(java.lang.String[] args)
Test main funcion |
void |
newVariableAdded()
|
void |
processAction(java.lang.String action,
java.lang.Object[] val1,
int[] val2,
double[] val3,
SelectionListener sel)
Called if an action was performed |
void |
redo()
redo last action |
boolean |
redoposs()
|
void |
removeSelectionListener(SelectionListener l)
removes a SelectionListener |
void |
setAllSelected()
|
void |
setNonSelected(int index)
sets a case to be not selected |
void |
setSelected(int index)
sets a case to be selected |
void |
setSelection(boolean[] iss)
sets the selection to the specified array |
void |
setSelection(int[] iss)
sets the selection to the specified array |
void |
setSortFeld(SortFeld sf)
sets the sort array |
void |
sort(Variable v,
boolean upwards)
sort a Variable |
void |
toggle()
toggles the selection |
java.lang.String |
toString()
retruns a textual Representation of this Selectioner |
void |
undo()
undo last action |
boolean |
undoposs()
|
void |
undoupdate3(int index)
Update if undo action was performed |
void |
variableRemoved(int index)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Selectioner(int length, LDataSet data)
data
- the parental LDataSetlength
- the length of the selectionerMethod Detail |
public SortFeld getSortfeldforVar(int i)
i
- the index of the variable
public void newVariableAdded()
public void variableRemoved(int index)
public boolean isselected(int index)
index
- the index
public void setSelected(int index)
index
- the case to selectpublic void setNonSelected(int index)
index
- the case to set not selectedpublic boolean[] getSelected()
public int getLength()
public void setSelection(boolean[] iss)
iss
- the array that represents selected and deselected casespublic void setAllSelected()
public int getSelectedCounts()
public void setSelection(int[] iss)
iss
- the array that represents selected casespublic int[] getSelectedIndices()
public void addSelectionListener(SelectionListener l)
l
- the SelectionListenerpublic void removeSelectionListener(SelectionListener l)
l
- the SelectionListenerpublic java.lang.String toString()
public void undoupdate3(int index)
index
- the index of the changed sortfeldpublic void undo()
public void redo()
public void gend()
public void ganf()
public void toggle()
public void sort(Variable v, boolean upwards)
v
- the variable to sort forupwards
- true: sort upwards
false: sort downwardspublic void setSortFeld(SortFeld sf)
sf
- the sort arraypublic SortFeld getSortFeld()
public static void main(java.lang.String[] args)
args
- argspublic int[] fromorigintosorted(int[] indexes)
indexes
- original values
public int[] fromsortedtoorigin(int[] indexes)
indexes
- sorted values
public void processAction(java.lang.String action, java.lang.Object[] val1, int[] val2, double[] val3, SelectionListener sel)
action
- the String representation of the actionval1
- the Objects that specify the actionval2
- the int values that specify the actionval3
- the double values that specify the actionsel
- the source of the actionpublic boolean undoposs()
public boolean redoposs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |