public class ProximityConstraintParameters extends AbstractConstraintParameters
| Modifier and Type | Class and Description |
|---|---|
static class |
ProximityConstraintParameters.Config |
DEFAULT_CONFIGURATION, PROPERTY_CONSTRAINT_PARAMETER_VALUE, setterMappingPROPERTY_IDpropertyChangeSupport| Constructor and Description |
|---|
ProximityConstraintParameters() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Calendar> |
determineTimeWindows(List<DefaultConstraintEntry> gestures) |
Set<String> |
generatePatterns(Map<String,String> charMapping,
List<DefaultConstraintEntry> gestures) |
String |
getDistanceUnit()
Get the distance unit.
|
double |
getMaxDistance()
Get the maximum distance between two gestures.
|
double |
getMinDistance()
Get the minimum distance between two gestures.
|
void |
setDistanceUnit(String distanceUnit)
Set the distance unit.
|
void |
setMaxDistance(String maxDistance)
Set the maximum distance between two gestures.
|
void |
setMinDistance(String minDistance)
Set the minimum distance between two gestures.
|
boolean |
validateConditions(List<Gesture<?>> gestures,
IDeviceManager manager) |
getParameter, getParameters, setParameteraccept, getId, setIdaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic double getMinDistance()
public void setMinDistance(String minDistance) throws NumberFormatException
NumberFormatExceptionpublic double getMaxDistance()
public void setMaxDistance(String maxDistance) throws NumberFormatException
NumberFormatExceptionpublic String getDistanceUnit()
Constraintpublic void setDistanceUnit(String distanceUnit)
Constraintpublic boolean validateConditions(List<Gesture<?>> gestures, IDeviceManager manager)
validateConditions in interface IConstraintParametervalidateConditions in class AbstractConstraintParameterspublic Map<String,Calendar> determineTimeWindows(List<DefaultConstraintEntry> gestures)
determineTimeWindows in interface IConstraintParameterdetermineTimeWindows in class AbstractConstraintParameterspublic Set<String> generatePatterns(Map<String,String> charMapping, List<DefaultConstraintEntry> gestures)
generatePatterns in interface IConstraintParametergeneratePatterns in class AbstractConstraintParametersCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.