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

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

public class DragLine
extends CellImpl


Field Summary
private  String controlId
           
private  LocalDisplay display
           
private  RealType domainType
           
protected  float lastSelectedValue
           
private  DataReference line
           
private  String lineId
           
private  ConstantMap[] mappings
           
private  DataReference selector
           
private  String selectorId
           
private  RealTupleType tupleType
           
private  float[] YRANGE
           
 
Fields inherited from class visad.ActionImpl
TRACE_STACK, TRACE_TIME
 
Constructor Summary
DragLine(Gridded1DSet domain, RealType domainType, RealType rangeType, float lastSelectedValue, LocalDisplay display, 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 setSelectedValue(float val)
           
 void update()
           
 
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

domainType

private RealType domainType

tupleType

private RealTupleType tupleType

display

private LocalDisplay display

YRANGE

private float[] YRANGE

lastSelectedValue

protected float lastSelectedValue
Constructor Detail

DragLine

public DragLine(Gridded1DSet domain,
                RealType domainType,
                RealType rangeType,
                float lastSelectedValue,
                LocalDisplay display,
                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

update

public void update()