edu.stanford.hci.dtools.deviceeditor.components
Class RangeEventConditional

java.lang.Object
  extended by edu.stanford.hci.dtools.deviceeditor.components.EventConditional
      extended by edu.stanford.hci.dtools.deviceeditor.components.RangeEventConditional
All Implemented Interfaces:
java.io.Serializable

public abstract class RangeEventConditional
extends EventConditional

Abstract class which creates a conditional which returns true if a continuous value is between two user-specified endpoints

This software is distributed under the BSD License.

Author:
Bjoern Hartmann ( bjoern(AT)stanford.edu ), Michael Bernstein ( mbernst(AT)stanford.edu )
See Also:
Serialized Form

Field Summary
static java.lang.String RANGE_MAX
           
static java.lang.String RANGE_MIN
           
 
Constructor Summary
RangeEventConditional(float min, float max, java.lang.String minLabel, java.lang.String maxLabel)
           
 
Method Summary
 java.lang.Object getEditableValue()
           
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
           
 java.lang.Object getPropertyValue(java.lang.Object id)
           
 boolean hasParameters()
          Returns true if the conditional has parameters that should be set in the property menu
 void initializePropertyDescriptors()
           
 boolean isPropertySet(java.lang.Object id)
           
 void resetPropertyValue(java.lang.Object id)
           
 void setPropertyValue(java.lang.Object id, java.lang.Object value)
           
 
Methods inherited from class edu.stanford.hci.dtools.deviceeditor.components.EventConditional
checkConditional, getName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RANGE_MIN

public static final java.lang.String RANGE_MIN
See Also:
Constant Field Values

RANGE_MAX

public static final java.lang.String RANGE_MAX
See Also:
Constant Field Values
Constructor Detail

RangeEventConditional

public RangeEventConditional(float min,
                             float max,
                             java.lang.String minLabel,
                             java.lang.String maxLabel)
Method Detail

initializePropertyDescriptors

public void initializePropertyDescriptors()

getEditableValue

public java.lang.Object getEditableValue()

getPropertyDescriptors

public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object id)

setPropertyValue

public void setPropertyValue(java.lang.Object id,
                             java.lang.Object value)

isPropertySet

public boolean isPropertySet(java.lang.Object id)

resetPropertyValue

public void resetPropertyValue(java.lang.Object id)

hasParameters

public boolean hasParameters()
Description copied from class: EventConditional
Returns true if the conditional has parameters that should be set in the property menu

Specified by:
hasParameters in class EventConditional
Returns: