edu.wisc.ssec.mcidasv.control
Class LinearCombo.Selector

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.control.LinearCombo.JythonThing
      extended by edu.wisc.ssec.mcidasv.control.LinearCombo.Selector
Enclosing class:
LinearCombo

public static class LinearCombo.Selector
extends LinearCombo.JythonThing


Field Summary
private  ConstantMap[] color
           
private  Console console
           
private  HydraControl control
           
private  Data data
           
private  MultiSpectralDisplay display
           
private  String ID
           
private  float waveNumber
           
 
Fields inherited from class edu.wisc.ssec.mcidasv.control.LinearCombo.JythonThing
jythonNames
 
Constructor Summary
LinearCombo.Selector(float waveNumber, ConstantMap[] color, HydraControl control, Console console)
           
 
Method Summary
 boolean addName(String name)
          Attempts to associate a Jython "variable"/"name" with this Selector.
 void clearNames()
          Resets the known names of a Selector.
 ConstantMap[] getColor()
           
 Data getData()
           
 String getId()
           
 String getName()
          Returns a Jython name associated with this Selector.
 Collection<String> getNames()
          Returns the known Jython names associated with this Selector.
 float getWaveNumber()
          Returns the "selected" wave number associated with this Selector.
 boolean removeName(String name)
          Attempts removal of a known name for the current Selector.
 void setWaveNumber(float newWaveNumber)
          Changes the "selected" wave number to the given value.
 String toString()
           
 
Methods inherited from class edu.wisc.ssec.mcidasv.control.LinearCombo.JythonThing
__add__, __div__, __mod__, __mul__, __neg__, __pow__, __radd__, __rdiv__, __rmod__, __rmul__, __rpow__, __rsub__, __sub__, colorString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

private final String ID

waveNumber

private float waveNumber

color

private ConstantMap[] color

console

private Console console

control

private HydraControl control

data

private Data data

display

private MultiSpectralDisplay display
Constructor Detail

LinearCombo.Selector

public LinearCombo.Selector(float waveNumber,
                            ConstantMap[] color,
                            HydraControl control,
                            Console console)
Parameters:
waveNumber -
color -
control -
console -
Method Detail

removeName

public boolean removeName(String name)
Attempts removal of a known name for the current Selector.

Specified by:
removeName in class LinearCombo.JythonThing
Parameters:
name - Name (within Jython namespace) to remove.
Returns:
true if removal was successful, false otherwise.

getNames

public Collection<String> getNames()
Returns the known Jython names associated with this Selector.

Specified by:
getNames in class LinearCombo.JythonThing
Parameters:
{@literal - "Names"} (aka variables) in a Jython namespace that refer to this Selector. Collection may be empty, but never null.

clearNames

public void clearNames()
Resets the known names of a Selector.


addName

public boolean addName(String name)
Attempts to associate a Jython "variable"/"name" with this Selector.

Specified by:
addName in class LinearCombo.JythonThing
Parameters:
name - Name used within the Jython namespace. Cannot be null.
Returns:
true if name was successfully added, false otherwise.

getName

public String getName()
Returns a Jython name associated with this Selector. Consider using getNames() instead.

Specified by:
getName in class LinearCombo.JythonThing
Returns:
Either a blank String if there are no associated names, or the "first" (iteration-order) name.
See Also:
getNames()

setWaveNumber

public void setWaveNumber(float newWaveNumber)
Changes the "selected" wave number to the given value.

WARNING:no bounds-checking is currently being performed, but this is expected to change in the near future.

Parameters:
newWaveNumber - New wave number to associate with the current Selector.

getWaveNumber

public float getWaveNumber()
Returns the "selected" wave number associated with this Selector.

Returns:
Wave number currently selected by this Selector.

getColor

public ConstantMap[] getColor()
Returns:

getData

public Data getData()
Specified by:
getData in class LinearCombo.JythonThing
Returns:

getId

public String getId()
Returns:

toString

public String toString()
Overrides:
toString in class Object
Returns: