UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.gesture.features
Class Curviness2

java.lang.Object
  |
  +--java.util.Observable
        |
        +--edu.berkeley.guir.lib.gesture.Feature
              |
              +--edu.berkeley.guir.lib.gesture.features.Curviness2
All Implemented Interfaces:
Observer, Serializable

public class Curviness2
extends Feature

See Also:
Serialized Form

Field Summary
static double threshold
          Angle magnitude (in degrees) above which an angle should be ignored
 
Fields inherited from class edu.berkeley.guir.lib.gesture.Feature
gesture, value, valueOk
 
Constructor Summary
Curviness2()
           
Curviness2(Gesture g)
           
 
Method Summary
protected  void computeValue()
          Non-incremental computation.
 double getMaxValue()
          Return minimum value this feature can have
 double getMinValue()
          Return maximum value this feature can have
 String getName()
          Return a name that will be meaningful to the user
 void scale(double factor)
          Change @gesture so that the feature changes (ideally by the scale factor).
 
Methods inherited from class edu.berkeley.guir.lib.gesture.Feature
getGesture, getValue, newPoint, newPoint, setGesture, update
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threshold

public static double threshold
Angle magnitude (in degrees) above which an angle should be ignored
Constructor Detail

Curviness2

public Curviness2()

Curviness2

public Curviness2(Gesture g)
Method Detail

getName

public String getName()
Description copied from class: Feature
Return a name that will be meaningful to the user
Overrides:
getName in class Feature

getMinValue

public double getMinValue()
Description copied from class: Feature
Return maximum value this feature can have
Overrides:
getMinValue in class Feature

getMaxValue

public double getMaxValue()
Description copied from class: Feature
Return minimum value this feature can have
Overrides:
getMaxValue in class Feature

computeValue

protected void computeValue()
Description copied from class: Feature
Non-incremental computation. Should set @value to new value and
Overrides:
computeValue in class Feature

scale

public void scale(double factor)
Description copied from class: Feature
Change @gesture so that the feature changes (ideally by the scale factor).
Overrides:
scale in class Feature

Copyright Information