edu.wisc.ssec.mcidasv.display.hydra
Class MultiSpectralDisplay.DragLine

java.lang.Object
  extended by visad.ActionImpl
      extended by visad.CellImpl
          extended by edu.wisc.ssec.mcidasv.display.hydra.MultiSpectralDisplay.DragLine
All Implemented Interfaces:
Runnable, EventListener, Action, Cell, ThingChangedListener
Enclosing class:
MultiSpectralDisplay

public static class MultiSpectralDisplay.DragLine
extends CellImpl


Field Summary
private  String controlId
           
private  LocalDisplay display
           
private  RealType domainType
           
private  HydraControl hydraControl
           
private  float lastSelectedValue
           
private  DataReference line
           
private  String lineId
           
private  ConstantMap[] mappings
           
private  MultiSpectralDisplay multiSpectralDisplay
           
private  RealType rangeType
           
private  DataReference selector
           
private  String selectorId
           
private  RealTupleType tupleType
           
private  float[] YRANGE
           
 
Fields inherited from class visad.ActionImpl
TRACE_STACK, TRACE_TIME
 
Constructor Summary
MultiSpectralDisplay.DragLine(MultiSpectralDisplay msd, String controlId, Color color)
           
MultiSpectralDisplay.DragLine(MultiSpectralDisplay msd, String controlId, Color color, float[] YRANGE)
           
MultiSpectralDisplay.DragLine(MultiSpectralDisplay msd, String controlId, ConstantMap[] color)
           
MultiSpectralDisplay.DragLine(MultiSpectralDisplay msd, String controlId, ConstantMap[] color, float[] YRANGE)
           
 
Method Summary
 void annihilate()
           
private static ConstantMap[] cloneMappedColor(ConstantMap[] color)
           
 void doAction()
          Handles drag and drop updates.
 String getControlId()
           
 float getSelectedValue()
           
 void setHydraControl(HydraControl hydraControl)
          Set the display control so we can call back and update wavelength readout in real time.
 void setSelectedValue(float val)
           
 
Methods inherited from class visad.CellImpl
getOtherReference, setOtherReference
 
Methods inherited from class visad.ActionImpl
addReference, checkTicks, disableAction, enableAction, findReference, getCurrentActionThread, getLinks, getName, getTaskCount, printPool, removeAllReferences, removeReference, run, setEnabled, setName, setThreadPoolMaximum, stop, stopThreadPool, thingChanged, waitForTasks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface visad.Action
addReference, getName, removeAllReferences, removeReference
 
Methods inherited from interface visad.ThingChangedListener
thingChanged
 

Field Detail

selectorId

private final String selectorId

lineId

private final String lineId

controlId

private final String controlId

mappings

private ConstantMap[] mappings

line

private DataReference line

selector

private DataReference selector

multiSpectralDisplay

private MultiSpectralDisplay multiSpectralDisplay

hydraControl

private HydraControl hydraControl

domainType

private RealType domainType

rangeType

private RealType rangeType

tupleType

private RealTupleType tupleType

display

private LocalDisplay display

YRANGE

private float[] YRANGE

lastSelectedValue

private float lastSelectedValue
Constructor Detail

MultiSpectralDisplay.DragLine

public MultiSpectralDisplay.DragLine(MultiSpectralDisplay msd,
                                     String controlId,
                                     Color color)
                              throws Exception
Throws:
Exception

MultiSpectralDisplay.DragLine

public MultiSpectralDisplay.DragLine(MultiSpectralDisplay msd,
                                     String controlId,
                                     Color color,
                                     float[] YRANGE)
                              throws Exception
Throws:
Exception

MultiSpectralDisplay.DragLine

public MultiSpectralDisplay.DragLine(MultiSpectralDisplay msd,
                                     String controlId,
                                     ConstantMap[] color)
                              throws Exception
Throws:
Exception

MultiSpectralDisplay.DragLine

public MultiSpectralDisplay.DragLine(MultiSpectralDisplay msd,
                                     String controlId,
                                     ConstantMap[] color,
                                     float[] YRANGE)
                              throws Exception
Throws:
Exception
Method Detail

cloneMappedColor

private static ConstantMap[] cloneMappedColor(ConstantMap[] color)
                                       throws Exception
Throws:
Exception

annihilate

public void annihilate()

getControlId

public String getControlId()

doAction

public void doAction()
              throws VisADException,
                     RemoteException
Handles drag and drop updates.

Specified by:
doAction in class CellImpl
Throws:
VisADException
RemoteException

getSelectedValue

public float getSelectedValue()

setSelectedValue

public void setSelectedValue(float val)
                      throws VisADException,
                             RemoteException
Throws:
VisADException
RemoteException

setHydraControl

public void setHydraControl(HydraControl hydraControl)
Set the display control so we can call back and update wavelength readout in real time.

Parameters:
hydraControl - the display control to set