Class SelectedVarManagerImpl
- java.lang.Object
-
- cern.accsoft.steering.jmad.gui.panels.var.SelectedVarManagerImpl
-
- All Implemented Interfaces:
MadxVarSelector
,SelectedVarManager
public class SelectedVarManagerImpl extends java.lang.Object implements SelectedVarManager
the simplest implementation of a class collecting variables.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface cern.accsoft.steering.jmad.gui.panels.var.SelectedVarManager
SelectedVarManager.VarSelectionMode
-
-
Constructor Summary
Constructors Constructor Description SelectedVarManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(cern.accsoft.steering.jmad.domain.var.TwissVariable twissVariable)
adds a new variablevoid
clear()
clears the variablescern.accsoft.steering.jmad.domain.var.TwissVariable
getSelectedVariable()
This is a convenient method to get the selected variable when in single-variable selection mode.java.util.Collection<cern.accsoft.steering.jmad.domain.var.TwissVariable>
getSelectedVariables()
This method has to return all the selected variablesSelectedVarManager.VarSelectionMode
getVarSelectionMode()
void
remove(cern.accsoft.steering.jmad.domain.var.TwissVariable twissVariable)
remove the given variablevoid
setVarSelectionMode(SelectedVarManager.VarSelectionMode varSelectionMode)
defines, if one or more variables may be selected.
-
-
-
Method Detail
-
add
public void add(cern.accsoft.steering.jmad.domain.var.TwissVariable twissVariable)
Description copied from interface:SelectedVarManager
adds a new variable- Specified by:
add
in interfaceSelectedVarManager
- Parameters:
twissVariable
- the variable to add
-
clear
public void clear()
Description copied from interface:SelectedVarManager
clears the variables- Specified by:
clear
in interfaceSelectedVarManager
-
getSelectedVariables
public java.util.Collection<cern.accsoft.steering.jmad.domain.var.TwissVariable> getSelectedVariables()
Description copied from interface:MadxVarSelector
This method has to return all the selected variables- Specified by:
getSelectedVariables
in interfaceMadxVarSelector
- Returns:
- all the selected variables.
-
remove
public void remove(cern.accsoft.steering.jmad.domain.var.TwissVariable twissVariable)
Description copied from interface:SelectedVarManager
remove the given variable- Specified by:
remove
in interfaceSelectedVarManager
- Parameters:
twissVariable
- the variable to remove
-
setVarSelectionMode
public void setVarSelectionMode(SelectedVarManager.VarSelectionMode varSelectionMode)
Description copied from interface:SelectedVarManager
defines, if one or more variables may be selected.- Specified by:
setVarSelectionMode
in interfaceSelectedVarManager
-
getSelectedVariable
public cern.accsoft.steering.jmad.domain.var.TwissVariable getSelectedVariable()
Description copied from interface:MadxVarSelector
This is a convenient method to get the selected variable when in single-variable selection mode.- Specified by:
getSelectedVariable
in interfaceMadxVarSelector
- Returns:
- returns the selected variable.
-
getVarSelectionMode
public SelectedVarManager.VarSelectionMode getVarSelectionMode()
- Specified by:
getVarSelectionMode
in interfaceSelectedVarManager
- Returns:
- the actual selection mode
-
-